The File Viewer opens the PHP source file referenced in a log entry and displays it with syntax highlighting, centered on the line where the error occurred. This lets you read the surrounding code in context without leaving the browser or connecting via SSH/FTP.
There are two ways to open the File Viewer from the error log table:
Q.The File Viewer opens as an overlay showing the source file content.
The File Viewer reads files through the viewer’s PHP API. The file must be readable by the web server’s PHP process. On most WordPress installations, plugin, theme, and core files meet this requirement by default.
The File Viewer cannot display a file when:
The viewer’s API enforces path traversal protection. Requests for sensitive files are blocked regardless of the path provided. The blocklist includes:
wp-config.phpsecure-debug.php.htaccess and .htpasswd.envconfig.php (viewer config)auth.php (viewer authentication)rate-limiter.db (blocked by specific filename).git directories.sqlite)Attempting to view a blocked file returns an error. This protection cannot be bypassed through path encoding or traversal sequences.