Error Management

From WHMCS Documentation

Revision as of 15:57, 12 May 2017 by David (talk | contribs)

Template

The Six theme provides a template in errors/internal-error.tpl.  You may modify this template within your own theme.  If this file is not present in your default theme, then an internal copy of it will be used.  This template is not processed by Smarty in order to reduce any further possible error paths.  

The dynamic content of this template cannot be altered. However, your customized template may choose to either alter the placement, or provide its own hardcoded alternative, or simply exclude this dynamic content. 

  • css - any CSS content.  By default to be placed within the HTML "head" tag.
  • title - the document title.  By default, this is used in within the "title" tag of the "head" tag as well as within an "h1" tag of the default body.
  • systemurl - The configured System URL defined in Settings >> General Settings >> General tab
  • email - The configured default email address defined in Settings >> General Settings >> General tab
  • stacktrace - The PHP stacktrace of the error condition.  This is only populated if Display Errors is enabled (via configuration file or in Settings >> General Settings >> Other tab)

If an error condition is encountered very early, before WHMCS has the opportunity to initialize, a more rudimentary, yet still HTML friendly, body will be rendered.  And if this is not possible because the error as at the very start, the webserver environment settings will be utilized (which may be informative but likely not stylized or friendly).