Warning: Constant WP_DEBUG already defined …
-
- PHP 8.1.17
- WP-CLI 2.7.1
Adding the following line to
wp-config.php(line 107)…define('WP_DEBUG', true);…causes
wp-clito report the following…$ wp plugin listWarning: Constant WP_DEBUG already defined in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner. php(1296) : eval()'d code on line 106…and the web server to report the following:
PHP Error: PHP Warning: Constant WP_DEBUG already defined in /path/to/wp-config.php on line 107I’ve only defined
WP_DEBUGinwp-config.php. Where might the other definition of this constant be?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Warning: Constant WP_DEBUG already defined …’ is closed to new replies.