Forums / Developer / Error 500 and FatalErrorHandler

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential and an eZFatalError is thrown until the top :

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


The 
execution of Exponential 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
maxime.thomas@wascou.org | 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