Posted: August 1, 2017 at 3:41 pm
Hi there, I’m just asking a follow up question to this thread: https://eventespresso.com/topic/ee4-core-activated-causes-error-on-wp-engine-staging-site/ Would the code mentioned there work in the functions.php file and not a site specific plugin? Just curious. Thanks. |
|
Hi Johanna, Possibly, but its bet to use a site specific plugin, we have a guide on how to create one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ However, can I ask why you are adding that code? |
|
We always have a problem when we copy from live to staging. The issue never got resolved for us (noted earlier in the tickets). We have to deactivate all plugins, then reactivate one by one. Otherwise we get a 500 error. EE4 seems to be a culprit, especially when combined with the other plugins mentioned earlier. I tried the code in functions.php but it didn’t work – caused some sort of error. I guess I’ll try the plugin method. |
|
A 500 error is basically ‘something went wrong’, it’s the public facing error shown when your site throws a fatal error. So is the error your getting exactly the same as before?
Do you have the error? That code isn’t causing any errors for me. |
|
Also, what version number of EE are you using? Your main site is using an .rc version which is multiple versions behind the latest release version. |
|
Currently Version 4.9.45.p on staging We are updating every once in a while and recently updated on staging (testing first, this is why I’m writing here now). This has been ongoing, and apparently was supposed to be addressed earlier, but it never ever got fixed for us. Even when we update. I was hoping for a longer-term solution. The problem only happens on staging. |
|
I think you missed my first reply above: If you can answer those questions we can investigate this further. |
|
No, and the reason the code from the other topic will not work in a theme’s functions.php file is because by the time WordPress loads the theme it’s too late. Here’s the code snippet from the other topic:
You’ll note the code gets fired on the |
|
The support post ‘Follow up question: EE4 doesn't work on WP Engine staging site without modifying’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.