如果我尝试登录 vtiger 客户门户,我会收到错误“无法连接到服务器”。
我已经安装了 vtiger 5.4.0 和 vtiger 客户门户 5.4.0。机器是Linux CentOS 6,php版本5.3.3。
在“vtiger_del\config.inc.php”我有:
$PORTAL_URL = 'http://crmdel.domain.com/assistance';
在“\vtiger_del\assistance\PortalConfig.php”我有:
$Server_Path = "http://crmdel.domain.com";
$Authenticate_Path = "http://crmdel.domain.com/assistance";
当我尝试使用用户和密码进入 vtiger 客户门户时,我收到“无法连接到服务器”错误。我已删除 CustomerAuthenticate.php 中的注释以查看错误;错误是:
错误信息
XML error parsing SOAP payload on line 2: Not well-formed (invalid token)
要求
POST /vtigerservice.php?service=customerportal HTTP/1.0
User-Agent: NuSOAP/0.6.7 (1.1)
Host: crmdel.domain.com
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://crmdel.domain.com"
Content-Length: 684
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:authenticate_user xmlns:ns1="http://crmdel.domain.com"><user_name xsi:type="xsd:string">username@gmail.com</user_name><user_password xsi:type="xsd:string">hnz42vtg</user_password><version xsi:type="xsd:string">5.4.0</version></ns1:authenticate_user></SOAP-ENV:Body></SOAP-ENV:Envelope>
回复
HTTP/1.1 200 OK
Date: Mon, 25 Mar 2013 10:57:57 GMT
Server: Apache
X-SOAP-Server: NuSOAP/0.7.2 (1.94)
Content-Length: 2366
Cache-Control: max-age=2592000
Expires: Wed, 24 Apr 2013 10:57:57 GMT
X-Powered-By: PleskLin
Vary: Accept-Encoding
Connection: close
Content-Type: text/xml; charset=UTF-8
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: get_class() expects parameter 1 to be object, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 3638
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:authenticate_userResponse xmlns:ns1="http://crmdel.domain.com"><return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[1]"><item xsi:type="xsd:"><id xsi:type="xsd:string">125</id><user_name xsi:type="xsd:string">username@gmail.com</user_name><user_password xsi:type="xsd:string">hnz42vtg</user_password><last_login_time xsi:nil="true"/><support_start_date xsi:type="xsd:string">2013-03-25</support_start_date><support_end_date xsi:type="xsd:string">2014-03-25</support_end_date><sessionid xsi:type="xsd:string">tlhn36ds</sessionid></item></return></ns1:authenticate_userResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
调试
soapclient2: call: authenticate_user, Array, http://crmdel.domain.com, http://crmdel.domain.com, , rpc, encoded; endpointType:
soapclient2: serializing param array for operation authenticate_user
soapclient2: in serialize_val: username@gmail.com, user_name, , , , , encoded
soapclient2: in serialize_val: hnz42vtg, user_password, , , , , encoded
soapclient2: in serialize_val: 5.4.0, version, , , , , encoded
soapclient2: wrapping RPC request with encoded method element
soapclient2: endpoint: http://crmdel.domain.com/vtigerservice.php?service=customerportal, soapAction: http://crmdel.domain.com, namespace: http://crmdel.domain.com, style: rpc, use: encoded
soapclient2: SOAP message length: 684 contents: <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:authenticate_user xmlns:ns1="http://crmdel.domain.com"><user_name xsi:type="xsd:string">username@gmail.com</user_name><user_password xsi:type="xsd:string">hnz42vtg</user_password><version xsi:type="xsd:string">5.4.0</version></ns1:authenticate_user></SOAP-ENV:Body></SOAP-ENV:Envelope>
soapclient2: transporting via HTTP
soapclient2: sending message, length: 684
soapclient2: transport debug data...
soap_transport_http: scheme = http
soap_transport_http: host = crmdel.domain.com
soap_transport_http: path = /vtigerservice.php
soap_transport_http: query = service=customerportal
soap_transport_http: entered send() with data of length: 684
soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host crmdel.domain.com, port 80
soap_transport_http: calling fsockopen with host crmdel.domain.com
soap_transport_http: socket connected
soap_transport_http: wrote data to socket, length = 904
soap_transport_http: read line of 17 bytes: HTTP/1.1 200 OK
soap_transport_http: read line of 37 bytes: Date: Mon, 25 Mar 2013 10:57:57 GMT
soap_transport_http: read line of 16 bytes: Server: Apache
soap_transport_http: read line of 36 bytes: X-SOAP-Server: NuSOAP/0.7.2 (1.94)
soap_transport_http: read line of 22 bytes: Content-Length: 2366
soap_transport_http: read line of 32 bytes: Cache-Control: max-age=2592000
soap_transport_http: read line of 40 bytes: Expires: Wed, 24 Apr 2013 10:57:57 GMT
soap_transport_http: read line of 24 bytes: X-Powered-By: PleskLin
soap_transport_http: read line of 23 bytes: Vary: Accept-Encoding
soap_transport_http: read line of 19 bytes: Connection: close
soap_transport_http: read line of 39 bytes: Content-Type: text/xml; charset=UTF-8
soap_transport_http: read line of 2 bytes:
soap_transport_http: found end of headers after length 307
soap_transport_http: want to read content of length 2366
soap_transport_http: read buffer of 2366 bytes
soap_transport_http: read to EOF
soap_transport_http: read body of length 2366
soap_transport_http: received a total of 2673 bytes of data from server
soap_transport_http: closed socket
soap_transport_http: end of send()
soapclient2: got response, length: 2366 type: text/xml; charset=UTF-8
soapclient2: Entering parseResponse() for data of length 2366 and type text/xml; charset=UTF-8
soapclient2: Got response encoding: UTF-8
soapclient2: Use encoding: UTF-8 when creating soap_parser
soapclient2: soap_parser: Entering soap_parser(), length=2366, encoding=UTF-8
soap_parser: XML error parsing SOAP payload on line 2: Not well-formed (invalid token)
soap_parser: XML payload:
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: strpos() expects parameter 1 to be string, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 5681
Warning: get_class() expects parameter 1 to be object, array given in /var/www/.../vtiger_del/include/nusoap/nusoap.php on line 3638
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:authenticate_userResponse xmlns:ns1="http://crmdel.domain.com"><return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType=":[1]"><item xsi:type="xsd:"><id xsi:type="xsd:string">125</id><user_name xsi:type="xsd:string">username@gmail.com</user_name><user_password xsi:type="xsd:string">hnz42vtg</user_password><last_login_time xsi:nil="true"/><support_start_date xsi:type="xsd:string">2013-03-25</support_start_date><support_end_date xsi:type="xsd:string">2014-03-25</support_end_date><sessionid xsi:type="xsd:string">tlhn36ds</sessionid></item></return></ns1:authenticate_userResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
soapclient2: Error: XML error parsing SOAP payload on line 2: Not well-formed (invalid token)
有人能说出为什么吗?