Warning: Constant WP_DEBUG already defined …

[ad_1]

Adding the following line to wp-config.php (line 107)…

define('WP_DEBUG', true);

…causes wp-cli to report the following…

$ wp plugin list
Warning: 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 107

I’ve only defined WP_DEBUG in wp-config.php. Where might the other definition of this constant be?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer