I've been using Zend Framework and just living with this problem for a while, but it's now just gotten too annoying so i'll send the question out to you.
There are certain problems within the Zend framework that Zend can recognize (such as calling a nonexistent controller), and will send that problem to the ErrorController. I've got that working fine.
There seem to be some problems that Zend Framework will fail and display the error through php, like if a certain function doesn't exist or something. Those I can see and fix.
Sometimes though, Zend won't fail, but it will also just send out an empty response. I will get a blank page. They layout doesn't show up, there's no code, there's no nothing to give me an idea of what's gone wrong. Last time, there was a require() that failed. I had to manually figure this out with no feedback.
Have any of you experienced this? Do you have any advice on how to get these errors to show? Any help would be appreciated!
Set this in your config:
For others coming across this question: I changed the following line in configs/application.ini
To:
This allowed me to see the full Exception, including stacktrace.
Open urproject/application/config and open
application.ini
Change the second line:
to
Now it will display errors.
For anybody for whom the answers given here didn't work, one can always go to the apache logs to see a description of the problem. It would of course be more convenient if this showed on the page, but I find it to be an acceptable alternative.
I have this file open with vim and type :e to refresh and G to go to the bottom of the page to see the most recent error when I get the blank page. It tells you the time the error occurred, the message and the line, so it's pretty helpful.
It's too late to answer this question now. But hope it will help someone else...
Just place the following function in your Bootstrap.php file to enable exceptions..
put these lines in application/configs/config.php