WP-CLI Error: Undefined index: SERVER_NAME
-
As of the update to 6.0.16 we’re seeing the following errors when we run anything under WP-CLI:
PHP Notice: Undefined index: SERVER_NAME in /home/ubuntu/phila.gov/wp-content/plugins/wordfence/lib/wfUtils.php on line 387
Notice: Undefined index: SERVER_NAME in /home/ubuntu/phila.gov/wp-content/plugins/wordfence/lib/wfUtils.php on line 387
PHP Notice: Undefined index: SERVER_NAME in /home/ubuntu/phila.gov/wp-content/plugins/wordfence/lib/wfUtils.php on line 387
Notice: Undefined index: SERVER_NAME in /home/ubuntu/phila.gov/wp-content/plugins/wordfence/lib/wfUtils.php on line 387Seems the more official way to get the hostname is via
$current_site->domain
:
https://core.trac.www.ads-software.com/ticket/25239
- The topic ‘WP-CLI Error: Undefined index: SERVER_NAME’ is closed to new replies.