Posted: August 22, 2020 at 12:04 am
EE version 4.10.6 We have had messages stuck in “Queued for sending”. Noticed it last night, and manually sent them using the bulk tool in Messages. They all sent fine. I’ve tested the email sending from WP Mail SMTP plugin and from the EE message templates – both worked correctly. Originally, I thought this may be a problem with WP Mail SMTP plugin as I remember that it had recently updated (19th / 20th August). My second thought was that it might be related to updated to WP 5.5 (13th August). However, checking the transactions it seems that these messages had been queued since the 4th August, which pre-dates both of these upgrades. As far as I can see, then sending functionality is all working correctly… leading me to presume that the reason for queuing the messages must lie within EE? Can you suggest any solutions? We haven’t changed anything in the EE settings recently. Thanks |
|
Hi Dee, If you install this plugin on the site: https://en-gb.wordpress.org/plugins/wp-crontrol/ Then go to Tools -> Cron Events and search for ‘AHEE__EE_Messages_Scheduler’ Do you see 3 jobs listed?
|
|
There is only the following: AHEE__EE_Cron_Tasks__clean_up_junk_transactions Thanks |
|
Found other forum posts where you’ve discussed this. Any idea why they may have been lost/removed? |
|
Not currently, its only happened on a handful of sites and small number of times and we’ve found no link between them so far. If it continues to happen on yours please let us know. |
|
OK. Will do. Thanks for the support. |
|
You’re most welcome. My apologies for any issues caused and I’m sorry I can’t give you a specific reason for it happening. I can’t even check your site over to see if anything stands out as the jobs have been reset and re-added now but it is something we are keeping an eye on. |
|
This reply has been marked as private. | |
This has happened again. Eight messages queued for sending since yesterday (30th August). Checked the CRON jobs… and there are only the following: AHEE__EE_Messages_Scheduler__generation So as per your earlier post… AHEE__EE_Messages_Scheduler__sending |
|
I have NOT yet deactivated & reactivated EE plugin… just in case you wanted access to investigate. |
|
Hi D, If I could take a quick look over the site that would be great. Note I’ll reed to run some code on the site to check this, the quickest option for that to add a custom functions plugin to the site, however, we don’t edit code on the site without FTP access so we’ll need both WP-admin and FTP credentials on this form: |
|
Any updates on this? I sent the login credentials, do you still need them? |
|
Hi Dee, Firstly, my apologies for the delay. Unfortunately, even with access to your site (again thank you for that) it doesn’t give us any help narrowing down the cause, it just shows the Cron schedule is missing from the cron jobs. I did a little digging and found some reports of wp cron’s not being rescheduled due to a fatal error being thrown on the request, so I also checked your error logs… no fatal’s on your site. We are going to continue to investigate this and see what we can do, I did see one suggestion whilst browsing around on this which was to create an hourly cron event to confirm if the cron events we set are still set and if not reschedule. However, adding a cron event to what appears to check for randomly disappearing cron events doesn’t sound right to me although it may well be the best available solution. I can throw together a simple plugin to do the above if it’s something you want to try whilst we investigate this further? Disclaimer – becuase this isn’t something we can reproduce and or narrow down much more than ‘the cron is missing’ I don’t know how well the above will work I’m just offering a solution that may work better for you than de/reactivating EE in the meantime. |
|
September 11, 2020 at 12:06 am All noted. I agree that adding a cron event to check for randomly disappearing cron event isn’t logical. Just updated to the latest version of EE, and that’s brought all the cron jobs back again… so it’s just something that we will keep an eye on. Would you like me to leave the login credentials open? Or can I remove the accounts? Thanks |
|
There is ‘some’ logic in adding the hourly cron as so far the reports of disappearing crons all seem to reside around 5 minute or less crons (not just EE’s reports but with others) so the hourly ‘should’ stay on the site etc but it still just doesn’t site right with me.
Again thank you for the offer, but you can remove those. There are no real clues left behind on your site that I can see and from my research its often just random. If I do find something that sounds like it could be from a specific server setup etc would it be ok to contact you and see if your server has the same setup and if changing it (if possible) helps at all? |
|
This reply has been marked as private. | |
Thank you 🙂 |
|
Hi D, The latest version of Event Espresso 4 (4.10.8.p) includes an additional check for these missing crons which should help with this. We’ve used the That means that if you do have missing crons it can take anywhere from an hour onwards (wp_crons rely on users visiting your site for them to ‘fire’) to create them and then they’ll step through the process as normal. Whilst not ideal it’s better than the current situation and the best workaround we can find for what appears to be a random WP core issue. |
|
The support post ‘Queued for sending’ 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.