Enable Debugging in WordPress
Step 1) Find your site’s wp-config.php
file
This file is located in the root folder of your WordPress installation.
Step 2) Edit the wp-config.php
file
Look for the line define( 'WP_DEBUG', false );
If it doesn’t exist, you can add it anywhere above the line that says,
/* That's all, stop editing! Happy publishing.
*/
.
Change false
to true
to enable debugging.
// Enable WP_DEBUG mode
define(
'WP_DEBUG'
, true );
When enabled, WordPress will display PHP errors and warnings on your site.
This can help identify potential issues in your code or themes/plugins.