• Resolved Palijn

    (@palijn)


    Hello,
    suddenly my OSM maps are not showing in the browser anymore.
    I disabled cache and image modification plugins, without results.

    Actually, it seems the map code is in the page BUT there are JS errors in the console :
    ReferenceError: Can't find variable: L

    I’ll leave it to you to check the page at https://ethiqueetchiens.fr/lieux/haut-mollard/ since you’ll certainly understand what happens much better than me.

    Any help appreciated !
    Thanks
    Thierry

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    That is because the OSM js is not loaded, apparently. Please try it with the Lite Speeed Cache deactivated.

    Thread Starter Palijn

    (@palijn)

    Well, I purged the Litespeed cache,
    then I deactivated the WP extension,
    and then I disabled Litespeed support at the webserver level.
    I emptied the browser cache; tried on Safari and Chrome : the issue remains.
    I’m short on ideas now.

    Thread Starter Palijn

    (@palijn)

    Sorry, it finally loads. I’ll now debug the cache problem. I guess I need to exclude the EM OSM script from optimization.
    THANKS for your fast support !

    Thread Starter Palijn

    (@palijn)

    For the record, I inserted stonehenge-em-osm as a string not to be optimized by Litespeed, in the “Tuning” tab. It seems to work fine.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    The OSM scripts need to be loaded inline and in the set order. Any optimization plugin messes up the original sequence, so indeed you will need to exclude EM OSM from such plugins.

    All EM OSM scripts are already minified, so there is also no need to re-minify them ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Maps do not show anymore – JS error’ is closed to new replies.