[wp-trac] [WordPress Trac] #22913: Plugin Updater fails behind HTTP Proxy

WordPress Trac noreply at wordpress.org
Wed Dec 19 03:50:59 UTC 2012


#22913: Plugin Updater fails behind HTTP Proxy
-------------------------------+------------------------------
 Reporter:  samthorne          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Upgrade/Install    |     Version:  3.5
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => reporter-feedback


Comment:

 The debug log you see there is referencing a plugin which needs updating,
 it's nothing related to the issue at hand

 Any special restrictions put in place by the proxy? What proxy software?
 Is the Proxy defined using !WordPress's Constants in wp-config.php, or is
 it a Transparent network proxy?

 The Zip is downloaded over HTTP, so no FTP access is required.

 It appears that the ZIP File is being damaged during transit through the
 Proxy, it could be related to a bad header or something similar..

 What output do you get if you place this code in your wp-config file AFTER
 the wp-settings line, and access the !WordPress url like:
 http://wordpress..../?test=http
 {{{
 if ( !empty( $_GET['test'] ) && 'http' == $_GET['test'] ) {
         $result = wp_remote_get(
 'http://downloads.wordpress.org/plugin/hotfix.1.0.zip' );
         $result['body'] = strlen( $result['body'] ) . ': ' . bin2hex(
 substr( $result['body'], 0, 10 ) );
         unset( $result['cookies'], $result['filename'] );
         echo '<pre>';
         print_r( $result );
 }
 }}}

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


More information about the wp-trac mailing list