Page MenuHomePhabricator

Use of $wgParser in query printers not always allowed
Closed, DeclinedPublic

Description

Quoting a bug report by Stephan Robotta:

When calling the function SMWQueryProcessor::getResultFromQueryString() with the parameter SMW_OUTPUT_HTML a fatal error ocurres in the parser. This happens when a ask query is done and a table with parameter intro is requested like in:

{{#ask: [[Category:Content]]

format=table
link=all
intro=content in my wiki
mainlabel=title
}}

At the moment this would happen in the Query Interface of SMW+ only. Within
pages of the wiki, the query output is rendered to wiki text which then later
is rendered to html.

The parser handling in line 161ff in SMW_QueryPrinter.php is needed as well in
the parts for mIntro and mOutro shorly afterwards.


Version: unspecified
Severity: normal

Details

Reference
bz17754

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:31 PM
bzimport set Reference to bz17754.

This bug seems to have been fixed since its report, or at least I am unable to reproduce it now. Please re-open with new details if there is still a way to cause this problem.