Posted: June 4, 2023 at 12:09 pm
The upcoming event notifications are no longer sending automatically since we upgraded to EE5. I have WP Cron installed and it shows that the plugin is scheduled to run but it never does. I can get the messages to send by hitting “Run Now” but it will not run automatically. |
|
Hi there, So far I can’t reproduce this, AUEN notifications are working on my test sites. Can I take a look over the site? If so you can send temp login details using this form: https://eventespresso.com/send-login-details/ I’d like to have a look over the corn jobs and see if anything stands out. |
|
Thank you. Have sent login details. |
|
Hi there, For this:
Which cron are you using?
That cron changed a long time ago, have you only recently update the Automated upcoming events notification add-on? If so, temporarily de-activate that add-on then re-activate. The cron you should have is: Which should then look like this: https://monosnap.com/file/2OrtV4uzRnUUrJ6AlTL9xauPDxeuc7 |
|
I update the plugin whenever it tells me it needs updating. But I can’t remember when that last was. The most recent update was to EE5. I have de-activated and re-activated the plugin (which I do frequently) and that apparently scheduled it to run again in 11 hours (i have seen this before and it didn’t run per the schedule though), but I ran it now anyway because I have reminders that need to go and I cannot risk them not being sent. I’m at a bit of a loss because we rely on the messages being sent several times a week. |
|
Not for Event Espresso core, I mean the Automated Upcoming Event Notification add-on, has that always been kept up to date?
But which cron job were you running to get this work to send manually?
Or
I can see the latter has now been scheduled, but is that the corn you were running previously? Because it wasn’t in the cron jobs when I just checked earlier.
Your site has WP_CRON disabled but crons are obviously running at some point as you have tasks that are running. That usually means your host has set up a ‘real’ cron on the server to run at set intervals but it means the schedules set within WP_CRON won’t always be when they run. |
|
Yes, I always keep the plugin up to date as well as the core. I am pretty sure it was this one what was successful when run manually (but honestly not always): AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check Should I turn off WP Cron if there is already one running from the host? Might that cause a conflict? I just can’t fathom what changed other than the core upgrade. |
|
OK, so I’ll tell you what I’m thinking currently.
Is the current cron schedule that the Automated Upcoming Events Add-on (AUEN for short) uses to trigger the emails. The fact that wasn’t in your cron schedules when I checked has me thinking that maybe the cron is running and then somehow not being rescheduled after it’s run. When you click to run the cron in that list, you trigger the tasks assigned to it and those are working (otherwise the messages would send out when you do it manually) but if there’s no task to run the messages wont go out. The way to check that is to check the cron schedules in roughly 10 hours to see if that
May I ask why you deactivate that add-on frequently?
No, that’s not how it works. WP_CRON is a ‘sudo’ cron, it basically runs every time a page is loaded to check for the scheduled tasks. A real cron job can be set on the sever which will run every X amount of time without needing a page to load. As long as your host has one of those set up when they disable WP_CRON (and they currently must have for the tasks to be running on their own) then ts fine. |
|
Hi there, I checked today to see if the So I’ve de-activated and reactivated the add-on to set it again and removed the old You may want to run the We may need to add some logging on your site to narrow down what is happening (the cron is set on my site). |
|
As of this morning, AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check was not showing at all on the list of cron events. So I deactivated and reactivated the add-on and now it appears again. I have run in manually and messages were sent (albeit earlier than the schedule but better than not). It appears to be set again to run in 15 hours and 50 minutes, but I’m not convinced it will. |
|
Right… ok… so that IS going to be the problem. The fact that the scheduled task isn’t being reassigned means it wont trigger again. Now we need to figure out why that’s happening. I’m going to check in with our developers on this to confirm as the scheduled task works on my test sites, I’d like to add some debug code to log the call to set the corn task but I will need FTP access for that. If you’re ok with me adding some code to the site to narrow this down can you resubmit the form providing FTP credentials, please? |
|
OK, will do. |
|
This reply has been marked as private. | |
Any news on this? I am still having to make the plugin inactive/active and run manually. |
|
The support post ‘Upcoming Event Notifications no longer sending since upgrading to EE5’ 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.