Last modified: 2014-04-08 10:53:27 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 T65625, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63625 - Fatal error: Call to a member function getFullUrl() on a non-object in CentralAuthHooks.php on line 1106
Fatal error: Call to a member function getFullUrl() on a non-object in Centra...
Status: NEW
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: 2014-04-07 14:38 UTC by Aude
Modified: 2014-04-08 10:53 UTC (History)
3 users (show)

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


Attachments

Description Aude 2014-04-07 14:38:39 UTC
in CentralAuthHooks, if $wiki in "$wiki = WikiMap::getWiki( wfWikiID() );" is null, then we get a fatal error.

I see such code elsewhere in the hooks file without checks for if $wiki is valid.

If configuration of $wgConf is not correct, then the $wiki can be null.  The code should probably throw an exception and then have some graceful error handling. 

Though not exactly sure what/how to handle the error, and I find it a bit unclear to understand what the hooks are trying to do.

Fatal error: Call to a member function getFullUrl() on a non-object in /Library/WebServer/Documents/php-master/extensions/CentralAuth/CentralAuthHooks.php on line 1106
Call Stack
#	Time	Memory	Function	Location
1	0.0007	652864	{main}( )	../index.php:0
2	0.3577	18514840	MediaWiki->run( )	../index.php:46
3	0.3578	18514840	MediaWiki->main( )	../Wiki.php:447
4	0.7266	35420480	OutputPage->output( )	../Wiki.php:598
5	0.7598	37910584	wfRunHooks( )	../OutputPage.php:2083
6	0.7598	37910632	Hooks::run( )	../GlobalFunctions.php:4009
7	0.7607	37912840	call_user_func_array:{/Library/WebServer/Documents/php-master/includes/Hooks.php:206} ( )	../Hooks.php:206
8	0.7607	37913264	CentralAuthHooks::onBeforePageDisplay( )	../Hooks.php:206

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


Navigation
Links