Support

Home Forums Event Espresso Premium Wait List Email Template Error

Wait List Email Template Error

Posted: August 5, 2020 at 2:52 pm

Viewing 3 reply threads


Somatic Practice

August 5, 2020 at 2:52 pm

We’re receiving an error when trying to preview a Custom Waitlist message. The error is below:

WordPress version 5.4.2
Current theme: Avada Child (version 1.0.0)
Current plugin: Event Espresso – Wait Lists (EE4.9+) (version 1.0.2.p)
PHP version 7.2.31-1+ubuntu16.04.1+deb.sury.org+1

Error Details
=============
An error of type E_ERROR was caused in line 644 of the file /www/wp-content/plugins/eea-wait-lists/domain/services/modules/EED_Wait_Lists.module.php. Error message: Uncaught Error: Call to a member function reg_url_link() on null in /www/wp-content/plugins/eea-wait-lists/domain/services/modules/EED_Wait_Lists.module.php:644
Stack trace:
#0 /www/wp-content/plugins/eea-wait-lists/domain/services/messages/EE_Recipient_Waitlist_Shortcodes.lib.php(72): EED_Wait_Lists::wait_list_checkout_url(Object(EE_Registration))
#1 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/shortcodes/EE_Shortcodes.lib.php(184): EE_Recipient_Waitlist_Shortcodes->_parser(‘[RECIPIENT_WAIT…’)
#2 /www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Parse_Shortcodes.helper.php(234): EE_Shortcodes->parser(‘[RECIPIENT_WAIT…’, Object(EE_Messages_Addressee), Array)
#3 /www/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Parse_Shortcodes.helper.php(74): EEH_Parse_Shortcodes->_parse_message_template()
#4 /www/wp-content/plugins/event-espresso-core-reg/core/libraries/messages/EE_Messages_Generator.lib.php(737): EEH_Parse_Shortcodes->parse_message_template(Array, Object(E

Any suggestions?


Somatic Practice

August 5, 2020 at 3:04 pm

Looks like this is the solution: https://eventespresso.com/topic/event-espresso-wait-lists-ee4-9-error-when-testing-the-messages/

However, when I went to apply the fix (remove all but one ticket from event with lowest ID, there were two tickets on that event), the event auto-created that ticket and said it had sales, even though the sales were 0.

And if I get the ticket completely removed, then generate the test data for the preview, can I add back the ticket after?


Somatic Practice

August 5, 2020 at 3:16 pm

I went ahead and removed the ticket in the database, and the preview is displaying correctly now.


Tony

  • Support Staff

August 7, 2020 at 6:41 am

However, when I went to apply the fix (remove all but one ticket from event with lowest ID, there were two tickets on that event), the event auto-created that ticket and said it had sales, even though the sales were 0.

By Sales do you mean values in ‘Sold’ or ‘Regs’?

If you add tickets to the ticket selector and submit those are classed as ‘Regs’, any registrations linked to a ticket will prevent it from being deleted.

And if I get the ticket completely removed, then generate the test data for the preview, can I add back the ticket after?

No, at least not if you want the preview to continue to work. Each message generates test data on the fly, it is not stored in the DB. If you add it back afterwards you’ll get the same error when the data is generated again.

I went ahead and removed the ticket in the database, and the preview is displaying correctly now.

Great, if that ticket has no registrations assigned to it you can leave it deleted.

Viewing 3 reply threads

The support post ‘Wait List Email Template 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