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

Error templates

Designing the error pages (access denied, not found, module not found, form token refused ...): the error/kernel/<number>.tpl templates and what each number means, the HTTP status sent, the sign-in form embedded on…

Download as PDF

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

On this page

Error templates

This page is for designers who style the pages visitors see when something is not available. Error pages are frequent (every mistyped link) and deserve the same care as content pages.

Contents

  1. The templates and their numbers
  2. Status codes and handlers
  3. A helpful not-found page
  4. Titles of error pages

The templates and their numbers

design/standard/templates/error/kernel/<number>.tpl, where the number is a kernel error code (eZError constants in lib/ezutils/classes/ezerror.php):

NumberMeaningTemplate
1access deniederror/kernel/1.tpl
2not founderror/kernel/2.tpl
3not availableerror/kernel/3.tpl
4movederror/kernel/4.tpl
5language not founderror/kernel/5.tpl
6form token refusederror/kernel/6.tpl
20, 21, 22module not found, view not found, module disablederror/kernel/20.tpl ...

Copy the ones you restyle into your design at the same path. The media design has its own templates/error/ with kernel/, shop/ and shared parts/.

Status codes and handlers

settings/error.ini [ErrorSettings-kernel]:

  • HTTPError[<number>] sets the HTTP status (shipped: 1 is 401, 2, 3 and 20 to 22 are 404, 4 is 301, 6 is 403);
  • ErrorHandler[1]=embed with EmbedURL[1]=/user/login: an anonymous visitor who is denied access sees the error template with the sign-in form embedded, so they can sign in on the spot.

The pagelayout frames error pages like any other page.

A helpful not-found page

  • Say what happened in plain words and keep the site's header and navigation.
  • Offer a search form and a link to the front page.
  • Do not print the requested URL unwashed.

Titles of error pages

An error page's path ends in the error code ("kernel (20)"), which means nothing to visitors. $module_result carries errorType and errorNumber; the media design's pagelayout/head/title.tpl uses a switch on them to give each error page a readable <title> (Module result and content info).

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