[wp-trac] [WordPress Trac] #11831: Warning when wp-cron fails

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 9 19:24:17 UTC 2010


#11831: Warning when wp-cron fails
------------------------------+---------------------------------------------
 Reporter:  scribu            |        Owner:  westi   
     Type:  defect (bug)      |       Status:  reopened
 Priority:  normal            |    Milestone:          
Component:  Warnings/Notices  |      Version:  3.0     
 Severity:  normal            |   Resolution:          
 Keywords:  cron, fopen       |  
------------------------------+---------------------------------------------
Changes (by eliotsykes):

  * keywords:  => cron, fopen


Comment:

 Its the timeout.

 It defaults to 0.01 seconds on line 234 of wp-includes/cron.php which
 seems very short.

 In class-http.php the timeout default is 5 seconds.

 So I increased the timeout to 1.0 seconds and this works fine for me now,
 no longer get the error message.

         wp_remote_post( $cron_url, array('timeout' => 1.0, 'blocking' =>
 false, 'sslverify' => apply_filters('https_local_ssl_verify', true)) );

 I've got a patch and will submit it if I can figure out how to.

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


More information about the wp-trac mailing list