Support

Home Forums Event Espresso Premium Event Table problem

Event Table problem

Posted: February 26, 2019 at 7:00 am

Viewing 2 reply threads


kbayegan@gmail.com

February 26, 2019 at 7:00 am

I am getting the following error in a page with an event table:

Fatal error: Uncaught Error: [] operator not supported for strings in /home/spiretea/public_html/wp-content/themes/hatch/espresso-events-table-template-toggle.template.php:85 Stack trace: #0 /home/spiretea/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(386): include() #1 /home/spiretea/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(298): EEH_Template::display_template(‘/home/spiretea/…’, Array, true) #2 /home/spiretea/public_html/wp-content/plugins/eea-events-table-view-template/EES_Espresso_Events_Table_Template.shortcode.php(253): EEH_Template::locate_template(‘espresso-events…’, Array) #3 /home/spiretea/public_html/wp-includes/shortcodes.php(325): EES_Espresso_Events_Table_Template->process_shortcode(Array, ”, ‘ESPRESSO_EVENTS…’) #4 [internal function]: do_shortcode_tag(Array) #5 /home/spiretea/public_html/wp-includes/shortcodes.php(199): preg_replace_callback(‘/\\[(\\[?)(ESPRES…’, ‘do_shortcode_ta…’, ‘<h2><span style.. in /home/spiretea/public_html/wp-content/themes/hatch/espresso-events-table-template-toggle.template.php on line 85


Josh

  • Support Staff

February 26, 2019 at 7:51 am

Hi,

The location of the template file is showing it’s within your “hatch” WordPress theme, which indicates the template has been customized. You’ll need to update that customized template to be compatible with PHP 7.

Quite likely the fix will be to go in to the template and find anything that looks like this:
$category_slugs = '';
and change it to be:
$category_slugs = array();


kbayegan@gmail.com

February 26, 2019 at 1:20 pm

It worked. Thanks a lot.

Viewing 2 reply threads

The support post ‘Event Table problem’ 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