Forums / Developer / Error handling in eZ publish

Error handling in eZ publish

Author Message

Kristoffer Brabrand

Friday 18 February 2011 3:40:27 am

The error logging feature in eZ publish is a good tool to log errors raised when in production, but when developing it's more a hurdle to get over... Whereas PHP would normally provide you with something like

"Fatal error: call to a member function on a non object on line 76",

eZ aids the developer by outputting "Fatal error: eZ Publish did not finish its request. The execution of eZ Publish was abruptly ended. Contact website owner with current url and what you did, and owner will be able to debug the issue further."

Is there a way to get useful error output, and is there a way to make eZ print it out on the screen instead of logging some and withholding the rest?

Any guidance and help would be greatly appreciated.

André R.

Friday 18 February 2011 6:04:28 am

If you enable php's display_errors setting and eZ Publish debug output you'll be able to see what is going on.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

eZ debug

Timing: Jan 29 2025 13:41:27
Script start
Timing: Jan 29 2025 13:41:27
Module start 'content'
Timing: Jan 29 2025 13:41:27
Module end 'content'
Timing: Jan 29 2025 13:41:27
Script end

Main resources:

Total runtime0.0249 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0099 587.9297180.8438
Module start 'content' 0.00990.0074 768.773493.8828
Module end 'content' 0.01730.0075 862.656370.6875
Script end 0.0248  933.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.5911120.0002
Check MTime0.00114.3788120.0001
Mysql Total
Database connection0.00093.622510.0009
Mysqli_queries0.007027.959940.0017
Looping result0.00000.076720.0000
Template Total0.007228.810.0072
Template load0.00103.895710.0010
Template processing0.006224.907710.0062
Override
Cache load0.00062.593010.0006
General
dbfile0.002610.5904100.0003
String conversion0.00000.020130.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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