Skip to content

Instantly share code, notes, and snippets.

@vyspiansky
Last active March 20, 2025 09:09
Show Gist options
  • Save vyspiansky/9c3f234381c4cb9f86ff8c5d5d53a49c to your computer and use it in GitHub Desktop.
Save vyspiansky/9c3f234381c4cb9f86ff8c5d5d53a49c to your computer and use it in GitHub Desktop.
Visibility of error messages in Drupal 10

To configure the error messages visibility, set an appropriate configuration in the settings.php file

// Show all error messages, including notices and coding standards warnings.
$config['system.logging']['error_level'] = 'verbose';

File: /path/to/docroot/sites/<SITE_NAME>/settings.php.

Then clear the Drupal cache.

Here are the possible values you can use for error_level:

  • hide: Do not display any errors.
  • some: Only show errors and warnings.
  • all: Show all errors (notices, warnings, and errors).
  • verbose: Show all errors including notices and coding standards warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment