Spurious warnings when running WP-CLI commands
-
When wp-cassify is installed and I run any WP-CLI command, I get a number of spurious warnings, presumably because it’s not being run in a web context.
PHP Warning: Undefined array key "SERVER_PORT" in /srv/napd-mygideon-wordpress/src/web/app/plugins/wp-cassify/classes/wp_cassify_utils.php on line 105
(also occurs on wp_cassify_utils.php lines 98, 101, and 102)
This doesn’t affect the functionality of the plugin or the rest of the site, it’s just a minor annoyance to have this noise printed in every command line we run.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Spurious warnings when running WP-CLI commands’ is closed to new replies.