Posted: September 13, 2019 at 11:04 am
|
September 13, 2019 at 11:04 am Hi, I am having a strange issue where email notifications are showing up as the grey color “no recipient” queued for sending status. They tend to get hung up in that state until eventually when another registration or two is made at which time they will send in a group of 3 or so emails all at once. In the most recent case it sent 3 today all at once. Each had a different status (paid, pending, abandoned) two of them were from 2 days ago and one today which triggered the other two to get kicked out of the system after the were hug up for several days. Any ideas what would cause this? I have the most updated version of all plugins and wordpress. My theme does need an updated. I may try that next. Thanks |
September 13, 2019 at 11:25 am Hi Brett, If you go to Tools > Site Health does it mention anything about a schedule task failing, or a loopback request failing? If so, it may help to go to Event Espresso > Messages > Message Settings and set the the option for emails to be sent on the same request. |
|
|
Hi Josh, It is now several hours later and the test message from earlier is still sitting as the blue status “Queued For Sending.’ I checked the site health tab. All I see there is 1 Critical Issue – Php Version Update and 2 Recommended Improvements. Inactive Plugins and Have a Default Theme Available. I do not see anything else. I did not change the “Generate and send all messages” setting to same request yet. I can try that next; however I do enjoy the ability to catch emails before they are sent via the delay. Thanks for your insight, any other thoughts? |
Queued for sending means it’s stepped through one step of the queue. 1st – Queued for generation If you’re sitting at step 2 then the ‘queue’ is functioning, but apparently not all the time (which ties in with scheduled events/loopback requests failing). A quick explanation of how the message queue works so you know what happens. The message queue has WP Cron events By default they are set to run every 5 mins…. however note that WP Cron is NOT reliable enough to say for certain that the cron runs every X mins. Why? Because WP Cron relies on page hits, a user has to visit your site and then WP Cron runs in the background to check for any scheduled events, no user for X hours means no WP Cron check that amount of time either. So when you add a message to the queue, it waits for whichever cron it needs, first Like this: https://monosnap.com/file/T2yN6Gai5uyEoGqw5wpikN9wZ3I5kF When/if They then should look like this: https://monosnap.com/file/u25Av0FUIO3xyzFadWdqiRPPuArjp4 I’ve blurred my emails address out, but the point is they now have content and have recipients. Those emails are now in the queue again and waiting for Again, that’s scheduled for 5 mins but that doesn’t mean it will run at 5 min intervals for the reasons above. You can test this yourself though by adding an email to the queue, load the queue and wait around 5-6 mins. Refresh the page and it should step through, repeat for the next step.
Just to note, any errors with loopback requests usually take around 15-30 seconds to display on the site health page (it’s testing the request and waiting for a response) so just to confirm, did you stay on that page for a little? We’ve had users give the page a quick glance, notice there were no loopback errors and then close the page before the error actually loaded. Which PHP version are you running?
If you change that option you skip all of the above and the request that triggers the email simply generated and sends the email on that same request, you still see the email in the queue, but it should just show as sent straight away. Please change that setting and run a test registration to confirm if that functions correctly. We can continue to troubleshoot the queue issue if you want to switch back but it would be good to actually confirm the emails send directly. Also, install WP Crontrol on the site and go to Tools -> Cron events. Can you see the What is ‘Next run’ set to on both of those? |
|
|
Hi Tony, Thank you very much for your detailed and thorough reply. That makes perfect sense! I double checked our site health tab and waited for quite a few minutes to ensure it loaded fully. I still do not see any additional information. I did not change the setting as I just updated to the latest version of EE that came out either today or yesterday I am guessing and the issue seems to be resolved now. I ran through several tests and each progressed through the queue as expected. This issue seems to be resolved now. Thank you very much! |
Strange, we haven’t updated anything within the message queue system in a while so I’m not really sure why the latest version fixed it for you. Either way, I’m glad it’s working! Any further problems just let us know. |
|
The support post ‘Email Notifications Get Hung Up and Send In Batch Only’ 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.