2017-04-12 41 views
0

是的,作爲完整的錯誤日誌上面是:請求主機production.local失敗:解析錯誤。沒有很好的形成(錯誤代碼-32700)

[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超時設置爲無窮大?

回答

0

在我的情況下,解決方案是與我的環境,特別是php.ini

設置always_populate_raw_post_data = -1現在解決了這個問題。

相關問題