View your PHP error log directly in the WordPress dashboard without FTP, SSH, or file manager access.
Error Log Viewer
This is an Agency feature. Get white-labeling, role-based visibility, multisite management, and everything in PRO. Upgrade to Agency →
The Error Log Viewer provides a convenient way to view your site's PHP error log (debug.log) directly from the WordPress admin dashboard. No more digging through FTP clients or SSH terminals to check for errors.
What It Displays
The viewer shows the last 100 lines of the active PHP error log file. Log entries are displayed in a read-only table within the Settings > Version Info > Error Log tab.
Log File Detection
Version Info automatically detects the error log file by checking the following locations in order:
WP_DEBUG_LOGconstant - If set to a custom file pathWP_CONTENT_DIR/debug.log- The WordPress default debug log location- PHP
error_logini setting - The server's PHP error log configuration
The viewer needs a readable log file. If you want WordPress to write its default debug log, configure wp-config.php as follows:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
Security Features
The Error Log Viewer includes built-in security measures:
- Path masking: The on-screen viewer replaces occurrences of the WordPress installation directory with
[ABSPATH]. Other filesystem paths and log contents can remain visible. - Capability check: Only users with the
manage_optionscapability can access the log viewer. - Nonce verification: The download endpoint is protected with WordPress nonces.
Downloading the Log
The ZIP contains the original full log as debug.log. The on-screen path masking and 100-line display limit do not apply to the download.
- Navigate to Settings > Version Info > Error Log.
- Click the Download Log button.
- The log file will be downloaded as a compressed ZIP archive.
The download is handled securely via an AJAX endpoint (wp_ajax_version_info_download_log) with capability and nonce checks.
Review and redact a copy of the downloaded log before sharing it. The original file can contain full paths and other information that individual plugins or PHP wrote to the log.
Use Cases
- Quick debugging: Check for PHP errors after a plugin update without leaving the WordPress admin.
- Client support: View error logs on a client's site without requesting FTP or SSH credentials.
- Pre-launch checks: Verify no PHP warnings or notices exist before launching a site.