Support

Home Forums Event Espresso Premium View Order Confirmation Recipt Button cauing fatal error

View Order Confirmation Recipt Button cauing fatal error

Posted: December 23, 2022 at 4:53 pm


Laurel Briggs

December 23, 2022 at 4:53 pm

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


Garth

  • Support Staff

December 27, 2022 at 11:23 am

Do you know what version of PHP your site is using?


Laurel Briggs

December 27, 2022 at 4:18 pm

Hi Garth,
We are on 8.0. I tried switching to 7.4 but had the same error, so we switched back to 8.0.

EE is on the most recent version 4.10.41.p and the Event Espresso – WP Users (EE4.6+) add-on we use is also on the most recent version 2.0.19.p.


Tony

  • Support Staff

December 28, 2022 at 4:46 pm

Hi there,

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.

Does it show content then?

If so, does that fix the above?


Laurel Briggs

December 29, 2022 at 9:42 am

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.

Thank you so much for your help!


Tony

  • Support Staff

December 29, 2022 at 9:59 am

You’re most welcome, I’m glad that worked 🙂

Any further issues please let us know.

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.

Event Espresso