Forums / Developer / Error reporting
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
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.