In this article, we will teach you how to turn WordPress debugging on. With debugging turned on, it is much easier to locate any errors within your WordPress site as well as any plugins and themes that may be causing errors.
For fast, secure WordPress be sure to check out InMotion’s WordPress Hosting package.
Enabling WordPress debugging within your wp-config.php using the cPanel File Manager
WordPress debugging is something that is enabled within your wp-config.php file. With just a simple edit to this file, you will be able to view any errors produced within WordPress.
- First, be sure that you are logged into cPanel.
- Within your public_html directory, you will see a file labeled wp-config.php. Right-click on it, then click on Code Editor.
- At the bottom of your wp-config.php file, add the following lines:
- After you have edited the wp-config.php file, be sure to save your changes by clicking on the Save Changes button at the top right of the file manager.
<li style="clear:both;"><a href="https://www.inmotionhosting.com/support/wp-content/uploads/2014/01/wordpress_wordpress-debugging-1.png" rel="lightbox-0"><img class="std_ss" src="https://www.inmotionhosting.com/support/wp-content/uploads/2014/01/wordpress_wordpress-debugging-1.png" style="float:right; margin:15px 15px 15px 15px;"></a>
Now that you are logged into cPanel, look for the icon that says File Manager and click on it.
define( ‘WP_DEBUG’, true );
define( ‘SCRIPT_DEBUG’, true );
Now that the you have enabled debugging within WordPress, you should now be able to see any errors that are produced within your WordPress site.