Support » Plugin: WP Crontrol » PHP Fatal Error – Multiple Cron Events

  • Resolved michaelfontanavt

    (@michaelfontanavt)


    Hi,

    On one of our sites we are getting duplicate Cron events showing up in our list of events. There should only be one of these which runs on a regular schedule. If I try to modify any of the code in the dashboard, I cannot save my changes. I tried calling WordPress support and they said that the actual Cron event works fine, and that I should contact the plugin developer since it is throwing a PHP fatal error. Here is an example of the error log:

    [Wed Sep 04 15:19:03.082036 2019] [php7:error] [pid 14277] [client 127.0.0.1:59036] PHP Fatal error: Cannot redeclare glob_recursive() (previously declared in /nas/content/live/bimdownload/wp-content/plugins/wp-crontrol/wp-crontrol.php(68) : eval()’d code:1) in /nas/content/live/bimdownload/wp-content/plugins/wp-crontrol/wp-crontrol.php(68) : eval()’d code on line 9

    We have another site specifically for development. We are also getting the error on this site, but not the duplicate Cron events. The only difference I can see is that the development site is PHP version 7.2 while the live site is PHP 7.3. Please let me know if there’s any other info I can provide.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This error means you have a fatal error occurring in the PHP code in your PHP Cron event.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’d you can’t edit this event then something has gone very wrong with the storage of your cron events. You might need to try the nuclear option of deleting the cron option from the wp_options table in your database, as long as you have a backup that you can subsequently refer to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.