• Resolved xiaojungr

    (@xiaojungr)


    I am trying to create new cron event, but i got the error after save “Failed to save the cron event”. I have already add hooks and function in my child theme->functions.php file.

    The second question is, I do not see the link Edit, Run Now, Delete for each of the event item.

    Kindly advise

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    same issue here with PHP Cron Event…

    Toengel@Alex

    Worked: have to start it NOT immediately, but tomorrow…

    • This reply was modified 4 years, 10 months ago by Toengel.
    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    There’s a few reasons this can fail internally in WordPress core, unfortunately the error message doesn’t get exposed by WordPress so WP Crontrol can’t tell you the reason for the failure.

    That said, a common cause is you’re trying to schedule an event that matches one that’s already due within ten minutes. This causes WordPress to identify the event as a duplicate and refuse to add it.

    Another cause is trying to add an event for “now” doesn’t seem to work very reliably, so you might want to choose a time in the future, eg +1 minute.

    Another cause is caching issues if you have a persistent object cache in place such as Redis or Memcached, although issues with these aren’t as common these days as long as your drivers are up to date.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Regarding the Edit, Run Now, and Delete links, these show up underneath the event hook name when you move your mouse over it, just like the links when you’re viewing a list of posts, pages, categories, tags, or users in WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failed to save the cron event’ is closed to new replies.