Support

Home Forums Event Espresso Premium Custom confirmation email causing error on Save

Custom confirmation email causing error on Save

Posted: November 24, 2021 at 4:56 am

Viewing 4 reply threads


Kans2

November 24, 2021 at 4:56 am

Error when saving or editing a custom email notification for an event. e.g. Payment Received.

Error occurs when editing either context, event admin or attendee.

Event Espresso (versie 4.10.18.p)
WordPress 5.8.2
PHP version 8.0.12

URL when error is thrown
/wp-admin/admin.php?page=espresso_messages&action=update_message_template&noheader=1

Error Details. (Language Dutch)

Foutdetails
===========
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 1047 van het bestand ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php.
Foutmelding:
Uncaught Error: Unknown named parameter $new_template in ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php:1047
Stack trace:
#0 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(807): EE_Admin_Page->_route_admin_request()
#1 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(629): EE_Admin_Page->route_admin_request()
#2 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(235): EE_Admin_Page->_page_setup()
#3 ~/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(89): EE_Admin_Page->__construct()
#4 ~/wp-content/plugins/event-espresso-core-reg/caffeinated/admin/extend/messages/Extend_Messages_Admin_Page.core.php(23): Messages_Admin_Page->__construct()
#5 [internal function]: Extend_Messages_Admin_Page->__construct()
#6 ~/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1275): ReflectionClass->newInstanceArgs()
#7 ~/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(784): EE_Registry->_create_object()
#8 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(111): EE_Registry->create()
#9 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(158): EventEspresso\core\services\loaders\CoreLoader->load()
#10 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(82): EventEspresso\core\services\loaders\CachingLoader->load()
#11 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(105): EventEspresso\core\services\loaders\Loader->load()
#12 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(428): EventEspresso\core\services\loaders\Loader->getShared()
#13 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(279): EE_Admin_Page_Init->_initialize_admin_page()
#14 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(355): EE_Admin_Page_Init->do_initial_loads()
#15 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Loader.core.php(87): EE_Admin_Page_Loader->_get_installed_pages()
#16 [internal function]: EE_Admin_Page_Loader->__construct()
#17 ~/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(1275): ReflectionClass->newInstanceArgs()
#18 ~/wp-content/plugins/event-espresso-core-reg/core/EE_Registry.core.php(784): EE_Registry->_create_object()
#19 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CoreLoader.php(111): EE_Registry->create()
#20 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/CachingLoader.php(158): EventEspresso\core\services\loaders\CoreLoader->load()
#21 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(82): EventEspresso\core\services\loaders\CachingLoader->load()
#22 ~/wp-content/plugins/event-espresso-core-reg/core/services/loaders/Loader.php(105): EventEspresso\core\services\loaders\Loader->load()
#23 ~/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin.core.php(211): EventEspresso\core\services\loaders\Loader->getShared()
#24 ~/wp-includes/class-wp-hook.php(303): EE_Admin->init()
#25 ~/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#26 ~/wp-includes/plugin.php(470): WP_Hook->do_action()
#27 ~/wp-content/plugins/event-espresso-core-reg/core/EE_System.core.php(1228): do_action()
#28 ~/wp-includes/class-wp-hook.php(303): EE_System->initialize_last()
#29 ~/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#30 ~/wp-includes/plugin.php(470): WP_Hook->do_action()
#31 ~/wp-settings.php(578): do_action()


Tony

  • Support Staff

November 24, 2021 at 5:20 am

Hi there,

Event Espresso is currently not fully PHP8 compatible so to fix this you’ll need to switch the version of PHP on the sever down to PHP7.4.


Kans2

November 24, 2021 at 5:24 am

Ok, cool. I’ll do a switch tonight and test from there.
Thanks Tony.


Kans2

November 24, 2021 at 5:35 am

Just did a test in DEV and everything seems to work now using php 7.4
Thanks for your help!


Tony

  • Support Staff

November 25, 2021 at 4:34 am

My apologies, I missed your reply with it being so close to the other.

I’m glad you got it sorted, any further issues just let us know.

Viewing 4 reply threads

The support post ‘Custom confirmation email causing error on Save’ 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