Posted: May 20, 2016 at 8:34 am
As you may know from a previous post, I am testing our website on PHP 7. I have been deactivating and activating all plugins in many different ways and unable to avoid the following error with all plugins activated:
After activating EE4 first with all other plugins deactivated, I have found this error with several plugins when activated with EE4. However, this error does not appear when all other plugins are enabled without EE4. I have all plugins and WordPress up-to-date with Version 4.8.43.p. Let me know if you need more info and how I may be able to resolve. |
|
And I’d like to add, this is not an issue on our live production website with all the same versions and plugins activated. The live site is running PHP 5.4.x. |
|
One thing that might resolve the error for you is you can try disabling the WP Basic Auth plugin that was recently bundled into EE4. You go into /core/EE_System.core.php then go to line 199 and look for this code: |
|
Yes, that worked, all is running now without error. How will I need to handle going forward? |
|
We will be adding an option within EE that will allow you to disable this without modifying core files. We can’t provide details until the ticket has been confirmed and added to the next version of EE to be released but your thread has been added to that ticket so that we update this thread once that happens. |
|
Interestingly enough, this did not happen when we moved to PHP 7 on the production server. |
|
Updated to 4.9 on the development server and had to comment this out again. Just a reminder. It’s weird this only affects our dev server and not our production server. Both run PHP 7, the dev server is Ubuntu 16.04 32-bit where the production server is CentOS 7 64-bit. |
|
Both servers run Apache 2.24, perhaps there is a difference in my config that causes in only the dev server. |
|
Ah yes, of course, I’m using basic auth on the dev server, not the production server. Duh! |
|
You could try changing line 70 of Event Espresso’s core/third_party_libs/wp-api-basic-auth/basic-auth.php so the basic auth feature loads at a lower priority. Line 70 reads as:
You change it to be:
|
|
The above change was included in Event Espresso 4.9.1. |
|
The support post ‘PHP 7 error’ 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.