Support

Home Forums Event Espresso Premium Automated Upcoming Event Notification Add-on Not Sending

Automated Upcoming Event Notification Add-on Not Sending

Posted: October 17, 2019 at 1:59 am


mpurse

October 17, 2019 at 1:59 am

I purchased the plugin having previously used the pre-release beta, which never really worked for us.

I’m now having the same problem with the paid version. Sporadically reminders for events are not sending.

This week we have events on
Thursday (today): reminders sent correctly
Saturday (3 events): no reminders sent
Sunday (3 events): two reminders sent correctly; one not sent


Josh

  • Support Staff

October 17, 2019 at 7:05 am

Hi,

May I ask when are the reminders for the Saturday and Sunday events supposed to send?


mpurse

October 17, 2019 at 10:34 am

Everything is set to send three days before the start. Though I can never really figure this out. But what I cannot fathom is why there is no consistency?

Most workshops start at the same time, so why are some of Sundays sent but not all. Why have Sundays been sent but not Saturday? It’s a bit bonkers.

This is what happened throughout trialling it in beta so we had to abandon using it as I had to manually check reminders were being sent every day, so it was as easy to manually send the reminders.


Josh

  • Support Staff

October 17, 2019 at 11:07 am

One thing to be aware of with any type of scheduled task on a WordPress site is WordPress does not use a true cron. Instead it uses a function that’s called wp_cron and it’s triggered by visits to your site. The Automated event reminders plugin uses wp_cron (just like scheduling a post publish date and time).

You can actually monitor wp_cron events by installing the WP Crontrol plugin:
https://wordpress.org/plugins/wp-crontrol/

Then check your site’s Tools > Cron events page.

There you’ll find a task labeled
AHEE__EventEspresso_AutomatedEventNotifications_core_tasks_Scheduler__check
and it will show what time the Next Run is scheduled.

Is that next run scheduled within the next 3 hours?


mpurse

October 17, 2019 at 11:48 am

I am seeing this, does it look right?

EventEspresso\A\d\s\t\Scheduler->checkForUpcomingDatetimeNotificationsToSchedule()
wp-content/plugins/eea-automated-upcoming-event-notifications/domain/services/tasks/Scheduler.php:143

EventEspresso\A\d\s\t\Scheduler->checkForUpcomingEventNotificationsToSchedule()
wp-content/plugins/eea-automated-upcoming-event-notifications/domain/services/tasks/Scheduler.php:172

2019-10-17 21:00:00 (2 hours 8 minutes)


Josh

  • Support Staff

October 17, 2019 at 12:02 pm

The output looks different than what I’ve seen, but the next run time looks correct because it’s less than 3 hours.

One thing that could help for your site would be to move to a real cron. This will need to be set up by a developer, and they’ll need to follow the web host’s documentation.

Here are a few links to some examples of the documentation from a few hosts:

https://www.siteground.com/tutorials/wordpress/real-cron-job/
https://kinsta.com/knowledgebase/disable-wp-cron/
https://wpengine.com/support/wp-cron-wordpress-scheduling/


mpurse

October 24, 2019 at 2:57 am

I’m baffled. Our host set real cron to run every five mins. But no automated reminders are being sent.

Our next events are on Saturday at 10am. Messages are set to go three days in advance. So should have sent yesterday, nothing gone out.


Tony

  • Support Staff

October 25, 2019 at 5:25 am

Hi mpurse,

Are these events set up as individual events or events with multiple datetimes?

Are you using the upcoming Event Notifications or the upcoming Datetimes notifications? (I’m assuming Event but I’m trying to narrow down the problem so need to ask).

Roughly how many registrants do you have on the events? (Because I want to know how many messages are being triggered at once)

What is the ‘status’ of the events? Published, Sold out, another?

Have you checked your sites error logs for any errors being thrown by the upcoming event add-on? It’s possible something is timing out during the request (meaning the function was triggered but its processing failed) which may explain why you get such inconsistent results and if that’s the case there should be an error in the logs.


mpurse

October 28, 2019 at 4:06 am

Status is either upcoming or sold out.

One event’s messages sent – an upcoming event for Tuesday. But a second sold out event on the same day did not get sent.

Between 4-10 attendees per event.

Event notifications not date times. All set up as individual events.


Tony

  • Support Staff

November 4, 2019 at 8:11 am

Hi mpurse,

We spent some time investigating this and think we have found the problem. It looks on some servers the query used to pull in the registrations linked to the events that should trigger this is not returning registration linked to events that have no template ID saved on them.

Meaning if you created the event before the Automated Upcoming Event Notification Add-on (AUEN for short) was created and have not updated it since activating it, it doesn’t pull in the registrations for that event.

But if you create the event with that add-on actived or have updated the event with it activated it will have updated the template ID in the database and will be included in the results.

So, I assume you are still having issues with notifications not triggering?

If you edit your next set of events and just click update (you don’t need to set a template for AUEN etc, just edit each of the events and update with that add-on enabled) do all of the notifications correctly trigger for those next upcoming events?

The query used basically checks for a custom template ID or no template ID at all and it looks like sometimes the check for no template at all is failing. We have a ticket to investigate/fix this however the query used looks correct so may take a little time to find a working solution, the above workaround should allow your notifications to work consistently in the meantime if indeed that is the issue on your site.


mpurse

November 4, 2019 at 8:37 am

This actually sounds very logical. I will edit/update all events for this week and see what happens. Next events are Thursday, so should know quite quickly.


mpurse

November 5, 2019 at 5:47 am

I really think you have solved the mystery. Thurs and Sat events ALL sent as they should (I had edit/updated all yesterday). Sunday’s due out tonight. If that all goes to plan then we are back in the game!

Thanks for looking into this, it was soooo frustrating to not understand the logic and took just as long to send them manually as to check they had been sent!


Tony

  • Support Staff

November 6, 2019 at 7:06 am

Great! I’m glad it’s working now.

Tough one to find in the end and I can imagine it was frustrating.

Hopefully, we’ll find a fix for this fairly quickly so you won’t need to update all events.


mpurse

November 14, 2019 at 1:20 am

Just checking in to let you know this is 100% working now. Woop! Quite a game-changer. Thanks.

Now I need the follow up messages that go afterwards to get sent… 🙂


Tony

  • Support Staff

November 14, 2019 at 3:36 am

Just checking in to let you know this is 100% working now. Woop! Quite a game-changer. Thanks.

Thanks for the update, I’m glad it’s working well for you 🙂

Now I need the follow up messages that go afterwards to get sent… ?

We don’t have an add-on for this, so may I ask what you are using for follow up emails?


mpurse

November 14, 2019 at 3:37 am

I use batch sending. I basically send a follow up email after every workshop with a link to a feedback questionnaire and a link to class notes.


Tony

  • Support Staff

December 5, 2019 at 6:41 am

Hi mpurse,

Just a quick update to let you know that version 1.0.3.p of the AUEN add-on has now been released.

That version should remove the requirement to update events created before the add-on was activated in order for them to work.

If you run into any problems please do let me know.

The support post ‘Automated Upcoming Event Notification Add-on Not 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