[wp-trac] [WordPress Trac] #22268: PHP Notice: Undefined index: every12hours in /var/www/wp3/wp-includes/cron.php on line 103

WordPress Trac noreply at wordpress.org
Thu Oct 25 18:52:34 UTC 2012


#22268: PHP Notice:  Undefined index: every12hours in /var/www/wp3/wp-
includes/cron.php on line 103
-------------------------------+------------------------------
 Reporter:  volomike           |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Cron               |     Version:  3.4.2
 Severity:  minor              |  Resolution:  fixed
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by volomike):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Replying to [comment:2 SergeyBiryukov]:
 > `'every12hours'` schedule is added by a custom
 [http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/
 PluginUpdateChecker] class which is used by several plugins:
 >
 > * [http://plugins.trac.wordpress.org/browser/self-hosted-
 plugins/tags/1.0.5/trunk/lib/__plugin-updates/plugin-update-
 checker.class.php#L85 Self Hosted Plugins]
 > * [http://plugins.trac.wordpress.org/browser/add-link-to-
 facebook/tags/1.166/plugin-update-checker.php#L95 Add Link to Facebook]
 > *
 [http://plugins.trac.wordpress.org/browser/simplemap/tags/2.4.4/classes
 /ft-ps-client.php#L294 SimpleMap Store Locator]
 > * [http://plugins.trac.wordpress.org/browser/organize-
 series/tags/2.4.3/inc/pue-client.php#L165 Organizer Series]
 >
 > and probably others outside of the WP.org repository.
 >
 > I guess you had a plugin using that class installed at some point.

 Yes! Thanks for finding this! That's exactly the case. Wow, surprised you
 noticed that.

 Anyway, '''I remedied the bug by adding a filter''' so that I could add
 every12hours in just in case, and set the interval to 43200 (60*60*12). I
 did it with this technique: http://shinephp.com/start-scheduled-task-with-
 wp-cron-more-often/

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22268#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list