Zend Error controller stopped working for 500

2019-06-14 04:22发布

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条回答
够拽才男人
2楼-- · 2019-06-14 05:03

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.

查看更多
登录 后发表回答