Posted: September 9, 2020 at 1:12 am
Until now emails were being sent out just fine when a new customer signs up for a course – to the registrant and to the admin. What to do now to get them working again? |
|
Hi there, Where in the queue are they stuck? If you install this plugin on this site: https://en-gb.wordpress.org/plugins/wp-crontrol/ Then go to Tools -> Cron Events. Search for ‘AHEE__EE_Messages_Scheduler’ on that page, do you have 3 hooked events listed starting with the above string? |
|
September 10, 2020 at 11:12 pm They are stuck before being generated (and therefore never get to be sent) I installed the plugin and this is what I have: AHEE__EE_Cron_Tasks__clean_up_junk_transactions |
|
September 11, 2020 at 12:07 am Following. Sounds like a similar problem to https://eventespresso.com/topic/queued-for-sending/ |
|
Hi D, It does indeed.
To fix this you’ll need to de-activate and then re-active EE4 (and any add-ons you have active as they’ll likely de-activate when core is). We’ve had this happen on a small number of sites since the message queue was introduced although recently it seems to be on the up, possibly due to WP core updates but I’m just guessing currently. I did some investigating on the thread @dee4dogs referenced and found its likely due to a WP core issue with 5 minute crons like the ones the message system uses just randomly disappearing. So, if you de-activate then re-activate EE4 and check the cron jobs you should see:
In the cron list, then messages should start generating again. |
|
If I deactivate – then what happens with all the adjustments and customization that have been made in the messages and translations of these? |
|
Nothing should happen. Settings are saved to the database and translations are applied on initial activation to the sections that save to the database (meaning that’s already happened and then saved), other translations apply on the fly using the MO file and so will continue to do so. If you want to be sure, create a database backup before doing the above, that way you can always revert to that backup in the worst-case scenario. |
|
I did so – and I got the 3 strings you mention. BUT – I lost all my translations! |
|
And a new enrollment is still stuck in que….. like before de-activate and the re-activate |
|
Which translations in which location?
How do you know it is stuck? The message queue runs on a cron that has a schedule of 5 minutes, due to how WP_Cron works it needs a front end page on the site to be opened which then triggers the cron check and if any messages are past their ‘scheduled’ time, they run. Meaning the message will sit waiting to generate in the queue until the cron job is triggered, then again waiting to send. |
|
The messages go out just fine now – thank you. The translations that are lost are those on the buttons and on the single steps of the order flow. |
|
Hmm, strange. Those translations wouldn’t be saved by Event Espresso itself so I’m not sure how de-activating EE caused that, my apologies. Can you send me PO file you are using on the site so I can take a look? |
|
This reply has been marked as private. | |
Either post a link I can use to download it here (host it on the site itself and post a link for example) or send it over to support[at]eventespresso.com and I’ll take a look. |
|
This reply has been marked as private. | |
Thank you. I’ve found the problem and its due to a typo in the latest release. The filename We’ll push an update to fix this shortly or if you prefer your can rename your MO/PO file to use the ‘proper’ naming format which is:
So yours would be That will then load your translations again and should fix the buttons. |
|
This reply has been marked as private. | |
You’re most welcome, I’m glad your back up and running. Any further issues just let us know. |
|
This reply has been marked as private. | |
If you check the cron jobs again using the steps here: https://eventespresso.com/topic/emails-stuck-in-que/#post-315684 Do you see the 3 jobs? |
|
This reply has been marked as private. | |
September 16, 2020 at 12:24 pm Hmm, so it’s the same issue again but this time you are missing just You’ll need to da/reactivate EE4 again to fix it again but the good news is that I’m currently working on a patch that will hopefully fix this automatically from now on using an hourly cron and provided nothing comes up during testing of the fix I’ll push the update soon. |
|
Hi there, 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. |
|
This reply has been marked as private. | |
Thank you and the same to you 🙂 Side note I’m in the UK so currently BST (UTC+1) |
|
The support post ‘Emails stuck in que’ 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.