Title: WP_DEBUG already defined
Last modified: August 26, 2022

---

# WP_DEBUG already defined

 *  [ajna667](https://wordpress.org/support/users/ajna667/)
 * (@ajna667)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp_debug-already-defined/)
 * Hello I got 100 warning error per hour on log file about wp_debug already define
   from code snippet
    like 2022/08/26 11:22:25 [error] 94729#94729: *307681 FastCGI
   sent in stderr: “PHP message: PHP Warning: Constant WP_DEBUG already defined 
   in /***/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()’d 
   code on line 1PHP message: PHP Warning: Constant WP_DEBUG_LOG already defined
   in /***/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()’d 
   code on line 2PHP message: PHP Warning: Constant WP_DEBUG_DISPLAY already defined
   in /**/wp-content/plugins/code-snippets/php/snippet-ops.php(484) : eval()’d code
   on line 3”, client: 66.249.66.***, server: www.***.fr, request: “GET /produit/*****
   mm&utm_source=Google%20Shopping&utm_campaign=google%20shopping%20fr&utm_medium
   =cpc&utm_term=**** HTTP/1.1”, host: “www.***.fr:***” 2022/08/26 11:22:22 [error]
   94729#94729: *307676 FastCGI sent in stderr: “PHP message: PHP Warning: Constant
   WP_DEBUG already defined in /***/wp-content/plugins/code-snippets/php/snippet-
   ops.php(484) : eval()’d code on line 1PHP message: PHP Warning: Constant WP_DEBUG_LOG
   already defined in /***/wp-content/plugins/code-snippets/php/snippet-ops.php(
   484) : eval()’d code on line 2PHP message: PHP Warning: Constant WP_DEBUG_DISPLAY
   already defined in /***/wp-content/plugins/code-snippets/php/snippet-ops.php(
   484) : eval()’d code on line 3” while reading response header from upstream, 
   client: 207.46.13.***, server: www.***.fr, request: “GET /my-account/commandes/
   HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-***.sock:”, host: “www.***.
   fr:***” 2022/08/26 11:22:02 [error] 94729#94729: *307669 FastCGI sent in stderr:“
   PHP message: PHP Warning: Constant WP_DEBUG already defined in /***/wp-content/
   plugins/code-snippets/php/snippet-ops.php(484) : eval()’d code on line 1PHP message:
   PHP Warning: Constant WP_DEBUG_LOG already defined in /***/wp-content/plugins/
   code-snippets/php/snippet-ops.php(484) : eval()’d code on line 2PHP message: 
   PHP Warning: Constant WP_DEBUG_DISPLAY already defined in /***/wp-content/plugins/
   code-snippets/php/snippet-ops.php(484) : eval()’d code on line 3” while reading
   response header from upstream, client: 89.226.169.***, server: www.***.fr, request:“
   POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-
   fpm-***.sock:”, host: “www.***.fr:***”, referrer: “[https://www.***/wp-admin/admin.php?path=languages%2Floco%2Fplugins%2Fcommercegurus-commercekit-fr_FR.po&bundle=commercegurus-commercekit%2Fcommercegurus-commercekit.php&domain=commercegurus-commercekit&page=loco-plugin&action=file-edit&#8221](https://www.***/wp-admin/admin.php?path=languages%2Floco%2Fplugins%2Fcommercegurus-commercekit-fr_FR.po&bundle=commercegurus-commercekit%2Fcommercegurus-commercekit.php&domain=commercegurus-commercekit&page=loco-plugin&action=file-edit&#8221);
    -  This topic was modified 3 years, 9 months ago by [ajna667](https://wordpress.org/support/users/ajna667/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp_debug-already-defined/#post-15953060)
 * Looks like you are trying to refine the `WP_DEBUG` and `WP_DEBUG_LOG` constants
   in a snippet. Unfortunately, these can only really be configured in `wp-config.
   php`.

Viewing 1 replies (of 1 total)

The topic ‘WP_DEBUG already defined’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/wp_debug-already-defined/#post-15953060)
 * Status: not a support question