Debugging WordPress helps you quickly find and fix errors and warnings in your WordPress site code, plugins and themes.
By default, WordPress does not show warnings or errors. Enabling debugging is easy.
Steps to enable debugging in WordPress
- Open wp-config.php in your code editor or in cPanel File Manager
- Add the following line
define( 'WP_DEBUG', true );
- Save your changes
Your WordPress site will now display any errors, notices and warnings from your plugins, themes and code.
For security we strongly recommend disabling WP_DEBUG once you’ve finished debugging.