drupal 9 enable PHP errors

To enable PHP errors in Drupal 9, you can follow these steps:

  1. Open the settings.php file located in the /sites/default/ directory of your Drupal installation.
  2. Look for the line that starts with $config['system.logging']['error_level'] = 'hide';.
  3. Change the value 'hide' to 'verbose'. The line should now look like this: $config['system.logging']['error_level'] = 'verbose';.
  4. Save the settings.php file.

By changing the error level from 'hide' to 'verbose', you are enabling PHP errors to be displayed in Drupal 9. This can be useful for debugging purposes or when you need to troubleshoot any issues that may arise.

Please note that displaying PHP errors on a production site is not recommended, as it may expose sensitive information or security vulnerabilities. It is generally advised to enable PHP errors only on development or staging environments.

Keep in mind that the specific steps or file locations may vary depending on your Drupal installation and configuration.