• Resolved aslamK

    (@4slam)


    • 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-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?

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.