Title: wp_debug not working
Last modified: February 13, 2020

---

# wp_debug not working

 *  [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/)
 * That is what I set on wp-config.php but is not working, and I have even created
   the debug.log file at wp-content folder as and set 777 file permission to it 
   as well:
 *     ```
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       define( 'WP_DEBUG_DISPLAY', false );
       define('WP_DEBUG', false);
       ```
   
 * Does someone here could imagine why? Thank you!

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/#post-12433759)
 * Why do you define it to true and then redefine the same thing to false?
 *  Thread Starter [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/#post-12433778)
 * My bad, just fixed that, but the error persists. That is what is added on my 
   wp-config.php with some hidden information here for security reasons:
 *     ```
       /**
        * For developers: WordPress debugging mode.
        *
        * Change this to true to enable the display of notices during development.
        * It is strongly recommended that plugin and theme developers use WP_DEBUG
        * in their development environments.
        */
       define('WP_REDIS_CLIENT', 'pecl');
       define('WP_REDIS_HOST', 'localhost');
       define('WP_REDIS_PORT', '6379');
       define('WP_REDIS_MAXTTL', '86400');
       define( 'WP_REDIS_SERIALIZER', Redis::SERIALIZER_IGBINARY );
   
       define( 'WP_DEBUG', true );
       define( 'WP_DEBUG_LOG', true );
       define( 'WP_DEBUG_DISPLAY', false );
   
       define('FS_METHOD', 'direct');
       define('FS_CHMOD_DIR', (0755 & ~ umask()));
       define('FS_CHMOD_FILE', (0664 & ~ umask()));
       /* Multisite */
       define('WP_ALLOW_MULTISITE', true);
       define('MULTISITE', true);
       define('SUBDOMAIN_INSTALL', true);
       define('DOMAIN_CURRENT_SITE', 'xxx');
       define('PATH_CURRENT_SITE', '/');
       define('SITE_ID_CURRENT_SITE', 1);
       define('BLOG_ID_CURRENT_SITE', 1);
       define('ESITES_PARENT_SITE_ID', xxx);
   
       define( 'xxx_xxxx_PATH', 'wp-content/themes/xxx' );
       define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
   
       //set_time_limit(60);
   
       /* That's all, stop editing! Happy blogging. */
       /** Absolute path to the WordPress directory. */
       ```
   
 * What could be causing the issue if not something at this peace of code? Thank
   you! 😉
 *  Thread Starter [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/#post-12438394)
 * I also tried to set define( ‘WP_DEBUG_LOG’, ‘/wp-content/debug.log’ ); but did
   not work. Could it be an APACHE error as said here? [https://stackoverflow.com/questions/13788660/with-wp-debug-log-set-to-true-no-debug-output-shows-in-debug-log-why](https://stackoverflow.com/questions/13788660/with-wp-debug-log-set-to-true-no-debug-output-shows-in-debug-log-why)
   
   Tks! 😉
 *  Thread Starter [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/#post-12438519)
 * It seems my logs are being recorded here for some reason: /var/opt/remi/php72/
   log/php-fpm/www-error.log
    Does someone know tell me why? Thank you!
 *  Thread Starter [diegpl](https://wordpress.org/support/users/diegpl/)
 * (@diegpl)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/#post-12438571)
 * And /var/opt/remi/php72/log/php-fpm/www-error.log keep recording even after define(‘
   WP_DEBUG’, false ); is set.

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

The topic ‘wp_debug not working’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [diegpl](https://wordpress.org/support/users/diegpl/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/wp_debug-not-working/#post-12438571)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
