Server Configuration
PHP Error Display on Drupal Check
Displaying PHP errors on a Drupal production site exposes sensitive configuration information. Learn how to disable them to enhance security.
What this test checks
This test checks whether PHP errors are displayed publicly on your Drupal site. Displaying errors in production reveals information like file paths, PHP versions, SQL queries, and sometimes credentials. This data facilitates targeted attacks and compromises your site's security.
Our recommendation
Disable error display in production in settings.php by setting 'ini_set('display_errors', 'Off');'. For debugging, use a log file configured in settings.php (syslog or logfile). Also ensure display_errors is Off in your php.ini.
Security tests