how to enable debug in wordpress

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6240
    Olly
    Admin & Mod

    in your wp-config.php you will find a line that reads (most likely) like this:

    
    define('WP_DEBUG', false);
    

    REPLACE this with

    
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);/*this should NEVER be true for production sites*/
    

    which will generate a file “wp-content/debug.log” if and when any errors are encountered. check this file for errors if you need to find out where things might go wrong

Viewing 1 post (of 1 total)
  • The topic ‘how to enable debug in wordpress’ is closed to new replies.