错误 324(网络::ERR_EMPTY_RESPONSE)

2022-01-06 00:00:00 php apache joomla

对于我们的许多网站,我现在每天都经常面临上述问题.这些网站大约一个月前正常工作,但突然间有 10 多个网站不仅在 crome 中而且在其他浏览器中也出现此错误(不一样但相关).

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.

所有站点都托管在同一台服务器和 joomla 中.当我尝试调试时,我发现问题可能出在下面的代码中,但不确定..

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
}

如果我在 modMainMenuHelper::render($params, 'modMainMenuXMLCallback'); 上面回显任何内容,输出回声.但在 function render(&$params, $callback){ 上面的错误来了.我想问一下问题是否真的在上面的代码中而不是如何解决这个问题或任何其他可以解决这个问题的建议谢谢.

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 Thanks.

推荐答案

就我而言,我通过禁用 APC 模块解决了问题.因为它导致了分段错误.每当我更新上述文件而不是代码时网站开始正常运行.我希望这可以帮助其他人.

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.

相关文章