After registering for an event, the Thank You page has a button called “View Full Order Confirmation Recipt”. When I click that button, it opens a new page and shows a fatal error has occurred.
The full error is posted below:
[23-Dec-2022 20:03:14 UTC] PHP Fatal error: Uncaught TypeError: EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice(): Argument #1 ($content) must be of type string, null given, called in /store1/home/yesempower/public_html/wp-includes/class-wp-hook.php on line 308 and defined in /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543
Stack trace:
#0 /store1/home/yesempower/public_html/wp-includes/class-wp-hook.php(308): EE_Html_messenger->add_powered_by_credit_link_to_receipt_and_invoice()
#1 /store1/home/yesempower/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php(471): apply_filters()
#3 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Html_messenger->_send_message()
#4 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(678): EE_messenger->send_message()
#5 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(605): EE_Messages_Queue->_do_send()
#6 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Queue.lib.php(552): EE_Messages_Queue->_process_message()
#7 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Processor.lib.php(460): EE_Messages_Queue->execute()
#8 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/modules/messages/EED_Messages.module.php(287): EE_Messages_Processor->generate_and_send_now()
#9 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php(240): EED_Messages->run()
#10 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Module_Request_Router.core.php(181): EE_Module_Request_Router->_module_router()
#11 /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Front_Controller.core.php(231): EE_Module_Request_Router->resolve_route()
#12 /store1/home/yesempower/public_html/wp-includes/class-wp-hook.php(308): EE_Front_Controller->pre_get_posts()
#13 /store1/home/yesempower/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#14 /store1/home/yesempower/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
#15 /store1/home/yesempower/public_html/wp-includes/class-wp-query.php(1833): do_action_ref_array()
#16 /store1/home/yesempower/public_html/wp-includes/class-wp-query.php(3749): WP_Query->get_posts()
#17 /store1/home/yesempower/public_html/wp-includes/class-wp.php(663): WP_Query->query()
#18 /store1/home/yesempower/public_html/wp-includes/class-wp.php(783): WP->query_posts()
#19 /store1/home/yesempower/public_html/wp-includes/functions.php(1332): WP->main()
#20 /store1/home/yesempower/public_html/wp-blog-header.php(16): wp()
#21 /store1/home/yesempower/public_html/index.php(17): require(‘…’)
#22 {main}
thrown in /store1/home/yesempower/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php on line 543
Please go to Event Espresso -> Messages -> Default Message Templates.
Find the Receipt message type in the list and click on ‘Edit Purchaser’.
On that page, does it show nothing in the boxes? As in no content to output?
If so, somehow your message template has lost all content and needs to be reset. In the sidebar of that template, you should see a ‘Reset Templates’ button, click that.
Great! That fixed the issue! The Receipt template content areas were all blank (except for the title). After resetting the template to the default, the receipt link began working again without error.
The support post ‘View Order Confirmation Recipt Button cauing fatal error’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.