Page MenuHomePhabricator

Ask statement that includes ?Category for printout crashes
Closed, DeclinedPublic

Description

Author: alfredas

Description:
In http://semantic-mediawiki.org/wiki/Help:Displaying_information
the paragraph on Printing Categories says that adding ?Category should print out the category.

Instead this query:

{{#ask: [[Category:City]]

?Category

}}

produces the following error:

Catchable fatal error: Argument 2 passed to SMWSQLStore2::getPropertyValues() must be an instance of SMWPropertyValue, null given, called in /var/lib/mediawiki/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php on line 268 and defined in /var/lib/mediawiki/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php on line 339

Might it be related to subcategories being treated differently?

Also

{{#ask: [[Category:City]]

?Category:City

}}

works as expected.


Version: unspecified
Severity: normal

Details

Reference
bz22368

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:49 PM
bzimport set Reference to bz22368.

I cannot reproduce this bug on the current version of SMW. Which version/release of SMW is used? Does the problem still occur?

Also see http://sandbox.semantic-mediawiki.org/wiki/Test_Bug_22368 for a demonstration.

Closing as WORKSFORME since the bug has not been re-encountered.