Support

Home Forums Event Espresso Premium Automated Post Event Notification not working

Automated Post Event Notification not working

Posted: May 18, 2023 at 10:05 am


zcsiteadmin

May 18, 2023 at 10:05 am

Hello,

For the last two events that I have held, the Automated Post Event messages have not been sent. After it didn’t work last week, I double checked to make sure that for this week’s event, a message was chosen and that the message template was active. Still nothing.
I wanted to confirm that nothing went out by looking at the message activity, and when I tried to choose Post Event from the dropdown, I noticed that the option didn’t appear on the list. I could have sworn it was listed before. I’ve used this feature for the past few months.


Tony

  • Support Staff

May 18, 2023 at 2:44 pm

Hi there,

The first thing I would do here is confirm that the corn for POST notifications is set on your site.

You can do that using a plugin such as:
https://wordpress.org/plugins/wp-crontrol/

Install that on the site and go to Tools -> Cron Events.

Search for AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check

For that task do you see:

EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForUpcomingDatetimeNotificationsToSchedule()
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForUpcomingEventNotificationsToSchedule()
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForPostDatetimeNotificationsToSchedule()
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForPostEventNotificationsToSchedule()

In the next run column, what does it show for that task?

Add a screenshot of it if preferred:

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

I wanted to confirm that nothing went out by looking at the message activity, and when I tried to choose Post Event from the dropdown, I noticed that the option didn’t appear on the list. I could have sworn it was listed before. I’ve used this feature for the past few months.

That dropdown only lists message types that are currently IN the activity log, so if you don’t have any Post Event Notifications in the log to display, the option won’t show.


zcsiteadmin

May 18, 2023 at 3:27 pm

It shows:
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForUpcomingDatetimeNotificationsToSchedule()
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForUpcomingEventNotificationsToSchedule()
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForPostDatetimeNotificationsToSchedule()
EventEspresso\AutomatedUpcomingEventNotifications\domain\services\tasks\Scheduler->checkForPostEventNotificationsToSchedule()


Tony

  • Support Staff

May 18, 2023 at 3:47 pm

In the next run column, what does it show for that task?


zcsiteadmin

May 18, 2023 at 4:01 pm

It was set to run at 6:00. then I just refreshed the page and it says this now:
2023-05-18 21:00:00
2 hours 59 minutes


zcsiteadmin

May 24, 2023 at 1:31 pm

Ok, I made a dummy event and that one worked. Used the exact same template as one of the ones that didn’t work.
Is there a limit on the number of days after an event that I can set the notification? I just saw yet another event last week whose message didn’t get out. I’d rather set the days at 7 if possible and have it go out than draft a batch message.


Tony

  • Support Staff

June 1, 2023 at 2:10 pm

Did these events that aren’t sending also use an Upcoming event notification?

I’d rather set the days at 7 if possible and have it go out than draft a batch message.

7 days is fine, the Cron uses your threshold + a ‘buffer’ of 7 days (by default).

So if WP Cron doesn’t run on your site for your ‘scheduled threshold’ + 7 days ‘buffer’, the messages are ignored but I don’t think that’s what you are hitting here.

I’ve been testing this and so far not been able to reproduce so may need to take a look at the queries running on your site. So far does it only appear to be happening for events created in the past?

You mentioned you created a new event and used the same template, which worked, so are ‘new’ events working but previous events not?

The support post ‘Automated Post Event Notification not working’ 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