Support

Home Forums Event Espresso Premium [ESPRESSO_MY_EVENTS] not working

[ESPRESSO_MY_EVENTS] not working

Posted: June 5, 2024 at 3:42 am

Viewing 8 reply threads


CUWS

June 5, 2024 at 3:42 am

I recently moved my WordPress site to a new server and the [ESPRESSO_MY_EVENTS] shortcode now returns a ‘There has been a critical error on this website’ message on the front end.

Using [ESPRESSO_MY_EVENTS template=simple_list_table] does produce a list of very old events for me but then ends with the same error message. Users cannot see their most recent events.

The site had no design template or new plugins added after the server move. Does anyone know what may be going on? I can’t see anything in the error logs relating to this issue.

I am using WordPress 6.5.3 and Event Espresso – WP Users (EE4.6+) Version 2.0.16.rc.001


Tony

  • Support Staff

June 5, 2024 at 4:33 am

Hi there,

If you only move servers and nothing else changed then right now I’m guessing your new server runs PHP8+ and your old one was running PHP7 or below.

When you see ‘There has been a critical error on this website’ there has been a fatal error thrown in the code and those should always be saved in the error logs. You mentioned you don’t see anything related to this issue in the logs, what do you see there?

Load the page and see what entries are added to the log, add them here and I’ll review if preferred. Your looking for an error starting with ‘fatal error’ in the logs.

Or, enable WP_DEBUG mode by changing WP_DEBUG to be true in your wp-config.php file:

define( 'WP_DEBUG', true );

Then reload the above My events page and it should display the error on the page itself. Then set WP_DEBUG back to false.


CUWS

June 5, 2024 at 4:55 am

Thank you!

The error is:

Fatal error: Uncaught ValueError: Missing format specifier at end of string in /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/eea-wpuser-integration/templates/content-espresso_my_events-event_section.template.php:23 Stack trace: #0 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/eea-wpuser-integration/templates/content-espresso_my_events-event_section.template.php(23): sprintf() #1 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(406): include(‘/homepages/45/d…’) #2 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(322): EEH_Template::display_template() #3 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/eea-wpuser-integration/templates/loop-espresso_my_events-event_section.template.php(106): EEH_Template::locate_template() #4 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(403): include(‘/homepages/45/d…’) #5 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(320): EEH_Template::display_template() #6 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/eea-wpuser-integration/domain/entities/shortcodes/EspressoMyEvents.php(270): EEH_Template::locate_template() #7 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/eea-wpuser-integration/domain/entities/shortcodes/EspressoMyEvents.php(194): EventEspresso\WpUser\domain\entities\shortcodes\EspressoMyEvents->loadTemplate() #8 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(106): EventEspresso\WpUser\domain\entities\shortcodes\EspressoMyEvents->processShortcode() #9 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/services/cache/BasicCacheManager.php(88): EventEspresso\core\services\shortcodes\EspressoShortcode->EventEspresso\core\services\shortcodes\{closure}() #10 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(97): EventEspresso\core\services\cache\BasicCacheManager->get() #11 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/event-espresso-core-reg/core/services/shortcodes/EspressoShortcode.php(74): EventEspresso\core\services\shortcodes\EspressoShortcode->shortcodeContent() #12 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/shortcodes.php(433): EventEspresso\core\services\shortcodes\EspressoShortcode->processShortcodeCallback() #13 [internal function]: do_shortcode_tag() #14 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/shortcodes.php(273): preg_replace_callback() #15 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/class-wp-hook.php(324): do_shortcode() #16 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/plugin.php(205): WP_Hook->apply_filters() #17 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/post-template.php(256): apply_filters() #18 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/themes/radiate/content-page.php(21): the_content() #19 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/template.php(812): require(‘/homepages/45/d…’) #20 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/template.php(745): load_template() #21 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/general-template.php(206): locate_template() #22 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/themes/radiate/page.php(22): get_template_part() #23 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-includes/template-loader.php(106): include(‘/homepages/45/d…’) #24 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-blog-header.php(19): require_once(‘/homepages/45/d…’) #25 /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/index.php(17): require(‘/homepages/45/d…’) #26 {main} thrown in /homepages/45/d1003602137/htdocs/clickandbuilds/CUWS/wp-content/plugins/eea-wpuser-integration/templates/content-espresso_my_events-event_section.template.php on line 23


CUWS

June 5, 2024 at 4:56 am

The old server was indeed running an old version of PHP – I am also getting errors for the WP User Manager plugin as a result of the upgrade to PHP8+ ๐Ÿ™


Tony

  • Support Staff

June 5, 2024 at 5:24 am

Upgrading to PHP8 is a good thing, it may not feel like it at the time, but it is. PHP8+ is faster, forces better code handling/practices and overall is just a massive improvement.

Plugins often need to update their code for it because code that is valid in PHP7 will throw a fatal in PHP8, but the push for upgrading PHP is overall a good thing and has been needed for a very long time. PHP7 has now been end of life for over a year so staying on that version will eventually cause you more issues and security problems as time goes on.

The error you are getting is from the template file missing an s from the end of a string, it’s a placeholder and is required in PHP8+, we fixed this a while back but you’re using an older version of the add-on that doesn’t have the fix.

You’ll need to update the WP user integration add-on to fix this:

https://eventespresso.com/product/eea-wp-user-integration/


CUWS

June 5, 2024 at 5:26 am

Super helpful thank you – so I will have to buy an additional plugin to fix this?


Tony

  • Support Staff

June 5, 2024 at 6:46 am

I know we’ve now addressed this via email, but just updating this here for any future readers.

so I will have to buy an additional plugin to fix this?

Sort of, you need to update the current version you are using to get all of the latest changes for that add-on.

Your current license (EE4 Personal License) doesn’t/didn’t include add-ons so you’ll need to purchase the WP User integration add-on itself or switch to the Everything license which includes access to all add-ons.


CUWS

June 5, 2024 at 7:46 am

Thank you for confirming and for all your help. I have purchased the add-on and it is now all working!:)


Tony

  • Support Staff

June 5, 2024 at 7:52 am

Awesome! I’m glad it worked.

Any further issues just let me know ๐Ÿ™‚

Viewing 8 reply threads

The support post ‘[ESPRESSO_MY_EVENTS] not working’ 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