GridPane manages WordPress debug settings differently from standard hosting environments. Instead of defining WP_DEBUG, WP_DEBUG_LOG, and WP_DEBUG_DISPLAY directly in wp-config.php, GridPane uses a separate file called secure-debug.php. The wp-config.php file includes secure-debug.php, which contains the actual debug constant definitions.
WP Debug Toolkit (WPDT) detects GridPane environments automatically and handles this configuration transparently.
On a GridPane server, wp-config.php includes a line like:
require_once '/var/www/example.com/secure-debug.php';
The secure-debug.php file contains the define() statements for WP_DEBUG, WP_DEBUG_LOG, and WP_DEBUG_DISPLAY. GridPane’s control panel reads and writes to this file when you toggle debug settings through the GridPane dashboard.
This separation prevents accidental overwrites of debug settings during WordPress updates or wp-config.php modifications.
For GridPane’s documentation on this feature, see WordPress Debug and Query Monitor and Do I leave Secure Debug on?.
WPDT detects the presence of secure-debug.php during initialization. When detected, all debug constant operations — reading current values, toggling switches, WP-CLI commands — target secure-debug.php instead of wp-config.php.
This detection is automatic. You do not need to configure anything. The admin dashboard toggle switches, the standalone viewer settings panel, and wp dbtk debug on/off/status commands all work the same way whether the site runs on GridPane or on a standard configuration.
All WPDT features work on GridPane without special configuration:
WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY, SAVEQUERIES)db.php drop-inWhen you uninstall WPDT, the plugin preserves secure-debug.php. Deleting this file would break the require_once statement in wp-config.php, causing a fatal error and taking the site offline. WPDT only removes its own files and settings — it does not modify secure-debug.php during uninstallation.
WPDT’s path traversal protection blocks access to secure-debug.php in the File Viewer. This file contains configuration data that should not be exposed through the viewer interface. This is intentional security behavior, not a bug.
Both GridPane’s control panel and WPDT’s dashboard can toggle debug constants. They write to the same file (secure-debug.php). Changes made through either interface are reflected in both. There is no conflict — both tools read and write the same constants in the same file.
GridPane may store debug logs in a location other than the default wp-content/debug.log. Common GridPane log paths include /logs/debug.log or a path within the site’s log directory.
If WPDT does not find the log file at the default path, configure the custom path:
DBTK_LOG_PATH in wp-config.php (above the secure-debug.php include):define( 'DBTK_LOG_PATH', '/var/www/example.com/logs/debug.log' );
After changing the log path, repair or reinstall the standalone viewer to sync the new path to the viewer’s config.php.