When trying to send newsletters to attendees, we are continually getting this error:
“An error has occurred:
A database error has occurred. Turn on WP_DEBUG for more information.”
When inspecting the information window within Message Activity, we get the following error:
“Message failed to generate for the following reasons:
There is no generation data for this message. Unable to generate.”
It looks like the message had not been generated yet, and the reason it hasn’t bee generated yet is because those get added to a schedule and get generated later. Have you tried waiting for a bit after you send the newsletter?
Clicking on the gear next to message failure gives me this error:
The EE_Message_Registrations_incoming_data class expects an array of EE_Registration objects. EE_Messages_Registrations_incoming_data – __construct – 27
Clicking on the gear next to message failure gives me this error:
The EE_Message_Registrations_incoming_data class expects an array of EE_Registration objects. EE_Messages_Registrations_incoming_data – __construct – 27
There is no gear icon in the screenshot for the newsletter message you posted:
What does it show when you click the ‘i’ for that message?
Can you post the full steps you are taking to send the newsletter message please?
I am attempting to send an email to 1-300 previous attendees. Essentially a reminder that they can purchase season tikcets.
How many registrations have you selected at once to send the message that is failing? I’m wondering if there is a timeout while pulling in all of the information if you are selecting large batches of registrations to trigger the message for.
If you send the newsletter to a single registrant does it work then? For example if you add your own test registration to the event and send the newsletter to that, does it send?
How many registrations did you select to throw that error?
If you enable WP_DEBUG on the site and retest it should show the full error message being thrown which will help narrow it down.
It looks like the query to pull all of the registrations before passing them over to the messages system if failing, which means the message has no data to use to generate the message and throws an error.
WE’ve given you every error and screen shot we can find. We’ve also submitted login information for you to login to our site. We really need this fixed as soon as possible.
You can find the full error message in the wp-content/debug.log file of your site. We’re not able to access that file with the credentials that you sent to us, because no FTP credentials were included with the form you sent.
Turns out WP_DEBUG was disabled on the site so there’s nothing useful within the log.
WP_DEBUG_LOG is enabled, but that does nothing if WP_DEBUG is false – http://take.ms/qGl7B
It looks like you’ve defined WP_DEBUG to true at the end of the file, however at that point its already been defined so your code will be ignored. I’ve removed the additional WP_DEBUG as it causes notices to be thrown but when defining constants or making any changes to wp-config you want to always be above the line that says /* That's all, stop editing! Happy blogging. */ – http://take.ms/Nf6bb
I have fixed the above and enabled WP_DEBUG so that the errors thrown should be logged, can you retest the registrations you tried previously please. I tested a single Newsletter message to myself and that worked fine.
Side note, allow_url_fopen is disabled on your server:
[Tue Aug 30 03:40:03.766532 2016] [:error] [pid 26262] [client xxx.xxx.xxx.xxx] PHP Warning: getimagesize(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0
That prevents the images (and styles) from loading on your PDF’s. If you download the PDF invoice and you’ll see the problem, to fix it you’ll need to contact your host and have them enable allow_url_fopen on your site.
So the above is being caused by the amount of registrations your generating the batch email for in one go, you need to break down the selection into smaller groups of say 30.
As you can see from the amount of info (that’s the message details being generated for each individual message) theres a lot going on when you trigger that batch email and your server can’t keep up.
Reduce the batch selection down and trigger one group, then the next and so so the messages are generated in in smaller groups and it should work fine.
Thanks for your help, we were successful! However, I spent the entire night parsing through the 1118 registrants in groups of 30 to do so. Hopefully this can be corrected somehow.
We have a ticket open for this to be investigated with a note to update this thread with any feedback, it can be closed and we can reopen it when needed.
Nevermind, I found the download. Our site hasn’t been notified yet. Thanks!
Viewing 31 reply threads
The support post ‘Unable to send Newsletters to attendees’ 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.