In this post we learn how to resolve the “HTTP Error: no data present after HTTP headers” error in the Vtiger customer portal login page. Vtiger CRM is an Open source CRM that helps support, sales, and marketing teams to organize and collaborate to measurably improve customer experiences and business leads. In Vtiger CRM Customer portal is a Module that is for the company client’s interface. Clients can manage and view the status of work and track the current task and much more.
We are using vTiger – 5.4.0 version which is vTiger old version. When we upgrade our PHP version 5.4 to PHP 7, the Customer portal not working, It shows no data present after HTTP headers during the login screen.
Error that I got from debugging the CustomerAuthenticate.php:
HTTP Error: no data present after HTTP headers
2017-10-02 10:30:24.684337 soap_transport_http: HTTP request: POST /sistema/vtigerservice.php?service=customerportal HTTP/1.0 2017-10-02 10:30:24.684343 soap_transport_http: HTTP header: Host: greenfact.mx 2017-10-02 10:30:24.684347 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123) 2017-10-02 10:30:24.684352 soap_transport_http: HTTP header: Content-Type: text/xml; charset=UTF-8 2017-10-02 10:30:24.684356 soap_transport_http: HTTP header: SOAPAction: "http://greenfact.mx/sistema" 2017-10-02 10:30:24.684360 soap_transport_http: HTTP header: Content-Length: 647 2017-10-02 10:30:24.684421 soap_transport_http: wrote data to socket, length = 871 2017-10-02 10:30:24.955860 soap_transport_http: read line of 36 bytes: HTTP/1.1 500 Internal Server Error 2017-10-02 10:30:24.955903 soap_transport_http: read line of 37 bytes: Date: Mon, 02 Oct 2017 16:30:24 GMT 2017-10-02 10:30:24.955912 soap_transport_http: read line of 16 bytes: Server: Apache 2017-10-02 10:30:24.955918 soap_transport_http: read line of 19 bytes: Content-Length: 0 2017-10-02 10:30:24.955924 soap_transport_http: read line of 19 bytes: Connection: close 2017-10-02 10:30:24.955930 soap_transport_http: read line of 40 bytes: Content-Type: text/html; charset=UTF-8 2017-10-02 10:30:24.955936 soap_transport_http: read line of 2 bytes: 2017-10-02 10:30:24.956002 soap_transport_http: found end of headers after length 169 2017-10-02 10:30:24.956030 soap_transport_http: want to read content of length 0 2017-10-02 10:30:24.956043 soap_transport_http: read to EOF 2017-10-02 10:30:24.956048 soap_transport_http: read body of length 0 2017-10-02 10:30:24.956054 soap_transport_http: received a total of 169 bytes of data from server 2017-10-02 10:30:24.956116 soap_transport_http: closed socket 2017-10-02 10:30:24.956135 soap_transport_http: No Content-Encoding header 2017-10-02 10:30:24.956141 soap_transport_http: no data after headers! 2017-10-02 10:30:24.956149 soap_transport_http: end of send() 2017-10-02 10:30:24.956180 nusoap_client: Error: HTTP Error: no data present after HTTP headers
Solution for no data present after HTTP headers
In the customer portal, we fetch data using SOAP APIs. Vtiger Customer portal nusoap libraries is use to fetch data. Vtiger 5.4 version use nusoap (0.7.2) version. The nusoap version included in vtiger (0.7.2) has some kind of bug or incompatibility with the php version. After downloading the last available version of nusoap (0.9.6) and replacing the old one with it (in the vtiger installation directory, libraries/nusoap) everything worked fine.