Title: Debugging is enabled. However, the debug.log file does not exist
Last modified: August 31, 2016

---

# Debugging is enabled. However, the debug.log file does not exist

 *  [ronnysan](https://wordpress.org/support/users/ronnysan/)
 * (@ronnysan)
 * [10 years ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/)
 * I’m a bit confused…
    the debug.log file does not exist Does this mean there are
   no errors or does this mean that there is a error generating debug.log? Regards
 * [https://wordpress.org/plugins/wp-log-viewer/](https://wordpress.org/plugins/wp-log-viewer/)

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

 *  Plugin Author [maxwellberkel](https://wordpress.org/support/users/maxwellberkel/)
 * (@maxwellberkel)
 * [10 years ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/#post-7290833)
 * It could be a couple of things.
 * 1. There are no errors. If the debug.log file is not present, it will be created
   when there is an error. Conversely, if it doesn’t exist and there are no errors
   it won’t be created until there is an error.
 * 2. If you have errors but debug.log is not being created, one reason could be
   apache doesn’t have write permissions on wp-content (the directory WP_CONTENT_DIR
   is set to) directory.
 *  [barryalbert](https://wordpress.org/support/users/barryalbert/)
 * (@barryalbert)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/#post-7290906)
 * I have the same issue. It does not create the debug.log file. But however it 
   does work on another website using the same server and settings. The directories
   on both are set to the same, readable and write-able.
 * I did manually add the debug file to the non working domain and it will read 
   it, but never will write to it. Any ideas?
 *  [Johnny Black](https://wordpress.org/support/users/johnnyrc/)
 * (@johnnyrc)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/#post-7290931)
 * Debugging is enabled. However, the debug.log file does not exist or was not found.
 * Ideeas ? same problem.
 *  Plugin Author [maxwellberkel](https://wordpress.org/support/users/maxwellberkel/)
 * (@maxwellberkel)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/#post-7290932)
 * I would do the following:
 * 1. Confirm that both WP_DEBUG and WP_DEBUG_LOG are true.
    2. Make sure apache
   can write to wp-content or whatever directory the const WP_CONTENT_DIR is set
   to.
 *  [redesigned](https://wordpress.org/support/users/redesigned/)
 * (@redesigned)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/#post-8736382)
 * Having the same issue.
 * 1. wp-content directory is writable (755), wordpress writes content all the time.
 * 2. in wp-config
 *     ```
       define('WP_DEBUG', true);
       define('WP_DEBUG_LOG', true);
       define('WP_DEBUG_DISPLAY', false);
       @ini_set('display_errors',0);
       @ini_set("error_log", dirname(__FILE__).'/wp-content/debug.log');
       ```
   
 * 3. manually trying to write custom logs
    `error_log('#test: Test.');`
 * 4. Error:
    `Debugging is enabled. However, the debug.log file does not exist 
   or was not found.`
 * Any Ideas?
 * update #1: if i manually create the debug.log file the plugin finds it and shows
   0 errors. but still no luck writing to it.
 * update #2: think i found the issue. if i run phpinfo the error_log location is
   being overridden by the server and @ini_set isn’t overwriting it. neither is 
   php.ini or .user.ini. looks like this is hard set in the server config and not
   user changeable.
 * SOLUTION: since I couldn’t change the error_log location, i created a symlink
   from the location and filename the plugin is expecting to the actual location
   and file. The logging now appears to be working as expected. Hope this helps 
   someone in the future with the same issue. cheers.
 * Any Ideas?
    -  This reply was modified 9 years, 3 months ago by [redesigned](https://wordpress.org/support/users/redesigned/).
    -  This reply was modified 9 years, 3 months ago by [redesigned](https://wordpress.org/support/users/redesigned/).
    -  This reply was modified 9 years, 3 months ago by [redesigned](https://wordpress.org/support/users/redesigned/).
      Reason: solution

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

The topic ‘Debugging is enabled. However, the debug.log file does not exist’ is 
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-log-viewer_75add2.svg)
 * [WP Log Viewer](https://wordpress.org/plugins/wp-log-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-log-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-log-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-log-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-log-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-log-viewer/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)

 * 5 replies
 * 5 participants
 * Last reply from: [redesigned](https://wordpress.org/support/users/redesigned/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/debugging-is-enabled-however-the-debuglog-file-does-not-exist/#post-8736382)
 * Status: not resolved