Support

Home Forums Event Espresso Premium [ESPRESSO_MY_EVENTS} Error

[ESPRESSO_MY_EVENTS} Error

Posted: August 10, 2018 at 9:39 pm

Viewing 2 reply threads


Dallas REIG

August 10, 2018 at 9:39 pm

Hello:

My site is getting the below error when accessing the page with the [ESPRESSO_MY_EVENTS] shortcode. Any ideas on how to resolve? Thanks in advance.

Fatal error: Uncaught Error: Class ‘EES_Espresso_My_Events’ not found in /home/[site]/public_html/wp-content/themes/[theme]/loop-espresso_my_events-event_section.template.php:19 Stack trace: #0 /home/[site]/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(386): include() #1 /home/[site]/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(298): EEH_Template::display_template(‘/home/[site]/…’, Array, true) #2 /home/[site]/public_html/wp-content/plugins/eea-wp-user-integration/domain/entities/shortcodes/EspressoMyEvents.php(270): EEH_Template::locate_template(‘loop-espresso_m…’, Array) #3 /home/[site]/public_html/wp-content/plugins/eea-wp-user-integration/domain/entities/shortcodes/EspressoMyEvents.php(194): EventEspresso\WpUser\domain\entities\shortcodes\EspressoMyEvents->loadTemplate(Array) #4 /home/[site]/public_html/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(111): EventEspres in /home/[site]/public_html/wp-content/themes/[theme]/loop-espresso_my_events-event_section.template.php on line 19


Tony

  • Support Staff

August 11, 2018 at 1:09 pm

Hi there,

Your using templates from an older version of the EE4 User integration add-on in your theme and those templates need an update to work correctly.

Go to /home/[site]/public_html/wp-content/themes/[theme]/loop-espresso_my_events-event_section.template.php:19

You’ll find:
$url = EES_Espresso_My_Events::get_current_page();

Change that to:
$url = EEH_URL::current_url();

That should fix the above error for you.


Dallas REIG

August 11, 2018 at 5:44 pm

Thanks! 🙂

Viewing 2 reply threads

The support post ‘[ESPRESSO_MY_EVENTS} Error’ 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