X
386855

Google maps not showing: uncaught type error

Hello,
until last year it was all ok but… here for example:
https://www.libriincantina.it/programma-libri-in-cantina/
maps didn’t show when i open an event. In the console there’s this error

eventon_gen_maps.js?ver=4.9.7:198 Uncaught TypeError: Cannot read properties of undefined (reading ‘AdvancedMarkerElement’)
at eventon_gen_maps.js?ver=4.9.7:198:59
at geocoder.js:10:120
at geocoder.js:4:298
at WPa (geocoder.js:3:59)
at yoa.f [as Gg] (geocoder.js:4:186)
at Object.c [as _irsclc] (common.js:117:81)
at GeocodeService.Search?5m2&1d45.85097&2d12.233958&9sit&r_url=https%3A%2F%2Fwww.libriincantina.it%2Fprogramma-libri-in-cantina%2F&callback=_xdc_._irsclc&key=AIzaSyBGjoeNbd9yDj9YW7IyQrhtC_0bDZZlD00&token=30276:1:28

Any suggestion?

BY: Claudio Pisu - May 7,2025 AT 9:46AM - 3 days ago
    • Artem May 7,2025 AT 10:16AM - Posted 3 weeks ago - #386861

      Hello,

      Here’s the issue:

      Google Maps JavaScript API error: RefererNotAllowedMapError

      https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error

      Your site URL to be authorized: https://www.libriincantina.it/events/carlotta-camilla-polly-e-larissa-campeol-allastoria-lounge-wines-store/

      Please try following https://elfsight.com/blog/how-to-get-google-maps-api-key-guide/ > Restrict your API key.

    • Claudio Pisu May 7,2025 AT 12:52PM - Posted 3 weeks ago - #386908

      Hi Artem,
      I added restrictions both to used APIs and the website… error is still there

    • Artem May 8,2025 AT 3:34AM - Posted 3 weeks ago - #386954

      Hmm strange but it’s still showing the same error:

      Could you send us a screenshot of your restrictions as a private message?

    • Artem May 8,2025 AT 1:23PM - Posted 3 weeks ago - #387025

      Ah sorry, I was referring to your Google Account > Maps API Settings > https://elfsight.com/wp-content/uploads/2021/12/how-to-get-google-maps-api-key-step6.png

      Could you check?

    • Claudio Pisu May 9,2025 AT 1:03AM - Posted 3 weeks ago - #387044

      Ops, excuse me

    • Artem May 9,2025 AT 3:45AM - Posted 3 weeks ago - #387055

      Instead of https://www.libriincantina.it/ please add https://www.libriincantina.it/*

      Also check “Restrizioni delle API” on the same page and try setting it as well.

    • Artem May 9,2025 AT 8:38AM - Posted 3 weeks ago - #387082

      Please remove https://www.libriincantina.it/ and only leave https://www.libriincantina.it/*.

    • Claudio Pisu May 12,2025 AT 12:36AM - Posted 2 weeks ago - #387184

      I did it but no change…

      Curiously Firefox and Chrome show different errors
      Here’s Chrome

    • Artem May 12,2025 AT 3:48AM - Posted 2 weeks ago - #387191

      Could you send us this screen again:

      https://helpdeskx.s3.amazonaws.com/wp-content/uploads/2025/05/09071500/screenshot-console.cloud_.google.com-2025.05.09-16_12_46.png

    • Artem May 13,2025 AT 4:56AM - Posted 2 weeks ago - #387330

      I waited 24hours to make sure that Google updated everything. However, no changes unfortunately.

      I created this test event:

      https://www.libriincantina.it/events/test/

      Could you try adding this URL before https://www.libriincantina.it/* for a test to make sure that it will work:

      https://www.libriincantina.it/events/test/

    • Artem May 14,2025 AT 4:35AM - Posted 2 weeks ago - #387462

      I am sorry that it takes so long to fix. Just not sure why there is no changes at all.

      Could you take a look at this guide:

      https://developers.google.com/maps/documentation/javascript/get-api-key#restrict_key

      Please remove https://www.libriincantina.it/* as well as https://www.libriincantina.it/events/test and then only add

      https://*.libriincantina.it/*

    • Claudio Pisu May 14,2025 AT 8:57AM - Posted 2 weeks ago - #387492

      I read practices (again). In the page then there’s the advice about priority of app restrictions…

      So I added only https://*.libriincantina.it/* without API restrictions. Still no changes. Same error

      I also disable WP super cache, just in case…

      No idea

    • Artem May 14,2025 AT 2:00PM - Posted 2 weeks ago - #387523

      I believe that it’s working now:

      Could you check?

    • Claudio Pisu May 28,2025 AT 7:27AM - Posted 3 days ago - #388814

      Here I am. Sorry, busy with work…

      Lucky you. I’m still seeing an empty space…
      I also updated plugin to last version

    • Artem May 28,2025 AT 2:33PM - Posted 3 days ago - #388862

      Could you open events to see that there is no map, then follow this guide and send us a screenshot of Console:

      https://docs.myeventon.com/documentations/debug-javascript-interactive-issues/

You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON