Support

Home Forums Event Espresso Premium Critical error when testing messages

Critical error when testing messages

Posted: May 24, 2023 at 1:38 pm

Viewing 2 reply threads


socialsparkmedia

May 24, 2023 at 1:38 pm

I just edited the default payment message and when I try to send a test I get “There has been a critical error on this website. Please check your site admin email inbox for instructions.”

This also happens if I just try and preview the message. I tried it on a message I hadn’t edited and the same thing happens.

When I go to Maintenance / System Information I get the same message, although it’s inside the WP dashboard, not just a white screen like before. The email I got says the error is in EE. Here are the error details from the email:
Error Details
=============
An error of type E_ERROR was caused in line 1150 of the file /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php. Error message: Uncaught Error: Call to a member function get() on null in /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php:363
Stack trace:
#0 /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php(190): EE_Base_Class->set(‘ATT_ID’, ‘999999991’, true)
#1 /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Attendee.class.php(42): EE_Base_Class->__construct(Array, false, ”, Array)
#2 /www/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Attendee.class.php(63): EE_Attendee->__construct(Array, false, ”, Array)
#3 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Preview_incoming_data.class.php(284): EE_Attendee::new_instance(Array)
#4 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Preview_incoming_data.class.php(86): EE_Messages_Preview_incoming_data->_get_some_attendees()
#5 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Preview_incoming_data.class.php(44): EE_Messages_Preview_incoming_data->_setup_attendees_events()
#6 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(932): EE_Messages_Preview_incoming_data->__construct(Array)
#7 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(905): EE_Messages_Generator->_set_data_handler(Array, ‘EE_Messages_Pre…’)
#8 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(782): EE_Messages_Generator->_validate_and_setup_data()
#9 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(160): EE_Messages_Generator->_verify()
#10 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(384): EE_Messages_Generator->generate(false)
#11 /www/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(1026): EE_Messages_Processor->generate_for_preview(Object(EE_Message_To_Generate), true)
#12 /www/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(2196): EED_Messages::preview_message(‘payment’, ‘primary_attende…’, ’email’, true)
#13 /www/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(3204): Messages_Admin_Page->_preview_message(true)
#14 /www/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(3145): Messages_Admin_Page->_do_test_send(‘primary_attende…’, ’email’, ‘payment’)
#15 /www/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(2738): Messages_Admin_Page->performTestSendAfterUpdate(’email’, ‘payment’, ‘primary_attende…’)
#16 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1142): Messages_Admin_Page->_insert_or_update_message_template(false)
#17 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(877): EE_Admin_Page->_route_admin_request()
#18 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(694): EE_Admin_Page->route_admin_request()
#19 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(292): EE_Admin_Page->_page_setup()
#20 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(482): EE_Admin_Page->initializePage()
#21 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(330): EE_Admin_Page_Init->_initialize_admin_page()
#22 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(185): EE_Admin_Page_Init->do_initial_loads()
#23 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(94): EE_Admin_Page_Loader->findAndLoadAdminPages()
#24 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(207): EE_Admin_Page_Loader->init()
#25 /wordpress/wp-includes/class-wp-hook.php(308): EE_Admin->init(”)
#26 /wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#27 /wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#28 /www/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1167): do_action(‘AHEE__EE_System…’)
#29 /wordpress/wp-includes/class-wp-hook.php(308): EE_System->initialize_last(”)
#30 /wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#31 /wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#32 /wordpress/wp-settings.php(626): do_action(‘init’)
#33 /www/wp-config.php(113): require_once(‘/wordpress/wp-s…’)
#34 /wordpress/wp-config.php(5): require(‘/www/wp-config….’)
#35 /wordpress/wp-load.php(50): require_once(‘/wordpress/wp-c…’)
#36 /wordpress/wp-admin/admin.php(34): require_once(‘/wordpress/wp-l…’)
#37 {main}

Next RuntimeException: Page route "_insert_or_update_message_template" with the supplied arguments () threw the following exception: Call to a member function get() on null in /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:1150
Stack trace:
#0 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(877): EE_Admin_Page->_route_admin_request()
#1 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(694): EE_Admin_Page->route_admin_request()
#2 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(292): EE_Admin_Page->_page_setup()
#3 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(482): EE_Admin_Page->initializePage()
#4 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(330): EE_Admin_Page_Init->_initialize_admin_page()
#5 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(185): EE_Admin_Page_Init->do_initial_loads()
#6 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(94): EE_Admin_Page_Loader->findAndLoadAdminPages()
#7 /www/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(207): EE_Admin_Page_Loader->init()
#8 /wordpress/wp-includes/class-wp-hook.php(308): EE_Admin->init(”)
#9 /wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#10 /wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /www/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1167): do_action(‘AHEE__EE_System…’)
#12 /wordpress/wp-includes/class-wp-hook.php(308): EE_System->initialize_last(”)
#13 /wordpress/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
#14 /wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#15 /wordpress/wp-settings.php(626): do_action(‘init’)
#16 /www/wp-config.php(113): require_once(‘/wordpress/wp-s…’)
#17 /wordpress/wp-config.php(5): require(‘/www/wp-config….’)
#18 /wordpress/wp-load.php(50): require_once(‘/wordpress/wp-c…’)
#19 /wordpress/wp-admin/admin.php(34): require_once(‘/wordpress/wp-l…’)
#20 {main}
thrown


socialsparkmedia

May 24, 2023 at 1:40 pm

This reply has been marked as private.


Tony

  • Support Staff

May 31, 2023 at 4:34 am

Hi there,

We found the cause of this and fixed it in version 5.0.7.p which has now been pushed live.

If you don’t see the update available o your site yet just go to Event Espresso -> General Settings. Make no changes and just hit save to force an update check.

The update should then show in Dashboard -> Plugins as usual.

Viewing 2 reply threads

The support post ‘Critical error when testing messages’ 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