Support

Home Forums Event Espresso Premium [EVENT_LIST] not returning anything

[EVENT_LIST] not returning anything

Posted: September 15, 2014 at 11:38 am


BBRC Rotary Club

September 15, 2014 at 11:38 am

The EVENT_LIST shortcode appears broken on my installation – it is not returning any data. (WP 4.0, EE Version 3.1.36.5.P, with Calendar, members add-on, multi-event registration, permissions, recurring events)


BBRC Rotary Club

September 15, 2014 at 11:52 am

putting it on my staging site, and deactivating all other plugins, I get this:

Warning: Invalid argument supplied for foreach() in /…/wp-content/uploads/espresso/templates/event_list.php on line 85


Lorenzo Orlando Caum

  • Support Staff

September 15, 2014 at 12:06 pm

Hi,

There may be some old coding in that template file. Try temporarily renaming that file in that location to:

event_list.php.old

Was this site developed by a web developer? They should be able to help you update the coding to work with the current software.


Lorenzo


BBRC Rotary Club

September 15, 2014 at 1:38 pm

Hi Lorenzo – I tinkered about with this probably a few years ago. Doing a deeper dive into the code, it looks like the newer code (the stuff in the main plug-in folder) uses an array of attributes

event_espresso_get_event_details( $attributes );

while the code in the uploads folder I have is expecting $sql as the first parameter

Going to the TEMPLATES menu in WP, and ‘renaming the template directory’ (zapping all the customizations) fixed the problem – thanks for pointing me in the right direction.

You can close this support case now!

The support post ‘[EVENT_LIST] not returning anything’ 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