WordPress.org

Ready to get started?Download WordPress

Forums

Undefined index: HTTP_HOST (3 posts)

  1. xzoom
    Member
    Posted 6 months ago #

    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' ] ) {

    http://stackoverflow.com/questions/6004298/when-could-the-http-host-header-be-undefined
    http://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

  2. Hm. Try making a WP MU-plugin with this:

    <?php
    
    add_filter('https_ssl_verify', '__return_false');
    add_filter('https_local_ssl_verify', '__return_false');
  3. xzoom
    Member
    Posted 6 months ago #

    Hello Ipstenu,

    Yes, it works... PHP notice has dissapeared... :)

    If I disable https_sssl_verify, can it affect other functionalities?

    Thank you!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.