请求托管production.local失败:解析错误。形成不良(错误代码-32700)

时间:2017-04-12 14:50:15

标签: php wordpress

是的,如上所述,完整的错误日志是:

[Wed Apr 12 15:36:58.036443 2017] [:error] [pid 964:tid 1328] [client 127.0.0.1:55360] [SME] Request to host production.local failed: parse error. not well formed (error code -32700), referer: http://staging.local/cms/wp-admin/admin.php?page=sme-edit-batch&id=24

我尝试将数据从staging.local发送到production.local,其中两个域都在本地使用:

  

内容分段插件

有没有人有关于如何调试它的线索?

好的,我认为原始邮件来自/wp-includes/class-wp-http-ixr-client.php

我在两个域中设置了functions.php

$ch=curl_init();
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt ( $ch , CURLOPT_CONNECTTIMEOUT, 0 );

并使用http://staging.local/cms/wp-admin/admin.php?page=sme-preflight-batch&id=24刷新浏览器,浏览器挂起一段时间,然后消息transport error: http_request_failed cURL error 28: Operation timed out after 60000 milliseconds with 0 bytes received - on host: production.local (error code -32300)返回到屏幕?但我只是用零标志将cURL超时设置为无穷大?

1 个答案:

答案 0 :(得分:0)

就我而言,解决方案与我的环境有关,特别是php.ini

设置always_populate_raw_post_data = -1现在解决了这个问题。