Support

Home Forums Event Espresso Premium Queued for sending

Queued for sending

Posted: August 22, 2020 at 12:04 am


dee4dogs

August 22, 2020 at 12:04 am

EE version 4.10.6
WP version 5.5
WP Mail SMTP version 2.3.1

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
D


Tony

  • Support Staff

August 24, 2020 at 5:56 am

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?

AHEE__EE_Messages_Scheduler__sending
AHEE__EE_Messages_Scheduler__generation
AHEE__EE_Messages_Scheduler__cleanup


dee4dogs

August 24, 2020 at 6:16 am

There is only the following:

AHEE__EE_Cron_Tasks__clean_up_junk_transactions
AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check
AHEE_EE_Cron_Tasks__clean_out_old_gateway_logs
AHEE__EE_Messages_Scheduler__cleanup

Thanks


dee4dogs

August 24, 2020 at 6:27 am

Found other forum posts where you’ve discussed this.
I deactivated EE plugin, reactivited, and checked WP Crontol.
Those three jobs are now listed.
Will keep an eye on it for a week or so.

Any idea why they may have been lost/removed?


Tony

  • Support Staff

August 24, 2020 at 7:33 am

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.


dee4dogs

August 24, 2020 at 7:45 am

OK. Will do. Thanks for the support.


Tony

  • Support Staff

August 24, 2020 at 8:39 am

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.


dee4dogs

August 25, 2020 at 6:37 am

This reply has been marked as private.


dee4dogs

August 31, 2020 at 9:48 am

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
AHEE__EE_Cron_Tasks__clean_up_junk_transactions
AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check
AHEE_EE_Cron_Tasks__clean_out_old_gateway_logs
AHEE__EE_Messages_Scheduler__cleanup

So as per your earlier post… AHEE__EE_Messages_Scheduler__sending
is missing.


dee4dogs

August 31, 2020 at 9:49 am

I have NOT yet deactivated & reactivated EE plugin… just in case you wanted access to investigate.


Tony

  • Support Staff

September 1, 2020 at 8:43 am

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:

https://eventespresso.com/send-login-details/


dee4dogs

September 5, 2020 at 8:18 am

Any updates on this? I sent the login credentials, do you still need them?


Tony

  • Support Staff

September 9, 2020 at 5:31 am

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.


dee4dogs

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
Dan


Tony

  • Support Staff

September 11, 2020 at 1:50 am

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.

Would you like me to leave the login credentials open? Or can I remove the accounts?

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?


dee4dogs

September 11, 2020 at 6:03 am

This reply has been marked as private.


Tony

  • Support Staff

September 14, 2020 at 4:09 am

Thank you 🙂


Tony

  • Support Staff

September 18, 2020 at 4:43 am

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 AHEE__EE_Messages_Scheduler__cleanup cron as that job has always still been available when we’ve had reports of this. That cron runs hourly to cleanup old messages and now also checks that AHEE__EE_Messages_Scheduler__generating and AHEE__EE_Messages_Scheduler__sending are both still active, if not it will re-create them.

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.

Event Espresso