Support

Home Forums Event Espresso Premium Error: add_powered_by_credit_link_to_receipt_and_invoice

Error: add_powered_by_credit_link_to_receipt_and_invoice

Posted: August 16, 2022 at 3:13 pm

Viewing 6 reply threads


wfinley

August 16, 2022 at 3:13 pm

Had a number of errors when people attempted to register this morning. In short – we had 17 open spots, 7 were able to register and then something happened and no one else was able to register. On the front end people were seeing the following:
“Your form data could not be applied to any valid registrations. This can sometimes happen if too much time has been taken to complete the registration process.”
They were also seeing:
“An invalid registration was received. A valid Primary Registration for this transaction could not be found.”

When looking at the error log I see this error repeated multiple times:
Stack trace:
#0 /home/alaskaav/public_html/wp-includes/class-wp-hook.php(307): EE_Html_messenger->add_powered_by_credit_link_to_receipt_and_invoice(NULL, NULL, Object(EE_Receipt_message_type))
#1 /home/alaskaav/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(NULL, Array)
#2 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php(471): apply_filters(‘FHEE__EE_Html_m…’, NULL, NULL, Object(EE_Receipt_message_type))
#3 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Html_ in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php on line 543

How can I fix this? Issues occurring when too many people attempt to register at the same time is an on-going problem for us.


Tony

  • Support Staff

August 16, 2022 at 5:12 pm

Hi there,

That specific error means no content was passed for the Receipt template when the message system tried to generate the receipt.

Assuming your event is just using the global message template for Receipts/Invoices?

Go to Event Espresso -> Messages -> Default Message Templates.

Find the Receipt message type, click ‘Edit Purchaser’.

Does the message template have content shown there or are they blank?

If blank, click on the ‘Reset Templates’ button in the sidebar and EE will regenerate the default template for you. If you’ve made changes to the receipt previously you’ll need to redo them, but those changes have been lost regardless if the content is already blank.

Issues occurring when too many people attempt to register at the same time is an on-going problem for us.

What type of hosting?


wfinley

August 16, 2022 at 5:32 pm

Fixed the template issue. However is this related to the first error messages I posted?
Hosting is Hostek WordPress Optimized. Not using a caching plugin.


Tony

  • Support Staff

August 16, 2022 at 5:51 pm

Fixed the template issue. However is this related to the first error messages I posted?

I wouldn’t expect it to be no, this error:

“Your form data could not be applied to any valid registrations. This can sometimes happen if too much time has been taken to complete the registration process.”

Happens when EE tries to pull in the registrations from the current ‘checkout’ transaction when processing the reg step and receives none.

“An invalid registration was received. A valid Primary Registration for this transaction could not be found.”

This is likely related to the above error, it happens during the finalization step. EE checks for a valid primary registrant linked to the current transaction within the checkout.

If there is an issue happening during checkout that is causing the transaction queries to fail the 2 could be linked.

Are there any other errors thrown in the logs?


wfinley

August 16, 2022 at 6:03 pm

Quite a few… errors from the past month below.

[24-Jul-2022 07:15:26 UTC] —————————————————————————————-
[2022-07-24 07:15:26] Exception Details
Message: No configuration section has been provided while attempting to save "_Config".
Code: EE_Config – _verify_config_params – 551
File: /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php
Line No: 551
Stack trace:
#0 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php(873): EE_Config->_verify_config_params(”, ”, ‘_Config’, NULL, Array)
#1 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Configurable.core.php(147): EE_Config->get_config(”, ”, ‘_Config’)
#2 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/modules/event_single/EED_Event_Single.module.php(480): EE_Configurable->config()
#3 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/modules/event_single/EED_Event_Single.module.php(496): EED_Event_Single::display_venue()
#4 /home/alaskaav/public_html/wp-content/themes/alaskaavalanche/content-espresso_events-venues.php(4): espresso_display_venue_in_event_details()
#5 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(395): include(‘/home/alaskaav/…’)
#6 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(310): EEH_Template::display_template(‘/home/alaskaav/…’, Array)
#7 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(134): EEH_Template::locate_template(Array, Array, true, false)
#8 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(19): EEH_Template::get_template_part(‘content’, ‘espresso_events…’)
#9 /home/alaskaav/public_html/wp-content/themes/alaskaavalanche/single-espresso_events.php(59): espresso_get_template_part(‘content’, ‘espresso_events…’)
#10 /home/alaskaav/public_html/wp-includes/template-loader.php(106): include(‘/home/alaskaav/…’)
#11 /home/alaskaav/public_html/wp-blog-header.php(19): require_once(‘/home/alaskaav/…’)
#12 /home/alaskaav/public_html/index.php(17): require(‘/home/alaskaav/…’)
#13 {main}
—————————————————————————————-

[26-Jul-2022 00:01:18 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/alaskaav/public_html/wp-content/themes/alaskaavalanche/single-espresso_events.php on line 9

[03-Aug-2022 18:33:13 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given, called in /home/alaskaav/public_html/wp-includes/class-wp-hook.php on line 307 and defined in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543
Stack trace:
#0 /home/alaskaav/public_html/wp-includes/class-wp-hook.php(307): EE_Html_messenger->add_powered_by_credit_link_to_receipt_and_invoice(NULL, NULL, Object(EE_Receipt_message_type))
#1 /home/alaskaav/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(NULL, Array)
#2 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php(471): apply_filters(‘FHEE__EE_Html_m…’, NULL, NULL, Object(EE_Receipt_message_type))
#3 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Html_ in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php on line 543

[03-Aug-2022 18:33:47 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given, called in /home/alaskaav/public_html/wp-includes/class-wp-hook.php on line 307 and defined in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543
Stack trace:
#0 /home/alaskaav/public_html/wp-includes/class-wp-hook.php(307): EE_Html_messenger->add_powered_by_credit_link_to_receipt_and_invoice(NULL, NULL, Object(EE_Receipt_message_type))
#1 /home/alaskaav/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(NULL, Array)
#2 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php(471): apply_filters(‘FHEE__EE_Html_m…’, NULL, NULL, Object(EE_Receipt_message_type))
#3 /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_messenger.lib.php(650): EE_Html_ in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php on line 543

[04-Aug-2022 01:30:57 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/alaskaav/public_html/wp-content/themes/alaskaavalanche/single-espresso_events.php on line 9
[07-Aug-2022 20:29:24 UTC] PHP Notice: fwrite(): write of 22 bytes failed with errno=28 No space left on device in /home/alaskaav/public_html/sucuri-2f5b802ccb3a4316c84000f72007b228.php(121) : eval()’d code(246) : eval()’d code on line 26240
[08-Aug-2022 05:49:47 UTC] PHP Warning: unlink(/tmp/advanced-forms.1.9.2.1.zip): No such file or directory in /home/alaskaav/public_html/wp-admin/includes/class-wp-upgrader.php on line 333
[08-Aug-2022 05:49:47 UTC] PHP Warning: file_get_contents(/home/alaskaav/public_html/wp-content/plugins/sfwd-lms/sfwd_lms): failed to open stream: No such file or directory in /home/alaskaav/public_html/wp-includes/functions.php on line 6633
[08-Aug-2022 08:08:05 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/alaskaav/public_html/wp-content/themes/alaskaavalanche/single-espresso_events.php on line 9
[08-Aug-2022 17:50:00 UTC] PHP Warning: file_get_contents(/home/alaskaav/public_html/wp-content/plugins/sfwd-lms/sfwd_lms): failed to open stream: No such file or directory in /home/alaskaav/public_html/wp-includes/functions.php on line 6633
[08-Aug-2022 19:04:12 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given, called in /home/alaskaav/public_html/wp-includes/class-wp-hook.php on line 307 and defined in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543


Tony

  • Support Staff

August 18, 2022 at 7:48 am

Unfortunately, none of those explains the issue you are running into.

[2022-07-24 07:15:26] Exception Details
Message: No configuration section has been provided while attempting to save “_Config”.
Code: EE_Config – _verify_config_params – 551
File: /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php

This one is interesting as you shouldn’t have an empty config there.

The specific line it’s referring to is pulling in the config from the database, so unless the database is dropping connection I can’t think of a reason for that to be null.

[26-Jul-2022 00:01:18 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/alaskaav/public_html/wp-content/themes/alaskaavalanche/single-espresso_events.php on line 9

That’s from a custom template in your theme so I don’t know what that code is.

[03-Aug-2022 18:33:13 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to EE_Html_messenger::add_powered_by_credit_link_to_receipt_and_invoice() must be of the type string, null given, called in /home/alaskaav/public_html/wp-includes/class-wp-hook.php on line 307 and defined in /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/messenger/EE_Html_messenger.class.php:543

Same error as your opening post, that’s from an empty Receipt or Invoice message template.

[07-Aug-2022 20:29:24 UTC] PHP Notice: fwrite(): write of 22 bytes failed with errno=28 No space left on device in /home/alaskaav/public_html/sucuri-2f5b802ccb3a4316c84000f72007b228.php(121) : eval()’d code(246) : eval()’d code on line 26240

I assume you’ve fixed the disc space issue on the server? Runnning out of space could well be causing issues like this.

If you are still close to your allocated disc space you could be hitting the limit as more data is added to the site.

[08-Aug-2022 05:49:47 UTC] PHP Warning: unlink(/tmp/advanced-forms.1.9.2.1.zip): No such file or directory in /home/alaskaav/public_html/wp-admin/includes/class-wp-upgrader.php on line 333
[08-Aug-2022 05:49:47 UTC] PHP Warning: file_get_contents(/home/alaskaav/public_html/wp-content/plugins/sfwd-lms/sfwd_lms): failed to open stream: No such file or directory in /home/alaskaav/public_html/wp-includes/functions.php on line 6633

The fact that you are getting No such file or directory errors and the error above stating no disc space… would tell me to double check you actually do have some disc space available on the server here.


wfinley

August 18, 2022 at 11:11 pm

Thanks for the error message info above. The only one I couldn’t figure out was this one.

[2022-07-24 07:15:26] Exception Details
Message: No configuration section has been provided while attempting to save “_Config”.
Code: EE_Config – _verify_config_params – 551
File: /home/alaskaav/public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Config.core.php

I confirmed with my host today that we have plenty of disk space so that’s not the issue. I did run an EE update sometime around the 24th – and all those errors occurred on the 24th.

That said – I have disabled several plugins (we were using LearnDash which takes a fair amount of resources so that should help) … our next registration window is 8/20 and we’ll probably have 500 or so people vying for 15 spots. I’ll watch the error logs and get back to you.

Viewing 6 reply threads

The support post ‘Error: add_powered_by_credit_link_to_receipt_and_invoice’ 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