Stopping Template Execution on Error -- Possible?

Author Message

Deane Barker

Wednesday 28 September 2005 1:07:49 pm

Is there any way to get eZ to "fail ugly" when there's a template error?

One of the frustrating things about template development is that execution rolls right on through errors. The errors are silent unless you turn on debugging and go picking through the output.

During development, it'd be handy if eZ would "blow up" when it encountered an error during template execution, stopped in place, and displayed the error text.

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 18 2025 22:36:44
Script start
Timing: Jan 18 2025 22:36:44
Module start 'layout'
Timing: Jan 18 2025 22:36:44
Module start 'content'
Timing: Jan 18 2025 22:36:45
Module end 'content'
Timing: Jan 18 2025 22:36:45
Script end

Main resources:

Total runtime1.4191 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0469152.6406
Module start 'layout' 0.00540.0028 740.687539.4766
Module start 'content' 0.00811.4094 780.1641432.2734
Module end 'content' 1.41760.0014 1,212.43758.1250
Script end 1.4190  1,220.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2064160.0002
Check MTime0.00120.0867160.0001
Mysql Total
Database connection0.00100.073410.0010
Mysqli_queries1.382297.3991460.0300
Looping result0.00050.0327440.0000
Template Total1.382697.420.6913
Template load0.00190.131920.0009
Template processing1.380797.294820.6903
Template load and register function0.00010.007210.0001
states
state_id_array0.00140.099110.0014
state_identifier_array0.00200.143320.0010
Override
Cache load0.00150.102870.0002
Sytem overhead
Fetch class attribute can translate value0.00080.057410.0008
Fetch class attribute name0.00060.041220.0003
XML
Image XML parsing0.00060.039210.0006
class_abstraction
Instantiating content class attribute0.00000.000220.0000
General
dbfile0.00080.0567160.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs