Last modified: 2010-05-28 13:37:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24368, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22368 - Ask statement that includes ?Category for printout crashes
Ask statement that includes ?Category for printout crashes
Status: RESOLVED WORKSFORME
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-03 09:57 UTC by Alfredas
Modified: 2010-05-28 13:37 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Alfredas 2010-02-03 09:57:20 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.
Comment 1 Markus Krötzsch 2010-03-02 09:54:07 UTC
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.
Comment 2 Markus Krötzsch 2010-05-28 13:37:21 UTC
Closing as WORKSFORME since the bug has not been re-encountered.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links