• Resolved willpom

    (@willpom)


    I have happily been showing event maps on the event page for several year so thanks for a great plugin.

    Though after recent updates to Leaflet and/or Extensions for the routes no longer display on the map.

    This only happens when a map is displayed through the Events Manager plugins template; it still works on a new post or page.

    I can’t for the life of me figure what has broken (I’m a grassroots event organiser who has built my own site, I’m not a developer).

    This is the error I get in Firefox console

    TypeError: can't access property "rotateControl", map is undefined

        <anonymous> https://pedalution.co.uk/events/pauline-porter-populaire-600/:1736

        v https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1

        init https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1

        EventListener.handleEvent* https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1

        <anonymous> https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1
    construct-leaflet-map.min.js:1:126

    TypeError: can't access property "addControl", map is undefined

        <anonymous> https://pedalution.co.uk/events/pauline-porter-populaire-600/:1741

        v https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1

        init https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1

        EventListener.handleEvent* https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1

        <anonymous> https://pedalution.co.uk/wp-content/plugins/leaflet-map/scripts/construct-leaflet-map.min.js?ver=3.4.4:1
    construct-leaflet-map.min.js:1:126
    • This topic was modified 1 month, 2 weeks ago by Jan Dembowski.
    • This topic was modified 1 month, 2 weeks ago by Jan Dembowski. Reason: Formatting

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author hupe13

    (@hupe13)

    How is your shortcode for the map and for elevation?

    There were a lot of changes; it wasn’t just my plugin that got an update. Does it work, if you rollback to the previous version?

    Plugin Author hupe13

    (@hupe13)

    Did you change anything? I see, that you are using the Compliance plugin. The same error occured, if I tested my settings for the Compliance plugin. I changed the switch for “Openstreetmap” off and on, then my test page works again.

    But today I get no banner from Compliance and no map if I open your page with a “fresh” browser. Tested with Firefox and Chrome.

    Thread Starter willpom

    (@willpom)

    Thanks @hupe13 for fresh eyes. It was Complianz blocking it.

    I got it working on non event pages as it was always in draft preview so Complianz hadn’t kicked in.

    Plugin Author hupe13

    (@hupe13)

    If something isn’t working and I don’t think it’s my fault, it’s usually a GDPR plugin or a caching plugin.

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

You must be logged in to reply to this topic.