Support

Home Forums Event Espresso Premium EE_Event_List_Query not found

EE_Event_List_Query not found

Posted: June 17, 2017 at 4:23 pm

Viewing 3 reply threads


Astoria23

June 17, 2017 at 4:23 pm

This must have happened very recently, but I’m now getting the following error.

Fatal error: Class 'EE_Event_List_Query' not found in

When I visit the line of code where this occurs in the theme, I get:

$wp_query = new EE_Event_List_Query( $atts );

Event Expresso is upgraded to the latest version, 4.9.4.2.p. WordPress is upgraded to the latest 4.8.

Any ideas?


Astoria23

June 17, 2017 at 4:29 pm

Also looking at this:
https://eventespresso.com/wiki/ee4-changelog/

I see that this would have been an issue prior to Event Expresso 4.9.40p released on June 8, 2017, but since then have been patched.


Astoria23

June 18, 2017 at 12:48 pm

After some research I see that this function is now deprecated.
https://eventespresso.com/topic/ee_event_list_query-not-working/

I see that a solution was offered here: https://eventespresso.com/topic/ee_event_list_query-not-working/ by changing my line to something like:
https://github.com/eventespresso/event-espresso-core/blob/master/public/template_tags.php#L177

In another forum, https://eventespresso.com/topic/sort-eeh_event_query-by-event-name/ this offers another solution using WP_Query.
https://gist.github.com/joshfeck/ae206b13b751743b08137e72dc55151e

Is there one preferred method over the other? What’s the best long term solution? I don’t want to run into more deprecation issues. I do feel more comfortable with the WP_Query route only because it looks like it could stand the test of time, but please advise.


Josh

  • Support Staff

June 19, 2017 at 8:26 am

Hi there,

Either of the two solutions you found will be fine.

Viewing 3 reply threads

The support post ‘EE_Event_List_Query not found’ 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