2016-10-17 137 views
1

我正在使用SOAP客戶端在Magento(PHP)中下訂單並獲取錯誤在訪問該Web服務時獲取http頭。錯誤提取HTTP頭SOAP客戶端

當我重新啓動httpd的,則錯誤消失,我能夠一次又一次下定單

我試了一下

default_socket_timeout:120

代碼SOAP客戶端的片段

$cli = new SoapClient($api_url_v2, 
          array(
           'trace' =>true, 
           'connection_timeout' => 500000, 
           'keep_alive' => false, 
          ) 
); 

檢查周圍httpd日誌和發現以下內容

[Mon Oct 17 01:50:24 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml 
[Mon Oct 17 01:53:53 2016] [notice] child pid 28113 exit signal Segmentation fault (11) 
[Mon Oct 17 01:57:52 2016] [notice] child pid 29400 exit signal Segmentation fault (11) 
[Mon Oct 17 02:01:14 2016] [notice] child pid 29401 exit signal Segmentation fault (11) 
[Mon Oct 17 02:02:50 2016] [notice] child pid 29398 exit signal Segmentation fault (11) 
[Mon Oct 17 02:05:38 2016] [error] [client 127.0.0.1] client denied by server configuration: /var/www/html/store/app/etc/local.xml 
[Mon Oct 17 02:06:40 2016] [notice] child pid 28180 exit signal Segmentation fault (11) 

請讓我知道,如果有任何其他信息我可以提供跟蹤此。

SOAP跟蹤對我來說沒有任何顯示。這個問題只與這個Web服務有關,我的soap客戶端與其他人一起工作正常。

回答

0

嘗試編輯php.ini文件soap.wsdl_cache_enabled=1並將其更改爲soap.wsdl_cache_enabled=0