Last modified: 2013-06-05 22:55:00 UTC
During the course of the usage of specials properties, it can happen that once pre-defined properties (_Foo) are no longer registered but still reside within a subject as property. Trying to query subjects with those properties will result in a fatal [1] because SMWDIHandlerWikiPage::dataItemFromDBKeys tries to invoke a propertyId that is no longer is registered with SMWDIProperty::initPropertyRegistration but non-updated subjects(wikipages) still have those properties attached. [1] There is no predefined property with "_MEDIATYPE". Backtrace: #0 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_DIHandler_WikiPage.php(120): SMWDIProperty->__construct('_MEDIATYPE') #1 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_SQLStore3_Queries.php(450): SMWDIHandlerWikiPage->dataItemFromDBKeys(Array) #2 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_SQLStore3_Queries.php(311): SMWSQLStore3QueryEngine->getInstanceQueryResult(Object(SMWQuery), 1) #3 \\foo\mw\SemanticMediaWiki\includes\storage\SQLStore\SMW_SQLStore3.php(350): SMWSQLStore3QueryEngine->getQueryResult(Object(SMWQuery)) #4 \\foo\mw\SemanticMediaWiki\includes\specials\SMW_SpecialAsk.php(253): SMWSQLStore3->getQueryResult(Object(SMWQuery)) #5 \\foo\mw\SemanticMediaWiki\includes\specials\SMW_SpecialAsk.php(72): SMWAskPage->makeHTMLResult() #6 \\foo\includes\SpecialPage.php(613): SMWAskPage->execute(NULL) #7 \\foo\includes\SpecialPageFactory.php(499): SpecialPage->run(NULL) #8 \\foo\includes\Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext)) #9 \\foo\includes\Wiki.php(565): MediaWiki->performRequest() #10 \\foo\includes\Wiki.php(458): MediaWiki->main() #11 \\foo\index.php(59): MediaWiki->run()
Related URL: https://gerrit.wikimedia.org/r/64938 (Gerrit Change Ibfb2ceb33d0260c281b4d72a79deacdf14ac60d8)