Posted: January 26, 2022 at 5:11 pm
|
I’m getting a critical error on an event page. This only happened after our host SiteGround updated the PHP for all servers from 7.2 to 7.4.27. The website where the error is: https://www.paws-itiveexperience.com/events-and-classes/ The PHP error log says Fatal error: Uncaught Error: [] operator not supported in strings in /home/customer/www/paws-itiveexperience.com/public_html/wp-content/uploads/espresso/templates/espresso-events-table-template.template.php:72 The customer service rep said to reach out to the plugin support and ask if the plugin is configured to work with PHP 7.4 and WP 5.9. |
Hi there, Yes, Event Espresso is fully compatible with PHP7. The error you are getting is from a custom template you are loading from The That’s likely the same issue as posted here: https://eventespresso.com/topic/fatal-error-ee4-with-php-7-1/ It’s a custom template from an older version of the Table View Template add-on which has been copied to the above location and now needs to be updated as explained in the above thread, that should fix it for you. |
|
|
Ok thanks Tony. I’ll give this a try shortly and report back. Hopefully it’s the same adjustment to the line. |
The line numbers are different but it should be the same change. Depending on what your custom template is doing you may be best grabbing the latest version of that template from the Events Table template and either updating your custom template with any changes from it… or, (again depending on what has changed) alter that version to customize the output to suit. |
|
|
Perfect. Thank you for that info! |
|
On line 72 it had |
That doesn’t seem correct.
That’s ‘fixing’ it because you are no longer using Somewhere above that line, do you have |
|
|
Correct. This is what it is:
|
|
Possibly it’s worth it to simply grab the updated template and see if that works better? If so, where can I download the new one you mentioned?
|
// loop thru terms and create links To be:
That fixes the problem, your above change stops the error but doesn’t fix it. —
It’s from the Event Tables View Template add-on which you can download from your account. You already have it installed on the site, although it may not be the latest version ( Filename is |
|
|
Excellent thanks! I had some other customization in there for start/end classes that I can’t figure out how to add that to the v1.3.9.p so I just changed out what you said. Thank you.
|
That’s better 🙂 So if the current template you have is working for you there is no need to pull in the latest version, it does add a couple of additional features to the template but nothing major, so if what you have works for you then it will be fine. |
|
|
Ok perfect thank you! |
You’re most welcome 🙂 |
|
The support post ‘EE broken after server was updated to PHP 7.4.27’ 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.