You can enable the WordPress “debug mode” by editing a few lines in the wp-config.php file of your WordPress installation.
To enable debugging mode in WordPress, follow the steps:
- Login to cPanel or log in to your site via FTP
- Use the cPanel File Manager or your FTP client and edit the file
wp-config.php
- Copy the lines below to the file
wp-config.php
or if they already exist, change their values:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
Attention: Make sure that you copy the lines exactly as shown, don´t forget any semicolon or other characters!
-
- Paste the copied lines directly above the line
/* That's all, stop editing! Happy publishing. */
- Paste the copied lines directly above the line
After reloading the website, WordPress writes all PHP errors into the file debug.log.
WordPress saves that file into the folder: wp-content/debug.log
If you want to see the debug log errors directly on the screen instead of needing to look into the debug.log file, change the line
define( 'WP_DEBUG_DISPLAY', false );
to
define( 'WP_DEBUG_DISPLAY', true );
.
When we ask you to do so, please send us the debug.log file.
This file helps us to resolve issues you have with WP Staging.