Forums / Developer / Error 500 and FatalErrorHandler

Error 500 and FatalErrorHandler

Author Message

Maxime Thomas

Monday 29 March 2010 7:21:00 am

Hi,

I've tried to make the following thing :

- Creating a new extension with one module and one action.

- Inside the action, I've put the following code :

exit(1);

- Defining role and policies.

- Accessing the module/action

The result is that the HTTP 500 is not handled by eZPublish and an eZFatalError is thrown until the top :

<strong>Fatal error</strong>: eZ Publish did not finish its request


The 
execution of eZ Publish was abruptly ended, the debug output is present 
below.

How can I handle that without hacking the kernel (it means declaring a new eZFatalError...) ?

The important code is in the index.php.

Thank you for answers.

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas