Support

Home Forums Event Espresso Premium Unable to Preview Messages

Unable to Preview Messages

Posted: May 28, 2023 at 9:09 am


asse2014

May 28, 2023 at 9:09 am

Running WP 6.2.2 and EE v5.0.6.p on Nginx web server

When trying to preview messages, get this error. “There has been a critical error on this website. Learn more about troubleshooting WordPress.”

With WP Debug turned on, see this

A RuntimeException was thrown! code: EE_Admin_Page – _route_admin_request – 1150 Page route “_preview_message” with the supplied arguments () threw the following exception: Call to a member function get() on null click to view backtrace and class/method details
/www/xxx/public/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php ( line no: 1150 )

Warning: Cannot modify header information – headers already sent by (output started at /www/xxx/public/wp-content/plugins/event-espresso-core-reg/core/exceptions/ExceptionStackTraceDisplay.php:82) in /www/xxx/public/wp-admin/includes/misc.php on line 1431

Warning: Cannot modify header information – headers already sent by (output started at /www/xxx/public/wp-content/plugins/event-espresso-core-reg/core/exceptions/ExceptionStackTraceDisplay.php:82) in /www/xxx/public/wp-includes/functions.php on line 6896

Warning: Cannot modify header information – headers already sent by (output started at /www/xxx/public/wp-content/plugins/event-espresso-core-reg/core/exceptions/ExceptionStackTraceDisplay.php:82) in /www/xxx/public/wp-admin/admin-header.php on line 9

Server Error log

PHP message: PHP Fatal error: Uncaught Error: Call to a member function get() on null in /www/xxx/public/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php:363

Stack trace:

#0 /www/xxx/public/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/xxx/public/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Attendee.class.php(42): EE_Base_Class->__construct(Array, false, ”, Array)
#2 /www/xxx/public/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Attendee.class.php(63): EE_Attendee->__construct(Array, false, ”, Array)
#3 /www/xxx/public/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/xxx/public/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/data_class/EE_Messages_Preview” while reading response header from upstream, client: xxx, server: xxx, request: “GET /wp-admin/admin.php?page=espresso_messages&message_type=receipt&messenger=html&context=purchaser&GRP_ID=1&action=preview_message&preview_message_nonce=954a4cb676&return=edit_message_template HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-xxx.sock:”, host: “xxx”, referrer: “https://xxx/wp-admin/admin.php?page=espresso_messages&action=edit_message_template&id=1&context=purchaser&edit_message_template_nonce=fa70d9109a&return=global_mtps


asse2014

May 30, 2023 at 11:48 am

Also unable to send test messages. Same errors.


Tony

  • Support Staff

May 31, 2023 at 4:32 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.


asse2014

May 31, 2023 at 7:44 am

Thanks Tony. Everything is working now.


Tony

  • Support Staff

May 31, 2023 at 8:16 am

Awesome, thanks for the update 🙂

Any further issues just let us know.

The support post ‘Unable to Preview 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