Page MenuHomePhabricator

Fatal error: Call to a member function on a non-object in includes/SkinTemplate.php on line 306
Closed, InvalidPublic

Description

Author: Alrik

Description:
blocks any specialpage "Fatal error: Call to a member function on a non-object
in includes/SkinTemplate.php on line 306"

Happens every time I try to open any special page. So it's really a blocker bug.
I've tracked down to the functioncall $wgArticle->getID()

If you search teh web using google ("member function non-objekt SkinTemplate.php
line 306") you find several wikis that also have this problem.

In most cases it seems to be connected with a mediawiki-extension (e.g.
Blogextension) but in my case it is surely not as I disabled every extension in
LocalSettings.php. In some cases adding of $wgOut->setArticleRelated( false ) to
the extension.php helps but in my case I don't know where to add, as I don't use
any extension.

Perhaps there is a connection with editing of [[Mediawiki:Sidebar]] as it
occured the first time shortly after creating a new sidebar.

Regards
Alrik


Version: 1.6.x
Severity: critical
OS: Linux
Platform: PC

Details

Reference
bz6923

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:16 PM
bzimport set Reference to bz6923.
bzimport added a subscriber: Unknown Object (MLST).

ayg wrote:

Editing [[MediaWiki:Sidebar]] can't affect whether a variable is an object or not.

These are buggy extensions. Call the required functions in your extensions. Please see
SpecialPage.php for the default implementation and reference comments.