Zend错误控制器停止工作500 [英] Zend Error controller stopped working for 500

查看:159
本文介绍了Zend错误控制器停止工作500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Zend应用程序运行正常,直到今天,当我改变了一些导致错误控制器停止工作的东西。
我已经调试了代码的每个部分,但是我找不到任何跟踪,为什么会发生。

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

如果我产生404错误,则错误控制器运行完美。但是在500的情况下,控制不会出现在错误控制器上。

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

我已经逐步调试了应用程序,发现如果是500,那么当遇到致命错误或异常时,执行会立即停止

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();

其中$ blabla没有定义,我没有被重定向到错误控制器
但是如果我做一些类似...

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

Zend_Registry::get('blabla');

Zend_Registry中没有为'blabla'设置密钥,然后我被重定向

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

推荐答案

500是一个一般的服务器错误,所以不知道控件不会去你的控制器。

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.

另外,尝试回忆一下你最近是否修改了 .htaccess 文件和/或意外创建了无限重定向循环。

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

这篇关于Zend错误控制器停止工作500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆