Last modified: 2014-09-11 19:02:31 UTC
I'm trying to get CentralAuth's SUL2 limping locally. With $wgCentralAuthAutoNew=true to make it create a global account, I'm getting Fatal error: Call to a member function getFullUrl() on a non-object in .../extensions/CentralAuth/CentralAuthHooks.php on line 464 The call to $wiki->getFullUrl() in doCentralLoginRedirect() fatals because the earlier call to $wiki = WikiMap::getWiki( $wgCentralAuthLoginWiki ); returns null. To avoid the fatal the code could test if ( $wiki ) before invoking. Although, I'm not sure if there's reasonable recovery if MW is supposed to do the redirect and can't. Obviously I'll set up WikiMap.
CentralAuth won't work if $wgConf / WikiMap isn't set up properly...