Last modified: 2014-09-11 19:02:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54299, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52299 - doCentralLoginRedirect fatal on $wiki->getFullUrl() if WikiMap not set up
doCentralLoginRedirect fatal on $wiki->getFullUrl() if WikiMap not set up
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
CentralAuth (Other open bugs)
master
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-30 22:37 UTC by spage
Modified: 2014-09-11 19:02 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-07-30 22:37:07 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.
Comment 1 Kunal Mehta (Legoktm) 2014-09-11 19:02:31 UTC
CentralAuth won't work if $wgConf / WikiMap isn't set up properly...

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links