The company website that I manage has begun generating errors today on any pages that containing an event table template. Here is a sample of the shortcake we have been using without issue for several years…
We received your request for priority support. The error message actually indicates the cause is some out-of-date custom code in the child theme. We can take a look at updating that code.
Is this what you need below? This is from the espresso-events-table-template-toggle.template.php file that I see in the theme file editor. (I do not recall exactly what was altered in this file, I think I got this code from you guys to resolve an issue with the theme template…):
*redacted*
This reply was modified 5 years, 9 months ago by Josh. Reason: removed large block of code
I did not need that because you did send access to the site 🙂
The coding errors were fixed so you’re good to go now. The reason the coding errors were OK before is because PHP 5 was more loosey-goosey compared to PHP 7. So quite likely your site was updated to PHP 7 (a good thing) but as part of that upgrade any non-compatible with PHP 7 code needs to be updated.
There was a variable initialized as a string (e.g. $variable_name = '';) then two lines later it was expected to be an array (e.g. $variable_name[]). So the variable needs to be initialized as an array (e.g. $variable_name = array();)
Excellent, thanks for the explanation and thank you for rescuing us today : )
Viewing 7 reply threads
The support post ‘Event table template causing browser display 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.
Support forum for Event Espresso 3 and Event Espresso 4.