Page MenuHomePhabricator

#ask format=count kills page
Closed, ResolvedPublic

Description

Catchable fatal error: Object of class SMWQueryResult could not be converted to string in /path/to/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 319

This error is caused when using format=count in an #ask query, and takes down the article page. Hopefully this is enough to reproduce the bug. If not, I can probably do more testing. The query looks like this:

{{#ask:[[Category:Some category]][[Some property::{{PAGENAME}}]]|format=count}}


Version: unspecified
Severity: critical

Details

Reference
bz30459

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:58 PM
bzimport set Reference to bz30459.

A similar query is being used in another place on the same page without problems. So, maybe it only occurs when there's two of them? Not sure...