Enable WordPress Debug for Troubleshooting
Debugging is a hidden feature in WordPress. It allows you to see errors that WordPress has generated, which can help identify or resolve problems. Note that the problems generated aren't always urgent or necessary to fix, which is why the feature is hidden and disabled by default. However if you are worried, it's worth either updating the plugin or theme mentioned
as seen here.
Step 1 - Log into cPanel and
use the File Manager tool to find the
wp-config.php file (it's normally located in the public_html folder). If you prefer using FTP, you can do this too.
Step 2 - In File Manager, right click on the file and click
EditStep 3 - Find the line that says define('WP_DEBUG'), false);
Change
false to
true.Step 4 - Hit the
Save Changes button at the top right of the screen
To
turn off debugging, simply repeat the above steps and change the WP_DEBUG line to
false.When set to true, the log is saved to
wp-content/debug.log within your site’s filesystem. Alternatively, you can set it to a valid file path to have the file saved elsewhere.
define( 'WP_DEBUG_LOG', 'wp-content/debug.log' );
For more tutorials on
website development and Wordpress troubleshooting, view our List of Wordpress Guides.