Support

Home Forums Event Espresso Premium Version 4.10.39.p Causing Issues – PHP Parse Errors

Version 4.10.39.p Causing Issues – PHP Parse Errors

Posted: September 29, 2022 at 7:41 am

Viewing 13 reply threads


Joseph Guarino

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:

2022/09/29 13:26:20 [error] 1210#1210: *50445 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected 'EE_Ticket' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/xwx/html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/TicketDetails.php on line 25" while reading response header from upstream, client: 0.0.0.0, server: host.com, request: "GET /events/virtual-event1022/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "www.host.com", referrer: "https://www.host.com/event-registration/"

Any ideas


Garth

  • Support Staff

September 29, 2022 at 8:07 am

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.


Joseph Guarino

September 29, 2022 at 8:10 am

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…


Garth

  • Support Staff

September 29, 2022 at 9:18 am

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.


Joseph Guarino

September 29, 2022 at 9:30 am

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.


Garth

  • Support Staff

September 29, 2022 at 9:55 am

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.


Joseph Guarino

September 29, 2022 at 9:57 am

Where is the previous version? How do I reinstall it?


Tony

  • Support Staff

September 29, 2022 at 9:58 am

This reply has been marked as private.


Joseph Guarino

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!


Tony

  • Support Staff

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.

Will the latest EE support PHP 8.1 or only 8.0?

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.


Joseph Guarino

September 29, 2022 at 2:02 pm

@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.
https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

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. =)


Tony

  • Support Staff

September 29, 2022 at 2:22 pm

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.


Joseph Guarino

September 29, 2022 at 2:32 pm

So as of 09/2022, we should all aim for PHP 8.0 to be fully supported as the most ‘optimal’ PHP release.


Tony

  • Support Staff

September 29, 2022 at 2:49 pm

Pretty much, and I say that not just for Event Espresso but in general 🙂

Viewing 13 reply threads

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.

Event Espresso