• I have a very large and publicly viewable debug.log file. 150MB and counting. It is also publicly viewable. Most of the errors are with the theme and I will be converting to another theme. If I try to remove the contents of debug.log, it kills the site.

    How do I reset it and how to I make it “private”.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • What happens to the site exactly when you try to remove the contents? Does any error show up or just a blank screen on the entire site?

    Are you just trying to empty out the debug.log file contents or trying to remove the entire file itself? Do you have define( 'WP_DEBUG_LOG', true ); set in inside of the wp-config.php file?

    Thread Starter afaic

    (@afaic)

    What happens to the site exactly when you try to remove the contents? Does any error show up or just a blank screen on the entire site?

    Blank screen on entire site.

    Are you just trying to empty out the debug.log file contents or trying to remove the entire file itself?

    Just want to empty the contents. Also, Wordfence says the file is publicly accessible and should be fixed. When I change permissions, get blank screen.

    Do you have define( ‘WP_DEBUG_LOG’, true ); set in inside of the wp-config.php file?

    Yes.

    define( 'WP_DEBUG', true );
    
    define( 'WP_DEBUG_DISPLAY', true );
    
    define( 'WP_DEBUG_LOG', true );
    

    Thanks, Jarret.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘resetting debug.log and making it private’ is closed to new replies.