Page MenuHomePhabricator

Catchable fatal error: Argument 1 passed to SMWDIWikiPage::newFromTitle() must be an instance of Title, null given
Closed, ResolvedPublic

Description

Catchable fatal error: Argument 1 passed to SMWDIWikiPage::newFromTitle() must be an instance of Title, null given, called in

/www/sandwiki/extensions/SemanticForms/includes/SF_FormLinker.php on line 64 and defined in /www/sandwiki/extensions/SemanticMediaWiki/includes/dataitems/SMW_DI_WikiPage.php on 
line 136

Happens when running unittests.


Version: unspecified
Severity: critical

Details

Reference
bz31529

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:58 PM
bzimport set Reference to bz31529.

Ah - I assume this is because $wgTitle isn't set when running a unit test. I just checked in what I think is a fix.