Support

Home Forums Event Espresso Premium Event Espresso has detected that wp_cron is disabled

Event Espresso has detected that wp_cron is disabled

Posted: November 7, 2016 at 4:49 pm

Viewing 10 reply threads


Lori Horan

November 7, 2016 at 4:49 pm

I have just recently started seeing the following error. I have not disabled wp_cron. I’m on Godaddy managed hosting.

“Event Espresso has detected that wp_cron is disabled. It’s important that wp_cron is enabled because Event Espresso depends on wp_cron for critical scheduled tasks.
Since it’s possible that your site may have an alternative task scheduler set up, we strongly suggest that you inform the website host, or developer that set up the site, about this issue.”


Tony

  • Support Staff

November 7, 2016 at 5:32 pm

Hi Peter,

I looks like GoDaddy has decided to disable wp_cron on their servers. I would recommend contacting them and have them enable it on your site.

You may simply need to add something like:

define( 'DISABLE_WP_CRON', false );

to your wp-config.php file but it would be best to double check this with GoDaddy support.


Lori Horan

November 8, 2016 at 9:08 am

Is there any chance this could be a false positive? I’ve been working with Godaddy and they claim wp_cron is active. I’ve been running this site for a couple years with no issues.


Tony

  • Support Staff

November 8, 2016 at 9:20 am

The code used to determine if that notice should display is:

if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON && is_admin() ) {
//display notice
}

So if DISABLE_WP_CRON has been defined and its true and your in the admin, display the notice. Its possible it’s a false positive, but really there is very little to go wrong with that statement.

I guess DISABLE_WP_CRON may have been defined and set to something other than false, that evaluates to true but that would need to be done within wp-config.php or an MU plugin (which godaddy use).

Check within /wp-content/mu-plugins for a gd-system-plugin.php file, you’ll likely find something like this – https://cl.ly/060b2t3C0n1r


Tony

  • Support Staff

November 8, 2016 at 9:21 am

Are your sites messages working?

If you register onto an event and then view the message activity list (Event Espresso -> Messages), refresh it after a few mins, and again a few min later, does the message for your registration change status and send?


Lori Horan

November 9, 2016 at 1:08 pm

I have looked through the code in that folder and can’t find anything referencing DISABLE_WP_CRON.

When I register, the messages moved from Queued For Generating to Queued For Sending but seem to be sitting there and not sending.


Josh

  • Support Staff

November 9, 2016 at 1:21 pm

That doesn’t sound like a false positive if the messages are not sending. You can make it so the messages send on the same request (and skip the need for wp_cron) by going to Event Espresso > Messages > Message Settings, then you set the setting to send messages on the same request.

Other features of your site that need wp_cron will continue to not work, but at least your messages will be working.


Lori Horan

November 10, 2016 at 7:31 am

So, I moved the site to a new host. I’m still getting that message, but the emails that were waiting in the queue sent. Is that message just there because of the old site, or am I still having issues. Is there a way to get it to recheck?


Lori Horan

November 10, 2016 at 8:41 am

I tried registering again and now it is stuck at the Queued For Generating stage.


Josh

  • Support Staff

November 10, 2016 at 9:25 am

It sounds like you’re still having issues. Have you tried the setting to send messages on the same request?


Lori Horan

November 11, 2016 at 6:15 am

I ended up setting up an external cron as I could not figure out where it was being disabled. Thanks!

Viewing 10 reply threads

The support post ‘Event Espresso has detected that wp_cron is disabled’ 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