Hi,

I had been using the standard approach to error handling (the
Zend_Controller Plugin), and up until a few weeks it used to work. Now
for whatever reason (I believe the time I went on trunk), it stopped
working.

I went in and explicitly added the plugin to my front controller
instance (register plugin etc.), and $front->getPlugins() shows it
"registered".

>From what I understand the plugin implements a postDispatch() hook
which is supposed to catch all exceptions thrown in
controllers/actions etc.. When I debug this, I can see that in a
regular request (regular = all works), it briefly walks through the
plugin and checks the response and bails out because there is no
exception.

Now whenever my app throws an exception, I am not able to catch it.

I "verified" this like that...

try {
$front->dispatch();
} catch (Exception $e) {
var_dump($e); exit;
}

>From what I understand, it should never reach that piece of code and
redirect to my errorcontroller beforehand - yet it does.

My front controller:
$front = Zend_Controller_Front::getInstance();
$front->throwExceptions((bool) $config->mvc->exceptions);
...

I then proceed to add a couple controller directories (for different
modules), add a view parameters ($front->setParam(...), then I
register my auth plugin and then the errorhandler plugin. Nothing too
special.

Anyone got any pointers what to look for?

Till

Reply via email to