11111

Scaricamento fallito.: 200: Operation timed out after 1 seconds with 0 bytes received

Ieri provavo ad aggiornare i plugin di wordpress ma niente da fare, continuava a darmi questo messaggio d’errore.

Scaricamento fallito.: 200: Operation timed out after 1 seconds with 0 bytes received.

Tra l’altro mi sono accorto che lo stesso messaggio appariva nella dashboard.

San Google ha risolto il mio problema, grazie a questo post:

WordPress MU Site Upgrade Bug: Your server may not be able to connect to blogs running on it

I opened wp-admin/wpmu-upgrade-site.php and wp-includes/http.php
function &_getTransport( $args = array() ) {
on line number 94 of wp-includes/http.php, wordpress tests different http request methods exist on your server during upgrade.
1st test was the culprit on my server which uses http_request method built into PHP. I guess this method was taking long time to resolve DNS and so it was timing out.
if ( true === WP_Http_ExtHttp::test($args) ) {
$working_transport[‘exthttp’] = new WP_Http_ExtHttp();
$blocking_transport[] = &$working_transport[‘exthttp’];
}
I did comment out this test and let WordPress start with next one.
if ( true === WP_Http_Curl::test($args) ) {
$working_transport[‘curl’] = new WP_Http_Curl();
$blocking_transport[] = &$working_transport[‘curl’];
}
e ta-dam! tutto funzionante.
Tutto finito? Sbagliato! Ho effettuato anche l’aggiornamento a WordPress 3 e si è ri-presentato il problema.
Per fortuna che il procedimento è lo stesso, anche se il file da modificare è wp-includes/http.php.
Print Friendly, PDF & Email
This entry was posted in Tips&Tricks. Bookmark the permalink.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *


*