Support

Home Forums Event Espresso Premium Fatal error after using Upcoming Event Widget

Fatal error after using Upcoming Event Widget

Posted: July 19, 2018 at 12:47 pm


qianglu

July 19, 2018 at 12:47 pm

Fatal error: Uncaught Error: Call to undefined function espresso_list_of_event_dates() in /home/cafint5/home.caf-international.net/wp-content/plugins/event-espresso-core-reg/widgets/upcoming_events/EEW_Upcoming_Events.widget.php:400 Stack trace: #0 /home/cafint5/home.caf-international.net/wp-includes/class-wp-widget.php(372): EEW_Upcoming_Events->widget(Array, Array) #1 /home/cafint5/home.caf-international.net/wp-includes/widgets.php(743): WP_Widget->display_callback(Array, Array) #2 /home/cafint5/home.caf-international.net/wp-content/plugins/fusion-builder/shortcodes/fusion-widget-area.php(95): dynamic_sidebar(‘avada-slidingba…’) #3 /home/cafint5/home.caf-international.net/wp-includes/shortcodes.php(319): FusionSC_WidgetArea->render(Array, ”, ‘fusion_widget_a…’) #4 [internal function]: do_shortcode_tag(Array) #5 /home/cafint5/home.caf-international.net/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(fusion…’, ‘do_shortcode_ta…’, ‘[fusion_widget_…’) #6 /home/cafint5/home.caf-international.net in /home/cafint5/home.caf-international.net/wp-content/plugins/event-espresso-core-reg/widgets/upcoming_events/EEW_Upcoming_Events.widget.php on line 400


Josh

  • Support Staff

July 19, 2018 at 12:55 pm

Hi,

It looks like you’re trying to use the widget within a page builder. Is that correct?

If so, you’ll need to add some code to allow the template tags to also load within the page builder. Here’s a link to some example code that works with the Elementor page builder:

https://gist.github.com/Pebblo/eb77e0c3ce13e52afb4482f52aa642cf

You can add the above to a functions plugin and add your page builder’s actions to the array that starts on line 8 of the example code.


qianglu

July 20, 2018 at 9:46 am

Josh, which page builder would be the most friendly to event espresso, beaver builder or elementor? Which one do you suggest?


Tony

  • Support Staff

July 20, 2018 at 10:21 am

EE doesn’t officially support any page builders currently but it really depends on what you are trying to do.

We’ve had reports from users with both Beaver Builder and Elementor (when using the above snippet) that EE worked fine for them.

Personally, if I was going to use one, it would probably be Beaver Builder but to be very honest, its more just personal preference.

The support post ‘Fatal error after using Upcoming Event Widget’ 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