Php – Error 324 (net::ERR_EMPTY_RESPONSE)


I am facing the above problem frequently now a days for many of our sites.These were working properly about one month ago but suddenly more than 10 sites are giving this error not only in crome but in other browser also(not same but related).

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

All sites are hosted in the same server and in joomla.When I tried to debug I found that maybe the preblem is in the below code but not sure..

modMainMenuHelper::render($params, 'modMainMenuXMLCallback');
//render function
function render(&$params, $callback){
//function body

If I echo anything above modMainMenuHelper::render($params, 'modMainMenuXMLCallback'); the output echo.But below function render(&$params, $callback){ the above error comes.I wanted to ask if the problem is really in the above code than how to resolve this or any other suggestions that can solve this problem

Best Solution

In my case I have solved the problem by disabling the APC module.Because it was causing the segmention fault.And whenever I updated the above file not the code the site started working properly.I hope this may help someone else.

Related Question