Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #682827

    New Thread as requested (originally posted on Heathcliffes thread titled “Google Map API problem? Broken again with WP4.6”)

    Running WP 4.6 and Theme 3.7.1

    Map shows for 1 second then error “Oops! Something went wrong.
    This page didn’t load Google Maps correctly. See the JavaScript console for technical details.”

    When I look in console I get the following:-

    Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error
    Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

    I have followed the instructions and added the Google Maps API in “google Services” but still get this error.

    I have done this several times and followed the instructions on how to create API –

    I have set the restriction on the key to *.casadelaplaya.co.uk/*
    I have entered the API Key in Google Services/Google Maps API Key and saved and it tells me it has saved it.

    However, when I look at the page http://www.casadelaplaya.co.uk (the map is in the footer) it shows for a second then comes up with the “Oops! Something went wrong” error.

    I look at the source code of the Webpage and only see one instance of the key mentioned as follows:-

    <script type=’text/javascript’>
    /* <![CDATA[ */
    var avia_framework_globals = avia_framework_globals || {};
    avia_framework_globals.gmap_api = ‘AIzaSyBDYSFZcESVFHlFWJfZPeak4wk8MA84g2M’;
    /* ]]> */
    </script>

    Please can you help, this is driving me crazy.

    Any help appreciated.

    Thanks
    Andy

    #683355

    Hey andybarn,

    We are happy to help you. Let us take a closer look at the backend Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Vinay

    #683596

    Hi Vinay

    Here you go, details in private content area.

    You have permission to deactivate any plugins

    Thanks
    Andy

    #684463

    Hi,

    I have created a test API key and added it in Enfold > Google Services > API Key and everything works great!

    Please delete all old API key’s and follow the steps as described in the documentation and it should work fine for you.

    Google services like the map feature is now constrained to work with an API key. It is easy to get the Google API key please refer to this link

    If you already created an API key please delete all old API key’s from google account to avoid a conflict.

    While setting up the API key make sure to add * before and after the domain name without http, www or https in the URL.

    Example *.kriesi.at/*

    Add your API key in the theme options Enfold > Google Services

    Best regards,
    Vinay

    #684523

    Hi
    Thanks for that.

    I deleted all API keys and started again.

    One thing I discovered was that if your site URL is without the www. i.e. http://casadelaplaya.co.uk then I had to use the key restriction of casadelaplaya.co.uk/* as the auth referer.

    If the website was with the www. i.e. http://www.casadelaplaya.co.uk then I had to to use the key restriction of *.casadelaplaya.co.uk/* as the auth referer.

    For me, *.casadelaplaya.co.uk/* did not work if my URL was http://casadelaplaya.co.uk , it had to be casadelaplaya.co.uk/* to work.

    Hope this helps someone.

    Andy

    #684525

    Hi
    Another thing I have found is that if I use the Google Maps Widget in the footer, it causes the Google Maps on the Contact page to come up with the “Oops! Something went wrong” error.

    As soon as I move the widget to the “Inactive Widgets” the google map on the Contact Page starts working again.

    I think this is a bug?

    Kind regards
    Andy

    #684551

    @andybarn Thanks for the heads up on your observation. I will look into this on mt site that is not working. (at the moment, I have just use a key without defining any URL). I’m refraining from updating all my other sites until Kriesi support can say it is fixed or have clear instructions for making it work, but will try this and report back on Monday.

    #685893

    Hi,

    I upgraded to the latest WP 4.6.1 and latest Enfold 3.8 and my API key works, hurrah! I actually defined both mywebsite/* and *.mywebsite/* (my site doesn’t have www. at the beginning)

    Thanks for fixing it.

    H

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Google Map API not loading Map’ is closed to new replies.