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
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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 29 2025 23:46:03
Script start
Timing: Jan 29 2025 23:46:03
Module start 'layout'
Timing: Jan 29 2025 23:46:03
Module start 'content'
Timing: Jan 29 2025 23:46:03
Module end 'content'
Timing: Jan 29 2025 23:46:03
Script end

Main resources:

Total runtime0.0130 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1328151.2109
Module start 'layout' 0.00530.0026 739.343836.6484
Module start 'content' 0.00790.0040 775.992290.1719
Module end 'content' 0.01190.0011 866.164129.9922
Script end 0.0130  896.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.5810140.0002
Check MTime0.00107.6632140.0001
Mysql Total
Database connection0.00096.580510.0009
Mysqli_queries0.002620.306530.0009
Looping result0.00000.107910.0000
Template Total0.00086.110.0008
Template load0.00064.625310.0006
Template processing0.00021.411910.0002
Override
Cache load0.00043.244510.0004
General
dbfile0.00021.807080.0000
String conversion0.00000.064040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs