Getting a warning anytime I envoke wp-cli. I know my host is going to be upgrading us to PHP 8.1 and wants everything tip-top shape as possible. Any help is appreciated!
This is the message, added xxx’s where there’s internal server name and the site name itself: PHP Warning: Undefined array key “SERVER_NAME” in /home/www/xxxxx/xxxxxxxxxxxxx.com/htdocs/wp-content/plugins/event-espresso/espresso.php on line 179
Event Espresso 3 is not PHP8 compatible and will likely throw fatal errors.
EE3 is now considered our legacy product which currently only receives security updates, re-writing the code to be PHP8 compatible would be a significant project and not something we will likely undertake now that it has effectively been replaced within EE4+.
The fix for your current issue is to change /event-espresso/espresso.php line 179 from this:
Thank you Tony, adding the bit cleared the warning. So much less annoying! The site owner doesn’t want to upgrade after having so much time invested in the current version. But I have passed along that it’s going need to be looked at real soon in order to run PHP 8
The support post ‘Warning on the backend that needs to be cleared up’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.