Zend Error controller stopped working for 500

醉酒当歌 提交于 2019-12-08 11:00:23

问题


My Zend application was running fine until today, when I changed something which caused the error controller to stop working. I have debugged every part of the code but I can not find any traces as to why is it happening

If I produce a 404 error, the error controller runs perfectly. But in case of 500, the control does not go to error controller.

I have tried many things but am still unable to find out what's wrong. I have searched the internet but people who encountered this problem, seemed to get no answer :(

Any help would be much appreciable

I have debugged the application step by step and found out that in case of 500, the execution stops instantly when it encounters a fatal error or exception

(UPDATE) If I do something like...

$blabla->getInfo();

where $blabla is not defined, I don't get redirected to error controller. But if I do something like...

Zend_Registry::get('blabla');

where no key is set for 'blabla' in Zend_Registry, then I get redirected


回答1:


500 is a general server error, so no wonder the control does not go to your controller.

You will need to check your server logs to find out what is causing the error.

Also, try to recall whether you have altered your .htaccess file(s) recently and/or created an infinite redirect loop by accident.



来源:https://stackoverflow.com/questions/11208783/zend-error-controller-stopped-working-for-500

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!