У меня тоже такая же проблема. Моя конфигурация приведена ниже.
Windows 7
Wordpress 3.9.1 (турецкий)
Apache 2.4.9 x86 VC11
(Двоичные файлы Windows Lounge)
PHP 5.5.14 ts x86 VC11
Я использую прокси. Более того, мой прокси требует аутентификации. Я обнаружил, что один из методов запроса в файле wp-includes/class-http.php
проблематичен.
Я решил проблему, заменив строки ниже (номер строки 1247)
if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) {
curl_setopt( $handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP );
curl_setopt( $handle, CURLOPT_PROXY, $proxy->host() );
curl_setopt( $handle, CURLOPT_PROXYPORT, $proxy->port() );
if ( $proxy->use_authentication() ) {
curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY );
curl_setopt( $handle, CURLOPT_PROXYUSERPWD, $proxy->authentication() );
}
}
со строками, приведенными ниже.
if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) {
$isPHP5 = version_compare(PHP_VERSION, '5.0.0', '>=');
if ($isPHP5) {
curl_setopt($handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($handle, CURLOPT_PROXY, $proxy->host());
curl_setopt($handle, CURLOPT_PROXYPORT, $proxy->port());
} else {
curl_setopt($handle, CURLOPT_PROXY, $proxy->host() . ':' . $proxy->port());
}
if ($proxy->use_authentication()) {
if ($isPHP5)
curl_setopt($handle, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
curl_setopt($handle, CURLOPT_PROXYUSERPWD, $proxy->authentication());
}
}