https://bugzilla.wikimedia.org/show_bug.cgi?id=22368

           Summary: Ask statement that includes ?Category for printout
                    crashes
           Product: MediaWiki
           Version: 1.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Categories
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: alfre...@gmail.com


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to