Support

Home Forums Upcoming Event Reminder Add-on Automated Event Notification Reminder Timing

Automated Event Notification Reminder Timing

Posted: October 29, 2019 at 6:12 am


oncue1a

October 29, 2019 at 6:12 am

Good Morning,

I have the Automated Event Notification reminder configured to send one day before the event though the reminders are actually going out two days before the event. How do I configure the reminders to go out one day before the event ? The server, and server time are APAC based.

Thanks,
Nick


Josh

  • Support Staff

October 29, 2019 at 12:50 pm

Hi Nick,

May I ask what’s set for the site timezone in WordPress > Settings > General?


oncue1a

October 29, 2019 at 2:31 pm

This reply has been marked as private.


oncue1a

October 30, 2019 at 9:22 pm

This reply has been marked as private.


Tony

  • Support Staff

November 4, 2019 at 5:15 am

Hi Nick,

We’ve been investing this and are looking into making some changes to how the add-on works.

It looks like this issue was caused when we switched out how often the crons run to trigger messages and we’ll need to adjust the query time used. If you are comfortable with PHP you can test this change on your site whilst we review and test on our end if preferred.

In \eea-automated-upcoming-event-notifications\domain\services\commands\message\UpcomingNotificationsCommandHandler.php

Around line 291 should be this function:

protected function getStartTimeForQuery()
{
    return time() + DAY_IN_SECONDS;
}

Change return time() + DAY_IN_SECONDS; to be just return time();

Your messages should then trigger at the correct intervals.

Also, just to note that ‘bumping‘ your threads effectively puts the thread to the back of the queue as we review them based on last reply date/time.

The support post ‘Automated Event Notification Reminder Timing’ 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