https://bugzilla.wikimedia.org/show_bug.cgi?id=52299

       Web browser: ---
            Bug ID: 52299
           Summary: doCentralLoginRedirect fatal on $wiki->getFullUrl() if
                    WikiMap not set up
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: CentralAuth
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to