Last modified: 2013-07-08 16:40:29 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 T46218, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44218 - Inline query w/template that calls another query causes Error icon/message. Looks like parameter parsing problem
Inline query w/template that calls another query causes Error icon/message. ...
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
PC Linux
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
http://ec2-54-245-46-108.us-west-2.co...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-21 19:56 UTC by Al Johnson
Modified: 2013-07-08 16:40 UTC (History)
4 users (show)

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


Attachments

Description Al Johnson 2013-01-21 19:56:02 UTC
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
Comment 1 Jeroen De Dauw 2013-01-22 19:30:17 UTC
<noinclude>
Description...
</noinclude><includeonly>
<ol>

{{#ask:[[ref for page::{{PAGENAME}}]]
|?refId
|?author
|headers=hide
|mainlabel=-
|format=template
|template=ShowRefObject2
}}

</ol>
</includeonly>
Comment 2 Jeroen De Dauw 2013-01-22 19:31:22 UTC
Can you create a minimal reproduction case? For instance, does this occur when you omit the ol tags?
Comment 3 Al Johnson 2013-01-23 02:29:31 UTC
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
Comment 4 MWJames 2013-07-08 16:40:29 UTC
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

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


Navigation
Links