• Resolved gsf747

    (@gsf747)


    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 387

    Seems the more official way to get the hostname is via $current_site->domain:
    https://core.trac.www.ads-software.com/ticket/25239

    https://www.ads-software.com/plugins/wordfence/

Viewing 1 replies (of 1 total)
  • Plugin Author WFMattR

    (@wfmattr)

    Thank you for the report. I have entered this in our internal system, and the dev team will check it out.

    -Matt R
    FB938

Viewing 1 replies (of 1 total)
  • The topic ‘WP-CLI Error: Undefined index: SERVER_NAME’ is closed to new replies.