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.

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.

  1. First, be sure that you are logged into cPanel.

  2. Now that you are logged into cPanel, look for the icon that says File Manager and click on it.

  3. Within your public_html directory, you will see a file labeled wp-config.php. Right-click on it, then click on Code Editor.

  4. At the bottom of your wp-config.php file, add the following lines:

    define( 'WP_DEBUG', true );
    define( 'SCRIPT_DEBUG', true );

    The first line will cause WordPress to display any errors caused by various PHP functions that are built into WordPress. The second line will display any errors for WordPress' built-in JavaScript and CSS.

  5. 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.

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.

Support Center Login


Social Media Login

Related Questions

Here are a few questions related to this article that our customers have asked:
No error logs in WordPress
An internal error occurred: 50EF66525DC49.ABCD106.3E00735D
Can't access my Wordpress multiste login but my sites are loading
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-11-20 10:21 pm

after i put the code into the file.  how do i get the site to start the debugging process.  I dont' know what step to take next and I cannot locate the email any more.

 

Thank you for any and all assistance!

Staff
2,231 Points
2014-11-21 9:20 am
Hello Lea,

After turning on wordpress debugging, any php errors, warnings, or notices will be displayed. So essentially you would try to get an error for what ever the reason you needed the wordpress debugging on to start with.

Kindest Regards,
TJ Edens

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

2 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!