Error reporting

Author Message

Marc Boon

Wednesday 15 February 2006 8:46:47 am

Is there a way to show template file and line number with errors?
Without it debugging template code is quite cumbersome...

Samuel Sauder

Friday 17 February 2006 3:48:48 am

Are your debug settings turned on? For example when I changed a <i>let</i> to <i>slet</i> (typo), I get this output (in error.log and in browser) which tells me the line number (213) and character position (0)

Error: eZTemplate @ design/blog/override/templates/full/folder_profile.tpl:213[0]  	

parser error @ design/blog/override/templates/full/folder_profile.tpl:213[0]
Unterminated tag "slet" does not match tag "let"

Warning: eZTemplate 	

Function "slet" is not registered

Marc Boon

Sunday 19 February 2006 5:28:54 am

In var/log/error.log I get messages like this:

[ Feb 18 2006 20:58:40 ] [127.0.0.2] Missing/malformed array to iterate through.
[ Feb 18 2006 21:14:54 ] [127.0.0.2] No such attribute for array(5): short_title
Choose one of following: name, short_name, short_description, description,
show_children

But they don't even show the name of the template file, let alone line number.

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 20 2025 23:43:56
Script start
Timing: Jan 20 2025 23:43:56
Module start 'layout'
Timing: Jan 20 2025 23:43:56
Module start 'content'
Timing: Jan 20 2025 23:43:56
Module end 'content'
Timing: Jan 20 2025 23:43:56
Script end

Main resources:

Total runtime0.0202 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.0078 587.7891151.1953
Module start 'layout' 0.00780.0042 738.984436.6172
Module start 'content' 0.01210.0062 775.601690.1250
Module end 'content' 0.01830.0018 865.726629.9922
Script end 0.0201  895.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.7902140.0002
Check MTime0.00126.1546140.0001
Mysql Total
Database connection0.00094.337910.0009
Mysqli_queries0.005828.887530.0019
Looping result0.00000.083910.0000
Template Total0.00136.610.0013
Template load0.00104.938310.0010
Template processing0.00031.596910.0003
Override
Cache load0.00073.599110.0007
General
dbfile0.00146.771580.0002
String conversion0.00000.048540.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