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