Page MenuHomePhabricator

Inline query w/template that calls another query causes Error icon/message. Looks like parameter parsing problem
Closed, InvalidPublic

Description

Author: alj62888

Description:
Semantic Bundle (Version 1.8alpha)
Semantic MediaWiki (Version 1.8.0.1)

The inline queries execute successfully but an error icon with message:

The part "|1" of the query was not understood. Results might not be as expected. The part "]]" of the query was not understood. Results might not be as expected.

The HTML entities and horizontal bar above is how the message displays. The "1" corresponds to the value of the {{{1}}} parameter used in an #ask query. While investigating, hard-coding a value in place of {{{1}}} removes the error icon/message. I also print-out the {{{1}}} parameter to show that it indeed has a value.

I cannot find a work-around to avoid the error icon/message. I set this bug to Major since it fills the page with many of the error icons.

**This bug is demonstrated on my server now at:

http://ec2-54-245-46-108.us-west-2.compute.amazonaws.com/wiki/index.php/bug1

Please feel free to confirm this on the above server that I provide just for this bug. If it is down, please ask and I'll start it back up.

Thanks,
Al


Version: unspecified
Severity: major
OS: Linux
Platform: PC
URL: http://ec2-54-245-46-108.us-west-2.compute.amazonaws.com/wiki/index.php/bug1

Details

Reference
bz44218

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:31 AM
bzimport set Reference to bz44218.
bzimport added a subscriber: Unknown Object (MLST).

<noinclude>
Description...
</noinclude><includeonly>
<ol>

{{#ask:[[ref for page::{{PAGENAME}}]]

?refId
?author
headers=hide
mainlabel=-
format=template
template=ShowRefObject2

}}

</ol>
</includeonly>

Can you create a minimal reproduction case? For instance, does this occur when you omit the ol tags?

alj62888 wrote:

Ok, I reduced it down more removing formatting, etc.. Still the same prob.

Side Note: I also noticed that when you use format=list with a query tamplate, the 1st param {{{1}}} is no longer the pagename. I didn't notice this exception in the docs.

Thanks

Unknown Object (User) added a comment.Jul 8 2013, 4:40 PM

Cited source [1] is unavailable for verification and any issue should be made in connection with the available master (currently SMW 1.9).

[1] http://ec2-54-245-46-108.us-west-2.compute.amazonaws.com/wiki/index.php/bug1