Support

Home Forums Event Espresso Premium Upcoming Event Notifications no longer sending since upgrading to EE5

Upcoming Event Notifications no longer sending since upgrading to EE5

Posted: June 4, 2023 at 12:09 pm

Viewing 13 reply threads


mpurse

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.


Tony

  • Support Staff

June 7, 2023 at 7:40 am

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.


mpurse

June 7, 2023 at 12:17 pm

Thank you. Have sent login details.


Tony

  • Support Staff

June 8, 2023 at 5:37 am

Hi there,

For this:

I can get the messages to send by hitting “Run Now” but it will not run automatically.

Which cron are you using?

AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__daily_check?

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: AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check

Which should then look like this: https://monosnap.com/file/2OrtV4uzRnUUrJ6AlTL9xauPDxeuc7


mpurse

June 8, 2023 at 5:44 am

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.


Tony

  • Support Staff

June 8, 2023 at 6:07 am

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.

Not for Event Espresso core, I mean the Automated Upcoming Event Notification add-on, has that always been kept up to date?

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 which cron job were you running to get this work to send manually?

AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__daily_check

Or

AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check

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.

(i have seen this before and it didn’t run per the schedule though)

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.


mpurse

June 8, 2023 at 6:17 am

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.


Tony

  • Support Staff

June 8, 2023 at 7:28 am

OK, so I’ll tell you what I’m thinking currently.

AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check

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 AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check task is still shown in the list.

I have de-activated and re-activated the plugin (which I do frequently)

May I ask why you deactivate that add-on frequently?

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.

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.


Tony

  • Support Staff

June 9, 2023 at 7:56 am

Hi there,

I checked today to see if the AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check cron was still set and it’s not, that will be why your messages aren’t sending so now we need to narrow down why that cron task isn’t being rescheduled on your site.

So I’ve de-activated and reactivated the add-on to set it again and removed the old AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__daily_check cron task in case that is interfering here.

You may want to run the AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check cron tasks today to make sure any messages you are expecting to send are sent (I didn’t want to trigger emails myself). I’ll check back again tomorrow to see if the task is still set.

We may need to add some logging on your site to narrow down what is happening (the cron is set on my site).


mpurse

June 12, 2023 at 3:14 am

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.


Tony

  • Support Staff

June 12, 2023 at 5:34 am

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?


mpurse

June 12, 2023 at 5:55 am

OK, will do.


mpurse

June 19, 2023 at 3:18 am

This reply has been marked as private.


mpurse

June 22, 2023 at 12:57 am

Any news on this? I am still having to make the plugin inactive/active and run manually.

Viewing 13 reply threads

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.

Event Espresso