Last modified: 2014-03-28 10:13:24 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 T36813, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34813 - cannot use template parameter for map result within Drilldown "Has display parameters" property
cannot use template parameter for map result within Drilldown "Has display pa...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SemanticDrilldown (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-29 20:30 UTC by Paul Oranje
Modified: 2014-03-28 10:13 UTC (History)
0 users

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


Attachments

Description Paul Oranje 2012-02-29 20:30:16 UTC
When setting within Drilldow "Has display parameters" property the parameter template together with format=map result, the result is a parsing error:

Catchable fatal error: Argument 2 passed to Parser::parse() must be an instance of Title, null given, called in <path>/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php on line 444 and defined in <path>/includes/parser/Parser.php on line 313

Extra info:
MediaWiki 1.18.1
Semantic MediaWiki 1.7.0.2
Semantic Maps 1.0.5
Semantic Drilldown 1.1
Comment 1 Yaron Koren 2012-03-01 22:58:08 UTC
Is this still an issue for the latest SVN version of Semantic Drilldown?
Comment 2 Paul Oranje 2012-03-02 11:55:00 UTC
Problem still present in trunk r112877.
Comment 3 Paul Oranje 2012-03-06 17:43:31 UTC
SM_QueryHandler.php sets $parser to clone of $wgParser when MW > 1.18.
Could this be the reason that $parser->getTitle does not yield a Title object?
Comment 4 Yaron Koren 2012-03-09 13:13:40 UTC
Hi,

This might be hard to debug, because I can't duplicate the problem - see here:

http://discoursedb.org/wiki/Special:BrowseData/Cities

Is this happening on a public wiki? If not, maybe you could try reproducing it on http://scratchpad.referata.com? Referata is currently running MW 1.18.1, as well as the latest versions of those other extensions.
Comment 5 Paul Oranje 2012-03-09 15:52:03 UTC
Have a look at the wiki http://www.culturalheritageconnections.org/
MW version is 1.18.1 (see http://www.culturalheritageconnections.org/wiki/Special:Version)

The error (see bug description) occurs when http://www.culturalheritageconnections.org/mediawiki/index.php?title=Category:Site contains the following statement:

 {{#set: Has display parameters=?Site-at-geocode;format=map;centre=20,20;zoom=2;icon=Blue_marker.png;template=Country-show-related}}

The http://discoursedb.org/wiki/Category:Cities page does not use a template as SD display parameter.
Comment 6 Yaron Koren 2012-03-09 19:18:56 UTC
Oh - I missed the fact that you mentioned the template parameter. I was able to easily reproduce the problem. I just looked into this a little, though, and I couldn't figure out the issue - it comes somehow from the interplay of SD, SMW, SM and MediaWiki. Hopefully I, or someone else, will be able to debug it soon.
Comment 7 Yaron Koren 2012-08-24 18:04:20 UTC
Sorry about the very long delay on this. I just looked at this again, and I'm pretty sure that the issue is with Semantic Maps - or at least, that would be the easiest place to put a fix for it. Jeroen, I'm reassigning this to you; feel free to reassign it back if you think the issue is actually with SD.

By the way, you can see the issue here (this is using the latest SMW, SM, SD, etc.):

http://discoursedb.org/wiki/Special:BrowseData/Cities

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


Navigation
Links