Debugging

Causes Of Errors

Syntax errors in template files, is the most common error in custom system theme and order form template development that can cause a page to be unable to render completely.

Other causes of errors include: -By Using features of Smarty that have been removed in the upstream Smarty package.

  • An inconsistent custom or third-party module.
  • By using PHP code blocks without the Allow Smarty PHP Tags setting enabled at Configuration  > General Settings in the Security tab.

Troubleshooting

If you find a blank page after changing any template file, take a look for any logged error messages in the Activity Log at Logs > System Logs.

To get to know the real trouble facing areas or to determine if the problem is with your system theme or order form template that can be sorted only if you don’t find anything in the activity logs, switching to a different system theme or order form template. And you can get to know also if the problem is with something else here.

If you couldn't find a variable being populated correctly and displayed within a template, this may indicate that the variable does not even exist or is not available within the template it is being utilised in. Adding {debug} to the template file and accessing the page calling that template in a browser will cause in a popup list of all variables available within that template, allowing you to determine if that variable is available.

To get benefited by having a full list of all template variables which made available to all system themes and order form templates, see Variables.