Posted: 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’. |
|
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? |
|
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? |
|
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: |
|
Hi, tried that fix but still not working. 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? |
|
If you check Tools -> Cron Events and view the The check on the health check page basically compares next run with Is your site low traffic? |
|
They all seem to be in the future when I first went on but now the times seem to have stuck… |
|
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? |
|
The nearest one is stuck on the time I loaded the page to check. There is a message at the top
|
|
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 Comment that out and check your crons again, do they now work? |
|
Hi Tony, |
|
Did you originally add the constants mentioned above to 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. |
|
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… |
|
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 |
|
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. |
|
Great, I’m glad that worked. You can use a custom field on the event itself and then the 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 Make sense? |
|
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.