-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autoloader cache error on WPEngine #181
Comments
how are you even using bedrock with wp engine? |
😬 Well, I'm running Bedrock locally for development but ended up with deploying to WPEngine using a shell script. So I'm not actually using Bedrock on WPEngine, but would like to use the autoloader for some plugins. |
closing since this isn't an issue with bedrock. you could try posting on our discourse, but we aren't going to provide support for running the bedrock autoloader on a non-bedrock setup. |
Also there's nothing to do with |
Sure! I'll take it up with their support and see if there's a fix.
|
It kinda looks like the bedrock autoloader is double loading the cache plugin. I don't know WPEngine and their setup, but that's where I'd look. |
Yeah, it's definitely double loading. The object cache plugin needs to live outside the mu-plugins folder, in the wp-content folder (or the app folder if you're using Bedrock) so it really shouldn't be loaded as a mu-plugin anyway. It's easy to resolve if WP Engine wrap their code in a conditional to see if the functions already exist but there's not a fix we can easily offer. |
Ok, thanks guys! I appreciate you took the time. This plugins is must-use and non-optional on WPEngine, so unless they do a fix the autoloader can't be used with them. |
Edit: I believe I mispoke, and there is an issue on my end. |
I managed to make bedrock autoloader and WPEngine work together by modifying a few files:
You will then need to run I literally just got this working, so will report back if it fails, but so far so good. |
I too just ran into this issue with WPEngine. Since I prefer using Bedrock and Trellis for my development environment, but WPEngine is picky about structure, I set up my To solve the issue, I added My
and
This solution is far from perfect, but it leverages composer, and also means I don't have to edit a core Bedrock file so if there are updates to that file in the future, it will be easier for me to pull in the changes. I can use composer to get the files I need for local development, and since they are not tracked in the |
I can confirm that your solution works for me too @jamiechong - with the small addition that I had to modify the default bedrock .gitignore file to have the bedrock/ dir recognised. |
Getting the following error when installing
bedrock-autoloader.php
intomu-plugins
on WPEngine:Looks like a conflict between autoloader and the included object-cache-new.php. I lack the skill to hunt down the exact problem, but maybe you guys could help? If it's a fixable problem I'd appreciate a patch.
The text was updated successfully, but these errors were encountered: