Support

Home Forums Event Espresso Premium Event table template causing browser display errors

Event table template causing browser display errors

Posted: February 11, 2019 at 1:26 pm


Gilda Taffet

February 11, 2019 at 1:26 pm

Hello,

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…

[ESPRESSO_EVENTS_TABLE_TEMPLATE template_file = espresso-events-table-template-toggle.template.php table_style=”metro” category_slug=camp category_filter=false order_by=start_date table_search=false table_pages=10]

Thanks for your help…!


Gilda Taffet

February 11, 2019 at 1:48 pm

sigh… so “shortcake” is intended to be “shortcode”…


Josh

  • Support Staff

February 11, 2019 at 2:29 pm

Hi,

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.


Gilda Taffet

February 11, 2019 at 2:48 pm

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 6 months, 2 weeks ago by  Josh. Reason: removed large block of code


Josh

  • Support Staff

February 11, 2019 at 2:54 pm

Hi,

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.


Gilda Taffet

February 11, 2019 at 2:57 pm

Thank you sooooooo much, you guys rock! Just for my knowledge, will you let me know which part of the code needed to be updated?


Josh

  • Support Staff

February 11, 2019 at 3:06 pm

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();)


Gilda Taffet

February 11, 2019 at 3:17 pm

Excellent, thanks for the explanation and thank you for rescuing us today : )

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Gilda Taffet 6 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is:
pending
Do NOT follow this link or you will be banned from the site!