Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: "L is not defined" #480

Closed
Rudloff opened this issue Oct 6, 2018 · 3 comments
Closed

ReferenceError: "L is not defined" #480

Rudloff opened this issue Oct 6, 2018 · 3 comments
Labels

Comments

@Rudloff
Copy link

Rudloff commented Oct 6, 2018

Setup

  • Maps version: 5.6
  • MW version: 1.31.1
  • PHP version: 7.0.30-0+deb9u1
  • SMW version (if applicable): 3.0.0-rc.2

Issue

I found this while creating the example for #479.

On this example page, the maps don't load correctly.
And I get this error in the console:

ReferenceError: "L is not defined"
<anonymous> https://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.maps.common%2Cleaflet&skin=vector&version=1jnszwn:9:1
runScript https://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0x384ib:162:129
checkCssHandles https://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0x384ib:162:785
execute https://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0x384ib:163:496
implement https://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=0x384ib:169:897
<anonymous> https://sandbox.semantic-mediawiki.org/w/load.php?debug=false&lang=en&modules=ext.maps.common%2Cleaflet&skin=vector&version=1jnszwn:1:333 load.php:177:183

I don't know what causes this (but it looks similar to #321).

Edit: It seems to work again if I remove the display_map part and purge the page.

@JeroenDeDauw
Copy link
Member

Some changes to how the JS is loaded where made in Maps 6.0, so this might be fixed in the latest version already.

@JeroenDeDauw
Copy link
Member

Can anyone confirm this is still present in Maps 6.x?

@kghbln
Copy link
Member

kghbln commented Nov 17, 2018

Currently it is pretty hard to test since upgrading to Maps 6.x is not possible. :( However this issue is a real pain in the you know what. It also happens on MW 1.27.5, Maps 4.4.0 and without SMW being installed, but I did not see this until Page Forms was installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants