Support

Home Forums Event Espresso Premium Messages failing to generate?

Messages failing to generate?

Posted: December 25, 2019 at 8:49 pm

Viewing 5 reply threads


wfinley

December 25, 2019 at 8:49 pm

Having a bunch of errors in the past couple of days. Getting 2 in particular:

1. an error generated for a wait list email
Message failed to generate for the following reasons:
EE_Messages_REG_incoming_data requires the incoming data argument to be an instance of EE_Registration or an array where the first value is an instance of EE_Registration

2. Error for payment notifications
Message failed to generate for the following reasons:
Incoming data for the Gateways data handler must have an EE_Transaction object as the value for the first array index.

I have set generating “on the same request” – but the EE_Messages_REG_incoming_data is still being thrown. Happening every 5 minutes.

What should I do?


Josh

  • Support Staff

December 26, 2019 at 8:04 am

The errors you saw can happen if the data used to generate the messages is no longer valid, which can happen if there’s a PHP fatal error during a batch process.

You’ll need to first delete the current messages queued for generation. Then after that it’s OK to change the setting Event Espresso -> Messages -> Settings and set ‘Generate and send messages’ to ‘On same request’

Then if possible you can check the site’s PHP error logs for any fatal errors when the earlier messages failed to generate.


wfinley

December 27, 2019 at 11:00 am

Thx. Turns out the message was in the queue to be generated and before it could be generated the data was deleted. Then it got caught in an endless loop of attempting to generate data that didn’t exist and created about 200 bad messages.


Tony

  • Support Staff

December 30, 2019 at 5:11 am

Hmm, that’s odd.

Did you see any errors in the logs that may hint as to why the data was deleted?

I’m going to do some digging into this to see if we can bulletproof the above further.


wfinley

December 30, 2019 at 5:41 pm

Sorry was unclear… turns out the user deleted the data. So basically: person signs up for waitlist, admin queues the waitlist notice to be generated – but hears back that he/she isn’t signing up before the email is generated. So the admin then deletes waitlist entry and the plugin goes into an endless loop trying to generate an email for data that doesn’t exist.


Tony

  • Support Staff

December 31, 2019 at 3:32 am

Ahhh ok, that makes sense now thank you.

I’ve created a ticket to investigate this further and see what we can do, I think it makes more sense for the above error to simply mark the email as failed and move on.

Viewing 5 reply threads

The support post ‘Messages failing to generate?’ 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