Title: ReferenceError: L is not defined
Last modified: August 13, 2021

---

# ReferenceError: L is not defined

 *  [sybilrondeau](https://wordpress.org/support/users/sybilrondeau/)
 * (@sybilrondeau)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-l-is-not-defined/)
 * Hi
 * I suddenly have the referenceError “L is not defined” using the plugin with Elementor
   Pro. It works when I am connected to the backend, but doesn’t work otherwise.
 * Can you help ?
    Regards. Sybil.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-l-is-not-defined%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-l-is-not-defined/#post-14768747)
 * This is due to the properties of Leaflet. It needs an event to display pages 
   right. This event does not occur, if you use Elementor. You have the Pro version.
   
   See my answers and questions [here](https://wordpress.org/support/topic/problem-with-the-new-upgrade-version/#post-14682931)
   and [here](https://wordpress.org/support/topic/disable-interpret-shortcode/).
 *  Thread Starter [sybilrondeau](https://wordpress.org/support/users/sybilrondeau/)
 * (@sybilrondeau)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-l-is-not-defined/#post-14768783)
 * Hi,
 * I’ve been using Leaflet with Elementor for a year and it is the first issue I
   have, it was working perfectly fine with Elementor.
 * I found a solution : it was the “report JS script” with Wp Rocket that was suddenly
   blocking the script. (I wonder why because it was fine before).
 * Thank you for your help.
    Regards.
 *  Plugin Contributor [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-l-is-not-defined/#post-14768860)
 * Okay, then I am wrong. But the same error message occurred when I tested Elementor(
   without Pro) for this [problem](https://wordpress.org/support/topic/problem-with-the-new-upgrade-version/).
   I don’t use any other plugins in my testing environment.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ReferenceError: L is not defined’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-map/assets/icon-256x256.png?rev=1693083)
 * [Leaflet Map](https://wordpress.org/plugins/leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-map/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/referenceerror-l-is-not-defined/#post-14768860)
 * Status: not resolved