Google Maps stopped working with the update.

Home Forums Calendar Products Events Calendar PRO Google Maps stopped working with the update.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1614346
    thesydneylodge
    Participant

    Hi

    I updated the Event Calendar PRO and the Google Map stopped working.

    I recreated the API and used the new one, but still the same error.

    There seems to be a number of Private Support Tickets created on the same issue, but are no help to us as we can’t read them.
    Please provide info on how to fix this.

    Thank you.

    #1615502
    Victor
    Member

    Hi There!

    Thanks for getting in touch with us!

    Let me help you with that issue. Having a closer inspection to your site, I can see the error is showing up in the console due to embedding the Google Maps Javascript API multiple times. This could be due to your theme or another plugin adding the API as well.

    We have a guide on how to troubleshoot Google Maps issues > https://theeventscalendar.com/knowledgebase/troubleshooting-google-maps/. Under the Testing for Conflicts section, you will find a snippet I’d recommend you try and see if it resolves the issue.

    Just in case, the snippet is the one below and you should paste it into your theme’s functions.php file:

    https://gist.github.com/courane01/0067b1e1adcaa4a80569fa7021f07a27#file-dequeuegooglemapsapiforecp-php

    As a reference, let me share the following guide about best practices when implementing custom code snippets > https://theeventscalendar.com/knowledgebase/implementing-custom-code-snippets/

    Please try it out and let us know if it works for you.

    Thanks,
    Victor

    #1615850
    thesydneylodge
    Participant

    Hi Victor.

    Thank you for your instructions.

    I have copied and pasted the code to the theme’s functions.php.
    Now the map is totally grayed out, not even any error message appears.

    I have then tried removing the added code in hopes that the multiple APIs previously registered have been removed, and then re-registered my API from the API tab of Events setting.

    Now it is back to how it was, showing the Map with API Error.

    What can I try now? I need to fix this ASAP, as this site is to be presented on Monday our time (in Australia).

    Thanks again.

    #1616071
    Victor
    Member

    This reply is private.

    #1616724
    thesydneylodge
    Participant

    Hi Victor

    Thank you very much for your reply.

    It seems that everyone is updating the plugins to include Google Map API now.
    When I updated the Event Calendar PRO, I also updated some other plug-ins.
    Some of them now include the GMap API field, which I totally did not expect (those plug-ins do not usually engage any map at all).

    And it appears that since the API field on one of the plug-ins did not contain a Key, Google rejected the use of the GMap, even in the Event Calendar Map view.

    I did disable all plug ins except for the Event Canlendar & PRO, and switched my theme to 2017 before contacting you, and it is strange that the problem still persisted then… But anyway, glad this is now fixed.

    Thank you very much for your support.
    Have a great weekend.

    #1617459
    Victor
    Member

    Hi!

    Great to hear everything is working fine now! Thanks for following up to let us know 🙂

    I’ll close this thread now, but feel free to open a new topic if anything comes up and we’ll be happy to help.

    Best,
    Victor

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Google Maps stopped working with the update.’ is closed to new replies.