{"action":"created","issue":{"url":"https://api.github.com/repos/JeroenDeDauw/Maps/issues/321","repository_url":"https://api.github.com/repos/JeroenDeDauw/Maps","labels_url":"https://api.github.com/repos/JeroenDeDauw/Maps/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/JeroenDeDauw/Maps/issues/321/comments","events_url":"https://api.github.com/repos/JeroenDeDauw/Maps/issues/321/events","html_url":"https://github.com/JeroenDeDauw/Maps/issues/321","id":225760781,"node_id":"MDU6SXNzdWUyMjU3NjA3ODE=","number":321,"title":"Map randomly fails to load","user":{"login":"Rudloff","id":840125,"node_id":"MDQ6VXNlcjg0MDEyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/840125?v=4","gravatar_id":"","url":"https://api.github.com/users/Rudloff","html_url":"https://github.com/Rudloff","followers_url":"https://api.github.com/users/Rudloff/followers","following_url":"https://api.github.com/users/Rudloff/following{/other_user}","gists_url":"https://api.github.com/users/Rudloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudloff/subscriptions","organizations_url":"https://api.github.com/users/Rudloff/orgs","repos_url":"https://api.github.com/users/Rudloff/repos","events_url":"https://api.github.com/users/Rudloff/events{/privacy}","received_events_url":"https://api.github.com/users/Rudloff/received_events","type":"User","site_admin":false},"labels":[{"id":255207616,"node_id":"MDU6TGFiZWwyNTUyMDc2MTY=","url":"https://api.github.com/repos/JeroenDeDauw/Maps/labels/Leaflet","name":"Leaflet","color":"bfd4f2","default":false},{"id":5081917,"node_id":"MDU6TGFiZWw1MDgxOTE3","url":"https://api.github.com/repos/JeroenDeDauw/Maps/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-05-02T17:12:08Z","updated_at":"2018-09-27T18:10:37Z","closed_at":"2017-10-11T03:36:01Z","author_association":"NONE","body":"### Setup\r\n\r\n- MW version: 1.28.1\r\n- DB (MySQL etc.): 5.6.36\r\n- PHP version: 5.6.30-0+deb8u1\r\n- Maps version: 4.1.0 + 4.2.0 + 4.4.0\r\n- SMW version (if applicable): 2.4.6\r\n\r\n### Issue\r\n\r\nSometimes the map fails to load correctly and I get this error in the console:\r\n```\r\n19:08:49,673 Exception in module-execute in module ext.maps.leaflet: 1 load.php:176:524\r\n19:08:49,673 ReferenceError: L is not defined ReferenceError: L is not defined\r\nTrace de la pile :\r\n@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=ext.maps.common%2Cleaflet&skin=archiwiki&version=1olmep4:8:1\r\nexecute/runScript/<@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:161:722\r\njQuery.Callbacks/fire@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:45:104\r\njQuery.Callbacks/self.add@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:45:656\r\n.Deferred/promise.always@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:46:865\r\nexecute/runScript@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:161:588\r\nexecute/</checkCssHandles@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:162:315\r\nexecute@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:163:25\r\nmw.loader.implement@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=archiwiki&version=0ewpln0:169:267\r\n@http://localhost/archi-mediawiki/load.php?debug=false&lang=fr&modules=ext.maps.common%2Cleaflet&skin=archiwiki&version=1olmep4:1:342\r\n 1 load.php:176:562\r\n\tlogError http://localhost/archi-mediawiki/load.php:176:562\r\n\thandler http://localhost/archi-mediawiki/load.php:155:28\r\n\tjQuery.Callbacks/fire http://localhost/archi-mediawiki/load.php:45:104\r\n\tjQuery.Callbacks/self.fireWith http://localhost/archi-mediawiki/load.php:46:431\r\n\tjQuery.Callbacks/self.fire http://localhost/archi-mediawiki/load.php:46:474\r\n\tmw.track http://localhost/archi-mediawiki/load.php:154:806\r\n\texecute/runScript/< http://localhost/archi-mediawiki/load.php:161:934\r\n\tjQuery.Callbacks/fire http://localhost/archi-mediawiki/load.php:45:104\r\n\tjQuery.Callbacks/self.add http://localhost/archi-mediawiki/load.php:45:656\r\n\t.Deferred/promise.always http://localhost/archi-mediawiki/load.php:46:865\r\n\texecute/runScript http://localhost/archi-mediawiki/load.php:161:588\r\n\texecute/</checkCssHandles http://localhost/archi-mediawiki/load.php:162:315\r\n\texecute http://localhost/archi-mediawiki/load.php:163:25\r\n\tmw.loader.implement http://localhost/archi-mediawiki/load.php:169:267\r\n\t<anonyme> http://localhost/archi-mediawiki/load.php:1:342\r\n```\r\n\r\nIt seems to be rather random and often reloading the page will fix it.\r\nMaybe the JS is not loaded in the right order?\r\n"},"comment":{"url":"https://api.github.com/repos/JeroenDeDauw/Maps/issues/comments/425190660","html_url":"https://github.com/JeroenDeDauw/Maps/issues/321#issuecomment-425190660","issue_url":"https://api.github.com/repos/JeroenDeDauw/Maps/issues/321","id":425190660,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTE5MDY2MA==","user":{"login":"Rudloff","id":840125,"node_id":"MDQ6VXNlcjg0MDEyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/840125?v=4","gravatar_id":"","url":"https://api.github.com/users/Rudloff","html_url":"https://github.com/Rudloff","followers_url":"https://api.github.com/users/Rudloff/followers","following_url":"https://api.github.com/users/Rudloff/following{/other_user}","gists_url":"https://api.github.com/users/Rudloff/gists{/gist_id}","starred_url":"https://api.github.com/users/Rudloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rudloff/subscriptions","organizations_url":"https://api.github.com/users/Rudloff/orgs","repos_url":"https://api.github.com/users/Rudloff/repos","events_url":"https://api.github.com/users/Rudloff/events{/privacy}","received_events_url":"https://api.github.com/users/Rudloff/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T18:10:37Z","updated_at":"2018-09-27T18:10:37Z","author_association":"NONE","body":"Sorry to come back to this bug so long after it has been closed, but we still frequently get reports from our users that the map randomly does not load.\r\n\r\nI tried to reproduce the issue and I can still get this error (usually on the first time I load a page):\r\n```\r\nReferenceError: L is not defined ReferenceError: L is not defined\r\nStack trace:\r\n@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=ext.maps.common%2Cleaflet&skin=vector&version=0ow4253:8:1\r\nrunScript/<@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:161:89\r\nfire@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:45:104\r\nadd@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:45:656\r\nalways@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:46:865\r\nrunScript@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:160:944\r\ncheckCssHandles@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:161:678\r\nexecute@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:162:384\r\nimplement@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=18wth5n:168:670\r\n@http://www.archi-wiki.org/load.php?debug=false&lang=fr&modules=ext.maps.common%2Cleaflet&skin=vector&version=0ow4253:1:342\r\n load.php:176:53\r\n```\r\n\r\nIf I remember correctly, this was fixed in 5.0.0.\r\nThe wiki I am testing on still uses 5.0.2 (the server is still Debian 7.11/PHP 5.6). I will try to get them to update to a more recent version.\r\n\r\nAs a workaround, I will try to force load Leaflet on every page. It is not very clean but it should do the job."}}
{"actor":{"display_login":"Rudloff"}}