Support

Home Forums Event Espresso Premium Upgraded PHP to 8.x

Upgraded PHP to 8.x

Posted: August 24, 2023 at 1:46 pm

Viewing 4 reply threads


Shon Smith

August 24, 2023 at 1:46 pm

Hi I upgraded my wordpress sites php to 8.x and I am having an issue when I try and add a custom message to an event. here is the error code:

Uncaught RuntimeException: Sorry, but we can't create new templates because we're missing the message type in /var/www/mrtca.com/wp-content/plugins/event-espresso-core-reg/core/domain/services/messages/MessageTemplateRequestData.php:225\nStack trace:\n#0 /var/www/mrtca.com/wp-content/plugins/event-espresso-core-reg/core/domain/services/messages/MessageTemplateRequestData.php(63): EventEspresso\\core\\domain\\services\\messages\\MessageTemplateRequestData->setMessageType()\n#1 /var/www/mrtca.com/wp-content/plugins/event-espresso-core-reg/core/domain/services/messages/MessageTemplateManager.php(68): EventEspresso\\core\\domain\\services\\messages\\MessageTemplateRequestData->setMessageTemplateRequestData()\n#2 /var/www/mrtca.com/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/messages/espresso_events_Messages_Hooks_Extend.class.php(254): EventEspresso\\core\\domain\\services\\messages\\MessageTemplateManager->generateNewTemplates()\n#3 /var/www/mrtca.com/wp-includes/class-wp-hook.php(310): espresso_events_Messages_Hooks_Extend->create_new_custom()\n#4 /var/www/mrtca.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#5 /var/www/mrtca.com/wp-includes/plugin.php(517): WP_Hook->do_action()\n#6 /var/www/mrtca.com/wp-admin/admin-ajax.php(188): do_action()\n#7 {main}\n thrown in /var/www/mrtca.com/wp-content/plugins/event-espresso-core-reg/core/domain/services/messages/MessageTemplateRequestData.php on line 225, referer: https://mrtca.com/wp-admin/admin.php?page=espresso_events&action=edit&post=7731&edit_nonce=76848fc783


Tony

  • Support Staff

August 24, 2023 at 2:06 pm

Hi there,

Which specific PHP version are you using?

Which button are you clicking to get to the above error?


Shon Smith

August 24, 2023 at 2:09 pm

The version is php 8.0. I am clicking on the Create New Custom button inside the event to get a new custom message. Once I name the new message and hit create template it just spins and never returns, the log show the message I sent before.


Tony

  • Support Staff

August 24, 2023 at 3:19 pm

Ok, I did some digging and I can reproduce.

I’ve created a ticket for our developers to investigate this further, I’ll post up any feedback given.


Tony

  • Support Staff

August 24, 2023 at 3:51 pm

Just to note, a workaround for the time being is to generate the custom template within the messages section:

Event Espresso -> Messages -> Default Message Templates.

Find the message template you want a custom version of and click the icon on the message template to create a custom template.

Make the changes you need there (Make sure you are editing the correct ‘contect’, see HERE).

Then on the event editor, refresh the page and your new custom template will show in the dropdown, select it and update/save the event.

Viewing 4 reply threads

The support post ‘Upgraded PHP to 8.x’ 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