[wp-trac] [WordPress Trac] #57271: Cron unschedule / reschedule event errors

WordPress Trac noreply at wordpress.org
Wed Jun 21 11:13:49 UTC 2023


#57271: Cron unschedule / reschedule event errors
----------------------------------------+------------------------------
 Reporter:  domainsupport               |       Owner:  audrasjb
     Type:  defect (bug)                |      Status:  assigned
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Cron API                    |     Version:  6.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by domainsupport):

 Replying to [comment:33 Krstarica]:
 > After changing crontab entry from:
 > {{{
 > */5 * * * * curl https://example.com/wp-cron.php?doing_wp_cron >
 /dev/null 2>&1
 > }}}
 > to:
 > {{{
 > */5 * * * * cd /var/www/example.com/htdocs; wp cron event run --due-now
 > /dev/null 2>&1
 > }}}
 > don't see "Cron unschedule event error for hook" errors in the log
 anymore.

 I'm not 100% sure but you may have only silenced the notifications by
 running WP CRON this way rather than fix anything?

 As per the [[https://developer.wordpress.org/cli/commands/cron/event/run
 /|WP-CLI command documentation]] you may need to use the `--debug`
 parameter to see PHP errors?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57271#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list