Last modified: 2012-05-22 20:42:46 UTC
We've been using syntax as below for a long while at translatewiki.net. With the current code, maps and markers no longer display. Instead a grey are is displayed with the localised text "Loading map...". This broke recently. {{#display_point:52.092397, 5.057801| service=openlayers| height=250| width=215}} We've been experiencing a lot of breakage in Maps related functionality in the past few weeks. Can I suggest to implement some automated testing to improve stability?
I noticed this on twn as well. Not sure why it's breaking, works locally. I put a breakpoint in the map JS, and it did not get hit on twn, so something is wrong with the script loading or init script. > Can I suggest to implement some automated testing to improve stability? +1. Not sure I can convince the contributors to convince their clients to have them write tests though :/
Example broken map on twn using #ask: https://translatewiki.net/wiki/Portal:Nl
Debugged this a bit but could not find the issue. Did notice a difference between RL debug on and off. When on, I'm getting this network error in firebug: "NetworkError: 404 Not Found - http://localhost/phase3/index.php/Theme/default/style.css" Apparently the code in ext.maps.openlayers.js does not set the path correctly when it's off? Map does display in both situations though, so was not able to reproduce.
I'm also getting this error in firebug[1]: egMapsScriptPath is not defined http://translatewiki.net/w/extensions/Maps/includes/services/OpenLayers/ext.maps.openlayers.js Line 13 [1] http://translatewiki.net/wiki/Portal:Nl?debug=true
(mis-air collision!) Like Siebrand: Got this with ?debug=true egMapsScriptPath is not defined https://translatewiki.net/w/extensions/Maps/includes/services/OpenLayers/ext.maps.openlayers.js Line 13 Also got a weird one: "NetworkError: 404 Not Found - https://translatewiki.net/wiki/Undefined/firebug.html"
ok, weird that I got the same thing without ?debug=true in Chromium -- even the firebug.html
Ohhh... it should be using mw.config.get /facepalm That explains the difference, you probably have legacy globals turns off. I should do the same I guess, so I noticed the stuff... Change is at Gerrit change #7954
Hi, I've a similar problem. In a wiki I admin a query with openlayers give also a grey square with "loading map...": http://lletra.uoc.edu/viquilletra/Usuari:Dvdgmz/test/maps/openlayers I replaced includes/libs/JavaScriptMinifier.php with https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/libs/JavaScriptMinifier.php But that didn't solve the problem.
That issue is unrelated to this bug report. Replacing that file is what I'd suggest doing, if that did not work, then I don't know how to fix your problem other then upgrading MediaWiki.