Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Template debugging

Tools for finding template problems: the debug output and its template list, template warnings with file and line, dump and attribute to look into variables, the debug functions, the template syntax checker, and the…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/templates/template-debugging.md

On this page

Template debugging

This page is for designers whose template does not do what they expect. It lists the tools from quickest to deepest. For "my change does not show", start with Debugging a design (caches); for "which template is this", Template path comments.

Contents

  1. The debug output
  2. Looking into a variable
  3. Debug functions
  4. Syntax check
  5. Typical messages

The debug output

On a test siteaccess, for your address only:

[DebugSettings]
DebugOutput=enabled
DebugByIP=enabled
DebugIPList[]=203.0.113.10

[TemplateSettings]
ShowUsedTemplates=enabled

Under the page appear the warnings and errors of the request, timing, database queries and, with ShowUsedTemplates, a table of every template used with the file it came from. Template warnings name the template and the line (compiler warnings carry the placement since the path-comments work of August 2026).

Looking into a variable

{$node|attribute( show, 1 )}           {* the attributes of $node and their values, one level deep *}
{$module_result.content_info|dump( show, 2 )}

Remove these before committing: they print internal data to the page.

Debug functions

From lib/eztemplate/classes/eztemplatedebugfunction.php, shown in the debug output, not in the page:

{debug-log msg='teaser part reached'}
{debug-log var=$items msg='items of the list'}
{debug-timing-point id='menu'} ... {/debug-timing-point}
{debug-accumulator} ... {/debug-accumulator}

debug-timing-point measures how long a part of the template takes.

Syntax check

./console exp:eztemplatecheck extension/mytheme/design/mytheme/templates/
./console exp:eztemplatecheck -s mysite

reports each file as valid or with its parse error. It does not run templates, so it cannot find unknown operators or missing variables.

Typical messages

Message (debug output or var/log/error.log)Meaning
Operator '...' is not registeredthe operator does not exist, or its extension is not active here
Variable '...' is already defineda {def} of an existing variable (Variables and def)
Variable '...' is not defined with {def}{undef} of a variable that was not defined
Custom match file: path '...' not found in any resourcean override's MatchFile does not exist
Image '...' does not exist in any designan ezimage file is missing from the cascade
Could not find: ...a stylesheet or script given to the packer is missing

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x