Support

Home Forums Event Espresso Premium EE Table View Template creates a critical error in WP

EE Table View Template creates a critical error in WP

Posted: August 7, 2020 at 9:55 am


afcco

August 7, 2020 at 9:55 am

I’m trying to add a simple events list table to my homepage, but when I add even the simplist of shortcodes [ESPRESSO_EVENTS_TABLE_TEMPLATE] the home page messes up and gives me a critical error msg.

Screen shot of issue


afcco

August 7, 2020 at 9:57 am

As reference, I am using;

WP ver 5.4.2,
EE ver 4.10.6
EE Table view plugin ver 1.3.9
EE calendar ver 3.2.13

afccontario.ca

I’ve setup a test page to show the error – afccontario.ca/home-6


Tony

  • Support Staff

August 7, 2020 at 10:21 am

Hi there,

We’ll need the error being thrown on that request to see what is going on. Your host will usually have a section within your control panel to view errors, can you check there and see what is being thrown when you load that page?

Or, if you add this to your sites wp-config.php file:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

(The file will already have something like define( 'WP_DEBUG', false );, that snippet replaces that single line)

We can then check for an error log on your site.


afcco

August 10, 2020 at 9:16 am

OK, I’ve added that code to the config file. You can go to:

https://afccontario.ca/home-6/

That page is not accessible from anywhere else, but shows the critical error.


Tony

  • Support Staff

August 10, 2020 at 10:51 am

Ok, so its from the custom espresso-events-table-template.template.php you have in wp-content/uploads/espresso/templates/

On line 77 you likely have something like $category_slugs = '';

If so, change that to $category_slugs = array();

We fixed that template in the add-on itself a while ago but looks like you have an older version in your uploads folder.

The support post ‘EE Table View Template creates a critical error in WP’ 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