Title: Plugin not writing debug mode code in wp-config.php
Last modified: October 14, 2025

---

# Plugin not writing debug mode code in wp-config.php

 *  [eugene](https://wordpress.org/support/users/troopekyt/)
 * (@troopekyt)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/)
 * Essentially i started using this plugin after using another worse debug manager,
   and now i wanted to enable debugging but after 5 minutes
   XXXXx_debug.log (0 B)
   the file was still empty, so i deleted all debug log files (base, from other 
   plugin, and from this plugin), then i removed all code regarding wp debug and
   wp debug log from wp config, and reenabled the debug mode and plugin itself to
   no availit still seems to either A) not enable logging mode at all or B) not 
   logging to the correct file

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

 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18681333)
 * [@troopekyt](https://wordpress.org/support/users/troopekyt/) thanks for reporting
   this. Where is your wp-config.php file located at?
 * When you enable logging in Debug Log Manager dashboard, are you able to observe
   debugging constant correctly added to your wp-config.php file?
 * Do you see the custom debug.log file properly being added in your /wp-content/
   uploads/debug-log-manager/ folder?
 * Are you sure that there are actually PHP/JS errors occurring?
 *  Thread Starter [eugene](https://wordpress.org/support/users/troopekyt/)
 * (@troopekyt)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18681703)
 * There are dfefinetly erros occuring. Debug log custom file gets created. No constant
   gets added to wp-config.php (im guessing this is where the issue is coming from)
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18681819)
 * Looks like an issue with the writability of wp-config.php in your site / hosting/
   server. Where is it located? Do you by any chance use SpinupWP? There has been
   a report in the past that DLM can not work with how wp-config.php is set up in
   that environment.
 *  Thread Starter [eugene](https://wordpress.org/support/users/troopekyt/)
 * (@troopekyt)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18681825)
 * I am hosted on lightsail AWS.
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18681878)
 * [@troopekyt](https://wordpress.org/support/users/troopekyt/) and where is your
   wp-config.php file located at? Is it in the same root directory as /wp-admin/,/
   wp-includes/, etc? What is the current file permission on it?
 *  Thread Starter [eugene](https://wordpress.org/support/users/troopekyt/)
 * (@troopekyt)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18682040)
 * location and permission included in image below
 * [https://postimg.cc/14VNvGXn](https://postimg.cc/14VNvGXn)
 * [https://postimg.cc/LYXj9Gmy](https://postimg.cc/LYXj9Gmy)
    -  This reply was modified 7 months, 2 weeks ago by [eugene](https://wordpress.org/support/users/troopekyt/).
    -  This reply was modified 7 months, 2 weeks ago by [eugene](https://wordpress.org/support/users/troopekyt/).
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18682045)
 * Thanks, but the image is not loading for me. Do you mind uploading to something
   like [https://www.imagebam.com/](https://www.imagebam.com/)?
 *  Thread Starter [eugene](https://wordpress.org/support/users/troopekyt/)
 * (@troopekyt)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18682049)
 * Just edited with updated links, please try if they work now.
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18682086)
 * Thanks. The location (root) and permission (640) looks fine. I wonder what could
   be preventing DLM from updating it… at this point, I’m unable to troubleshoot
   the issue from afar.
 * As a workaround, please consider toggling debuggin on in DLM dashboard, and adding
   the following constants manually into your wp-config.php, e.g. via FTP.
 * define( ‘WP_DEBUG’, true );
   define( ‘SCRIPT_DEBUG’, true );define( ‘WP_DEBUG_LOG’,‘/
   your/abspath/wp-content/uploads/debug-log-manager/somesite_20240915230755011586_debug.
   log’ );define( ‘WP_DEBUG_DISPLAY’, false );
 * Note that for WP_DEBUG_LOG, you can look at the bottom of your DLM dashboard 
   for the file path starting from /wp-content/.
 * For the **/your/abspath/** portion, it could be /bitnami/wordpress/, but to be
   sure, please install my other plugin, [System Dashboard](https://wordpress.org/plugins/system-dashboard/),
   go to the “Dashboard >> System” page, go to the ‘Viewer >> URLs and Paths’ module,
   and look for ‘ABSPATH’ there.
 *  Thread Starter [eugene](https://wordpress.org/support/users/troopekyt/)
 * (@troopekyt)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18683242)
 * That works, but that destroys the whole point of having the plugin toggle the
   debug mode on and off no?
 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18683278)
 * Yes. That’s why I said it’s a ‘workaround’. Earlier than that, I said I’m not
   able to troubleshot the issue from afar. Everything seems correct. Please note
   that you’re currently the only user reporting this, from 10K+ websites that have
   DLM active. So, it could very well be something specific to your site that is
   causing it, but something unknown yet.

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

The topic ‘Plugin not writing debug mode code in wp-config.php’ is closed to new
replies.

 * ![](https://ps.w.org/debug-log-manager/assets/icon-256x256.png?rev=2783658)
 * [Debug Log Manager - Conveniently Monitor and Inspect Errors](https://wordpress.org/plugins/debug-log-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/debug-log-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/debug-log-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-log-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-log-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-log-manager/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Bowo](https://wordpress.org/support/users/qriouslad/)
 * Last activity: [7 months, 2 weeks ago](https://wordpress.org/support/topic/plugin-not-writing-debug-mode-code-in-wp-config-php/#post-18683278)
 * Status: not resolved