The following code produces an error when path is not defined.

    $base_root = substr($base_url, 0, strlen($base_url) - strlen($parts['path']));

My fix:

	if(isset($parts['path']))
		{
		$base_root = substr($base_url, 0, strlen($base_url) - strlen($parts['path']));
		}
	else
		{
		$base_root = $base_url;
		}

Comments

peterx’s picture

PS: settings.php contains:

 	$base_url = 'http://test.example.com';
chx’s picture

Status: Active » Fixed

this is fixed in HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)