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

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 14:45:06
Script start
Timing: Jan 29 2025 14:45:06
Module start 'layout'
Timing: Jan 29 2025 14:45:06
Module start 'content'
Timing: Jan 29 2025 14:45:06
Module end 'content'
Timing: Jan 29 2025 14:45:06
Script end

Main resources:

Total runtime0.0143 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.0060 588.1328151.2109
Module start 'layout' 0.00600.0021 739.343836.6563
Module start 'content' 0.00810.0048 776.000090.1563
Module end 'content' 0.01290.0013 866.156329.9766
Script end 0.0143  896.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.7965140.0002
Check MTime0.00117.8577140.0001
Mysql Total
Database connection0.00085.513810.0008
Mysqli_queries0.003121.704730.0010
Looping result0.00000.070110.0000
Template Total0.00107.310.0010
Template load0.00085.767310.0008
Template processing0.00021.463110.0002
Override
Cache load0.00064.050610.0006
General
dbfile0.00128.074680.0001
String conversion0.00000.055140.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