Posted: September 29, 2022 at 7:41 am
I upgraded to EE 4.10.39.p and now my site is displaying an error on the front end: There has been a critical error on this website. Webserver shows the following PHP error:
Any ideas |
|
Hi Joseph, What version of PHP are you using? You’ll need PHP 7.4 as a minimum, and it’s compatible up to PHP 8.0. |
|
7.2 is still officially supported in Ubuntu 18.04 LTS. No other software I’m running has any issue with a supported version of PHP. Being that Ubuntu is a highly popular distro you are going to have a LOT of issues as quite a few users are on 18.04. Please tell me you are going to fix this… |
|
Hi Joseph, I understand your situation; we deal with these types of dependencies among software every day. I’ll talk to the team, but to be clear, we must, over time, raise our PHP requirements. Newer PHP versions help, in many ways, facilitate better applications. Also, even though an update is available for Event Espresso with a higher PHP requirement does not mean you have to install Event Espresso 4.1.39.p right now. You can wait to update Event Espresso until you’re ready along with your other software. But we want to be among the software you use that is prepared and available for to upgrade PHP. We also cannot maintain backward compatibility forever, we have to keep moving forward with the other software that we all rely upon. However, you should be working on getting all the software you use up-to-date and ready for PHP 8.0+, and have a process for regularly updating your application software. You probably know and are working on that, but for anyone else who reads this message it’s important to have processes to keep software up-to-date. |
|
Hi Garth, With the deepest respect, this change to support ≥ PHP 7.4 was unannounced and not well executed. I’d distinctly aware of the need to stay on track with the latest releases/patch system and applications. As I said previously, PHP 7.2 is still supported and maintained via Canonical/Ubuntu until 2022. I’m planning to do a fresh install and move everything to 22.04 at year end. ALL other of the near dozen of plugins I run do NOT make major changes like this without announcement and they all work with PHP 7.2. The EE changelog isn’t even properly updated https://eventespresso.com/wiki/ee4-changelog/ and doesn’t detail the change. The end game here is that I don’t have a working EE install at the moment and that is not good my business and yours. I’m not happy. I can update PHP versions and break other apps and have hours of downtime due to your not communicating effectively. Not a good experience at all. Please fix this. |
|
Hi Joseph, Thanks for the feedback. I’m sorry the changelog was not updated yet, it’s in progress. There is an email announcement already in the queue to be sent in 65 minutes. Your fix is simply to install a prior version of Event Espresso, which could be done in 2 minutes. |
|
Where is the previous version? How do I reinstall it? |
|
This reply has been marked as private. | |
September 29, 2022 at 10:16 am Thank you for the quick solution. Hopefully the compatibility issue will be resolved in future release. Will the latest EE support PHP 8.1 or only 8.0? Thanks! |
|
September 29, 2022 at 12:54 pm Hi Joseph, Firstly, apologies for the mix-up here. We need to hold our hands up, we made a mistake when adding the last couple of PHP8 fixes into the release. The reason for the syntax error is down to 2 files using Typed Properties, which are a PHP7.4+ specific feature. We’ve just pushed 4.10.40.p with those removed and that should fix the above. However, something to note here is that we will be setting EE4 to require PHP7.4 in the not-too-distant future. 4.10.39.p should have been compatible with PHP7.2 as it’s very similar to .38 just with some general fixes and PHP8 fixes (99.99% of the codebase was 7.2 compatible, 4 lines of code were not). PHP7.2 is officially EOL and has been for almost 2 years now, I’m aware that Ubuntu is maintaining a version for the LTS but many hosts are already forcing PHP8 and will no longer support PHP7 at all because officially it is end of life and we can’t keep compatibility with EOL versions forever.
PHP8. WP itself doesn’t officially support PHP8.1 at this time. Currently, we can’t use many of the PHP7 features as shown above and PHP8+ has breaking changes in itself so again we won’t be able to use even half of the new features PHP8.1 adds as it stands. |
|
@Tony, Thank you for being so quick to respond. It looks like WordPress PHP Compatiblity in WordPress 6.0.2 still show PHP 8.0 as BETA support. As we both know 7.4 will end its official support from the PHP team in short order https://www.php.net/supported-versions.php. Which leads me to my question: Will you support customers who make the jump to PHP 8.1 It looks like some have said 8.1 fixes quite a few things and it is technically the latest STABLE release. =) |
|
It’s going to be a long time before we can officially say we support PHP8.1, it has much stricter type control which has never been the case for PHP. As you’ve seen we can’t even use PHP7.4 features without it causing fatals for some, exactly the same will happen if we update the code to fully support PHP8.1 I run PHP8.1 on a few test sites and EE works on those, there are a LOT of deprecated notices because 8.1 changes a lot, but it works. But that’s not an official ‘we do/will support PHP8.1 answer’ because the codebase is nowhere near ready to say its 8.1 compatible. |
|
So as of 09/2022, we should all aim for PHP 8.0 to be fully supported as the most ‘optimal’ PHP release. |
|
Pretty much, and I say that not just for Event Espresso but in general 🙂 |
|
The support post ‘Version 4.10.39.p Causing Issues – PHP Parse Errors’ 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.