Support

Home Forums Event Espresso Premium installing Automated Upcoming Event Notifications

installing Automated Upcoming Event Notifications

Posted: November 1, 2019 at 9:19 am

Viewing 15 reply threads


SupercarDriver

November 1, 2019 at 9:19 am

Hi, started to install the Automated Upcoming Event Notifications plugin, but got to the section “Check that the messages system is sending On a separate request” and our site is set to ‘on same request’.


Josh

  • Support Staff

November 1, 2019 at 10:25 am

Setting messages settings send to ‘On same request’ basically tells Event Espresso to use WP_Cron for messages (including the upcoming event notifications). To send Upcoming notifications, that option needs to be changed to ‘On Separate request’.. However, often if that option was changed there may have been a valid reason to do so.

If you go to Dashboard → Tools → Site health.

Then wait about 30 seconds, does it show a message that says anything about a scheduled task or loopback requests failing?

If not, you can change the setting to ‘On separate request’ and save.

Now to test message function using WP_Cron you’ll need to add a test registration to an event and finalize the registration.

Then go to Event Espresso → Messages → Message activity

You should have a message waiting to generate in the queue, wait 5 minutes and refresh the page, does it change to show it has generated and/or sent?


SupercarDriver

November 1, 2019 at 11:10 am

Hi Josh, in site health I have the following error:

The scheduled event, wp_privacy_delete_old_export_files, failed to run.

So will it be ok to change the setting as that’s not related to EE4?


Josh

  • Support Staff

November 1, 2019 at 11:28 am

No because if any scheduled event fails to run, then other scheduled events will likely also fail.

Before you change the setting you’ll need to insure that scheduled events (or wp_cron) is working on your website.

One possible solution to this can be found here:

https://wp-mix.com/wordpress-cron-not-working/


SupercarDriver

November 12, 2019 at 7:32 am

Hi, tried that fix but still not working.
Now AHEE__EE_Messages_Scheduler__generation comes up as not running.

We have WP Crontrol running on the site which shows us when they should be firing.

Any ideas, or do I need to speak to my host?


Tony

  • Support Staff

November 12, 2019 at 8:33 am

If you check Tools -> Cron Events and view the next run date/time are the in the past or future?

The check on the health check page basically compares next run with now() and if it’s in the past, it throws the above notice.

Is your site low traffic?


SupercarDriver

November 12, 2019 at 9:09 am

They all seem to be in the future when I first went on but now the times seem to have stuck…
about 567 people with 1,000 sessions in the past 7 days according to analytics…


Tony

  • Support Staff

November 12, 2019 at 9:26 am

Yah that should be more than enough to keep wp_cron ticking over.

Ok, so the times for next run on all crons (not just EE crons) are stuck in the past? If so then that sounds like an issue with wp_cron. It may have been disabled although there are other causes, hosts like to disable it as it reduces load, I’m assuming it does NOT show a notice at the top of the above page statin WP_CRON has been disabled?


SupercarDriver

November 12, 2019 at 9:42 am

The nearest one is stuck on the time I loaded the page to check.

There is a message at the top

The DISABLE_WP_CRON constant is set to true. WP-Cron spawning is disabled.


Tony

  • Support Staff

November 12, 2019 at 12:18 pm

Right, so that means WP_CRON has been disabled on your site, so that’s why they aren’t working, unless your host setup an alternative.

Check in wp-config.php and look for something like define('DISABLE_WP_CRON', true);

Comment that out and check your crons again, do they now work?


SupercarDriver

November 13, 2019 at 1:51 am

Hi Tony,
Commented out the line above and now the page has a notice stating The ALTERNATE_WP_CRON constant is set to true.
Checked cron events and seem to be firing now


Tony

  • Support Staff

November 13, 2019 at 2:44 am

Did you originally add the constants mentioned above to wp-config.php or was that set up by your host/someone else?

The above uses a redirect to trigger the crons when a user visits a page, I’d recommend testing it without that set and see if it works.


SupercarDriver

November 13, 2019 at 2:50 am

I followed the instruction from Josh on this link https://wp-mix.com/wordpress-cron-not-working/

I’ll disable that and try out the plugin…


Tony

  • Support Staff

November 13, 2019 at 2:57 am

Yeah, that’s used if you have issues with WP_CRON, so far we don’t actually know if your site did/does.

For some reason WP_CRON was disabled on your site, adding ALTERNATE_WP_CRON does nothing as if WP_CRON is disabled you can’t have an alternate wp cron is also disabled.


SupercarDriver

November 14, 2019 at 2:19 am

All sorted, messages all firing when they should now.

One question about the plugin, is it possible to have a text entry box on the event post that can be pulled into the reminder email. That way there can be information only for registrants.


Tony

  • Support Staff

November 14, 2019 at 3:35 am

Great, I’m glad that worked.

You can use a custom field on the event itself and then the [EVENT_META_*] shortcode in the Event List section of the template.

If you edit whichever AUEN template your are using you’ll see multiple sections within the template, each of those sections has access to specific data, Event List has access to everything to do with the event object (if you click on the icon you’ll see a list of shortcodes vailable on the section you click it for).

So you could use Avanced Custom Fields to add a test editor to EE events, then in Event List set the [EVENT_META_*{custom-field-key]] shortcode wherever you want to output that date.

Make sense?

Viewing 15 reply threads

The support post ‘installing Automated Upcoming Event Notifications’ 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