Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

This module allows the site admin to create custom error pages for HTTP status codes 403 (access denied) and 404 (page not found), without the need to create nodes for each of them.

Main features:

  • Configurable page title and descriptions.
  • There are no author and date/time headers as with normal nodes.
  • Any HTML formatted text can be be put in the page body.
  • The error pages are themable.
  • Users who are not logged in and try to access an area that requires login will be redirected to the page they were trying to access after they login.
  • Allows custom redirects for 404s.

Since the error pages are not real nodes, they do not have a specific content type, and will not show up in node listings, or in a Popular Content block. They also can be seen by anonymous visitors on sites that require log-in to see content.

At present, the module can be set up to handle 403 and 404 errors. Drupal only allows those two status codes to be assigned custom pages. However, the design of the module is flexible and can accommodate future status codes easily.

Installation

Please see the README document included with the module for installation instructions.

Custom error alternate for authenticated [Drupal 7 branch only]

The Drupal 7 version of the project comes with a submodule: Custom error alternate for authenticated (Short name: customerroralt) .

Enabling this submodule lets the administrator create an "insufficient permissions" page for authenticated users, distinct from a "please log in" page for anonymous users.

Support Status

This project is considered complete. However, reported bugs for the Drupal 7 and 10 branches will be fixed if they come wit patches or merge requests reaching RTBC. Versions beyond EOL are no longer supported. Community support in the form of patches are very welcome. For QA, the project needs community support in the form of review of patches, development versions and releases.

The primary goal of the Customerror module is to remain lean and simple. This means that not all feature requests will be implemented, even if they are a good idea. Feature requests accompanied by patches are more likely to make it into a release.

The maintainer hopes that the community is willing to help out by answering & closing support requests.

Known problems

  • Customerror lets you assign an explicit theme to use for error pages. However, if you also use a custom Administration theme, the custom administration theme will be used for error pages that are on the admin path. See #278575: Admin theme is used on error pages below /admin for details.
  • Customerror allows custom redirects for 404s. However, if you also use the Redirect module, you should refrain from using the redirect feature of Customerror.

Credits

Principal author is Khalid Baheyeldin of 2bits.com.

Port to Drupal 7 port has been overseen by Gisle Hannemyr.

The authors can be contacted for paid customizations of this module as well as Drupal consulting, installation, development, and customizations.

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
1
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.0-beta3 Pre-release Apr 27, 2023