PHP Notice: Undefined index: HTTP_HOST from wp cli
-
When running some comand from wp cli (https://wp-cli.org)
wp plugin list
for exampleYou get this:
PHP Notice: Undefined index: HTTP_HOST in wp-content/plugins/wp-super-cache/wp-cache-base.php on line 4To fix it wrap that line with
if (php_sapi_name() != 'cli') { }
Fix in next release please
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP Notice: Undefined index: HTTP_HOST from wp cli’ is closed to new replies.