Page MenuHomePhabricator

<mapframe>/<maplink>: Invalid GeoJSON code in wgKartographerLiveData prevents drawing of maps at Wikivoyage
Closed, ResolvedPublic


If an article at Wikivoyage contains no markers (i.e. maplink codes with GeoJSON) an invalid GeoJSON code is created for the wgKartographerLiveData variable in the document header.

Working example (with text markers):

Invalid GeoJSON, for instance at voy:en:Marshfield_(Massachusetts):

The MediaWiki:Kartographer.js is not able to handle this code, and a JS error message like "Uncaught SyntaxError: Unexpected token u in JSON at position 0" occurs.

The effect of this faulty code is surely that the Kartographer map is not shown at all (empty space).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@RolandUnger thanks for reporting. We have done a number of data-related changes on the backend in the past two weeks, but it won't be deployed until Wednesday. Could you verify that this bug still exists at ? I suspect we might have fixed it, but not sure.

@RolandUnger I tried to replicate that article with all of its templates at beta cluster, and it seems to be working ok. I will wait until Wednesday to re-visit this bug.

Today, all wgKartographerLiveData are wrong as shown below and, therefore, no map is shown.


@RolandUnger the train runs at 19:00 UTC today, 12:00 PDT. That's when group1 sites (Wikivoyage) get the new update. See schedule at

Lets revisit this after the train runs (assuming the deployment train is ok, and there are no overall deployment issues). Another good place to see the status is at -- we are waiting for 1.28.0-wmf.23 in group 1

MaxSem moved this task from Backlog to In progress on the Maps-Sprint board.
MaxSem subscribed.

Still reproduceable.

The wrong wgKartographerLiveData GeoJSON code is still existent.


Change 318435 had a related patch set uploaded (by MaxSem):
Fix missing live groups in Wikivoyage mode

Change 318435 merged by jenkins-bot:
Fix missing live groups in Wikivoyage mode