»  Knowledgebase  »  WordPress Administration  »  Turn on WordPress Debugging

Turn on WordPress Debugging

by | Mar 24, 2020 | 0 comments

If your WordPress website is not loading or is experience other errors, it may be useful to turn on debug mode. This will output messages to the screen that may be useful in identifying a website issue.

Turn on Basic WordPress Debug mode

  • Open the file wp-config.php in your website root directory for editing
  • Locate the line define('WP_DEBUG', false); and replace with define('WP_DEBUG', true);
  • Save the file. Errors will now visible on your WordPress website>/li>

    Summary: to enable basic debugging add the following line to wp-config.php:

    define( 'WP_DEBUG, true );
  • Enable Debug logging

    To enable logging to to the /wp-content/debug.log file add the following line to wp-config.php:

    define( 'WP_DEBUG_LOG', true );

    Display Errors and Warnings on Screen

    To display errors and warnings add the following lines to wp-config.php:

    define( 'WP_DEBUG_DISPLAY', true );
    @ini_set( 'display_errors', 0 );


    Submit a Comment

    Your email address will not be published.

    UK WordPress Support

    We are a team of UK based WordPress experts offering WordPress help & support, WordPress site management and maintenance, content management services, one to one WordPress training and consultancy.

    Need to chat? Contact Us Now!

    WordPress Maintenance

    Let us manage your plugin and theme updates, keep your WordPress website site running smoothly and your visitors happy!

    WordPress Care Plans
    from just £35 / month!

    One to One WordPress Training

    We provide one to one WordPress training to individuals and companies all over the World!

    Whether you are developing new skills for business or working on a personal project, we can support you, and your first trial session is free!

    Book an initial WordPress Orientation Session

    Get the WordPress Management Guide

    Get the WordPress Management Guide

    Sign up to our newsletter to receive our insider guide to managing WordPress in [currentyear], free to your inbox.

    You have Successfully Subscribed!