Critical Errors
This article demonstrates how to customise critical error pages rendered by Aurora.
Overview
Critical errors are a rare occurrence, however when they do occur Aurora renders a static template to indicate what type of error has occurred.
There are two types of critical error in Aurora:
- Fatal errors occur when Aurora has encountered an unknown state.
- Session errors occur when Aurora encounters a session lock and usually indicates that a user is trying to rapidly access the same content or features in multiple tabs or windows.
Using Custom Templates
Aurora uses default content when rendering critical error pages, however you can override this by creating the following templates:
- templates/critical-errors/fatal-error.html
- templates/critical-errors/session-error.html
The critical-errors location exists alongside your template sub-directory i.e.
- templates/critical-errors
- templates/your-site-templates.com
- templates/splash
Critical error templates static and therefore do not have access to any variables or data-points.
You can download example critical error templates from the Aurora Demo template archive.
Updated almost 2 years ago