• I’m running with debug on and got this message after turning on HTTP S
    Anyone know what this might mean and how to fix it? I changed to https in general settings…

    Notice: Undefined index: host in /usr/home/URLpath/wp/wp-includes/theme.php on line 2132
    
    function wp_customize_support_script() {
    	$admin_origin = parse_url( admin_url() );
    	$home_origin  = parse_url( home_url() );
    	$cross_domain = ( strtolower( $admin_origin[ 'host' ] ) != strtolower( $home_origin[ 'host' ] ) );
Viewing 3 replies - 1 through 3 (of 3 total)
  • With PHP’s Debug mode on it’ll output errors, notices and warnings. Errors break things, notices and warnings do not they’re more “advisory”.

    However… this code shouldn’t do that. parse_url() is failing to return value for one of those, likely because you have an invalid URL set in general settings.

    If you can’t get back into General Settings, you can override the values by adding this to your wp-config file

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    with your correct urls, more here: https://codex.wordpress.org/Changing_The_Site_URL

    Thread Starter jefferisp7

    (@jefferisp7)

    I can get into general settings. I have changed the home page from http://mydomain.com
    to https://mydomain.com and I have a rewrite in the htaccess to fix internal links that may refer to the non SSL site..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined Host in Theme.php?’ is closed to new replies.