Support

Home Forums Event Espresso Premium undefined index in cron.php?

undefined index in cron.php?

Posted: November 22, 2013 at 1:12 pm


lhammond

November 22, 2013 at 1:12 pm

I’m seeing these errors in my log file –

PHP Notice: Undefined index: every24hours in /wp-includes/cron.php on line 103

Is there something wrong with my EE configuration, or something I can do to fix this?


Josh

  • Support Staff

November 22, 2013 at 2:29 pm

Hi there,

This is something we are working on fixing for the next release of Event Espresso. It turns out the Plugin Update Engine (which uses scheduling to check for updates) is admin-only functionality. WP-cron will fire on the front end though, which is why you’ll see those notices.

So here’s the fix we’re working on. In pue-client.php there’s an installHooks function where you’ll find:

//Trigger the check via Cron
add_filter('cron_schedules', array(&$this, '_addCustomSchedule'));
if ( !wp_next_scheduled($cronHook) && !defined('WP_INSTALLING') ) {
	$scheduleName = 'every' . $this->checkPeriod . 'hours';
	wp_schedule_event(time(), $scheduleName, $cronHook);
}

the above can be changed to:

//Trigger the check via Cron
if ( !wp_next_scheduled($cronHook) && !defined('WP_INSTALLING') ) {
	wp_schedule_event(time(), 'daily', $cronHook);
}

The support post ‘undefined index in cron.php?’ 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