Server Configuration
PHP Error Display on WordPress Check
Displaying PHP errors on a WordPress production site exposes sensitive configuration and code information. Learn how to disable them to enhance security.
What this test checks
This test checks whether PHP errors are displayed publicly on your WordPress site. WordPress can display PHP errors if WP_DEBUG_DISPLAY is enabled in wp-config.php. Error display reveals sensitive information like file paths, PHP versions, SQL queries, and sometimes credentials. This data facilitates exploitation of vulnerabilities.
Our recommendation
Disable error display in production by setting WP_DEBUG_DISPLAY to false in your wp-config.php. For debugging, use a log file (WP_DEBUG_LOG) or an error monitoring service (e.g., Sentry, Bugsnag). Also ensure display_errors is Off in your php.ini for enhanced security.
Security tests