Title: [Plugin: WP-Crontrol] Making it work in WordPress 2.7
Last modified: August 19, 2016

---

# [Plugin: WP-Crontrol] Making it work in WordPress 2.7

 *  Resolved [Tanin](https://wordpress.org/support/users/0xtc/)
 * (@0xtc)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-crontrol-making-it-work-in-wordpress-27/)
 * If you run a job manually with “Do now” from the Tools->Crontrol screen in WP2.7,
   you’ll most likely get a “missing argument 1 for spawn_cron()” error. In order
   to fix this, edit the “run_cron” function in wp-crontrol.php file.
 * You need to add $local_time to the spawn_cron call.
 *     ```
       function run_cron($hookname, $sig) {
       // Add this:
       	$local_time = time();
       //
           	$crons = _get_cron_array();
               foreach( $crons as $time=>$cron ) {
                   if( isset( $cron[$hookname][$sig] ) ) {
                       $args = $cron[$hookname][$sig]['args'];
                       wp_schedule_single_event(time()-1, $hookname, $args);
       // Change this:
                       spawn_cron($local_time);
       //
                       return true;
                   }
               }
               return false;
       }
       ```
   
 * This will make this function call spawn_cron() correctly allow the plug-in to
   work again.

The topic ‘[Plugin: WP-Crontrol] Making it work in WordPress 2.7’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Tanin](https://wordpress.org/support/users/0xtc/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-crontrol-making-it-work-in-wordpress-27/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
