Last modified: 2010-05-28 13:37:21 UTC
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.
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.