Undefined index: HTTP_HOST
-
Hello,
I get the following error: [error] [client ::1]
PHP Notice: Undefined index: HTTP_HOST in /wp-includes/ms-settings.php on line 97
At ms-settings.php, a server var is called $_SERVER[‘HTTP_HOST’ but it doesn’t exist sometimes
LINE 25 $domain = addslashes( $_SERVER[‘HTTP_HOST’] );
LINE 97 if ( $current_site->domain != $_SERVER[ ‘HTTP_HOST’ ] ) {https://stackoverflow.com/questions/6004298/when-could-the-http-host-header-be-undefined
https://www.php.net/manual/es/reserved.variables.server.php`’HTTP_HOST’
Contents of the Host: header from the current request, if there is one. `Might use function “isset(var)” in order to avoid php notice errors?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Undefined index: HTTP_HOST’ is closed to new replies.