[wp-trac] [WordPress Trac] #28920: Two PHP warnings

WordPress Trac noreply at wordpress.org
Wed Jul 16 12:02:43 UTC 2014

#28920: Two PHP warnings
 Reporter:  Looimaster       |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  administration

Comment (by dd32):

 This generally occurs due to timeouts connecting to WordPress.org, or, in
 some rare cases a bad PHP installation that can't make HTTPS calls.

 Short of increasing the timeouts (Which are currently set to 3 seconds
 IIRC) there's not much that can be done here. 3s is generally plenty of
 time for a server on a faster connection, but often too short for a local
 As the HTTP request is blocking, the page will be delayed for
 $timeout_seconds while loading, which is why it's set to the bare minimum.

 You could try running this code in a mu-plugin plugin to increase the
 add_filter( 'http_request_args', function( $r ) {
    $r['timeout'] = max( $r['timeout'], 10 ); // Set a minimum of 10s for
 all outgoing connections.
    return $r;
 } );

Ticket URL: <https://core.trac.wordpress.org/ticket/28920#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list