Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Ignition Error Pages

174 sites Security covered Drupal 10–11
View on drupal.org

This module provides a new, user-friendly error and exception page for Drupal development. It allows you to add descriptive solutions and links to external resources for specific errors, enhancing the debugging experience. It is intended for development environments only and should not be used on production sites.

This integrates the spatie/ignition package error handler for Drupal 10.x.

It is meant for development purposes - after enabling, you can get the new error/exception page UI and add solutions to your custom exceptions as shown in the screenshot. Do not enable this module on a production website, as the exception/error output may show sensitive information.

After enabling the module, all errors will display through Ignition. See the docs about how to add user friendly Solutions to custom thrown exceptions. Solutions allow you to add descriptive text and links to potential solutions, documentation, guides, runbooks or other useful resources (see screenshot) when that particular error is encountered.

See this blog post for some more information on why you may want to use this module.

Ignition only works if the Drupal log level is set to All messages, with backtrace information. As a general rule, you should always set the Drupal log level to None on live/production environments.

You can add a snippet like this to you settings.php file to achieve this:

if (SITE_IS_PROD) {
  $config['system.logging']['error_level'] = 'hide';
}

For Acquia environments, you can use following snippet for example:

if (isset($_ENV['AH_SITE_ENVIRONMENT']) && $_ENV['AH_SITE_ENVIRONMENT'] == 'prod') {
  $config['system.logging']['error_level'] = 'hide';
}

You can also enable AI integration to get potential explanations for the error right in the output:

The color theme and the editor used for the code preview can be configured by clicking the cog icon in the top right corner of the error page. The settings are stored in the user or session storage, so they will be remembered across multiple requests.

The Store settings in ~/.ignition.json option in the settings form at /admin/config/development/ignition can be used to store the Ignition settings in a file in the user's home directory. This is useful if you want to share the same settings across multiple projects. This is only recommended for local, non-shared development environments.

Installing

1. Run composer require drupal/ignition:^1.0
2. Enable the module.
3. Clear the cache.
4. Exceptions should now render through Ignition instead of Drupal.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.4 Stable 10–11 Jan 22, 2025
1.0.3 Stable 10–11 Nov 25, 2024