Do I need to have https in order for the google api to work?

This topic contains 9 replies, has 3 voices, and was last updated by  Guust 5 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #461089

    Daniel Yamane
    Expired Member
    Post count: 4

    I am having problems setting up my geo-directory. This is the message that I see when I try to set the default location:

    Oops! Something went wrong.
    This page didn’t load Google Maps correctly. See the JavaScript console for technical details.

    Any suggestions would be very much appreciated.

    Thank you

    #461096

    Guust
    Moderator
    Post count: 29970

    HTTPS is not required, but is recommended because not everything will work optimally.
    See also https://wpgeodirectory.com/adding-a-ssl-certificate-to-your-website/

    The error you have is most likely due to not having activated the correct APIs.
    If you post your URL (and WP admin details) we can give more details [you can use the private reply option].
    See towards the end of this page: https://wpgeodirectory.com/docs/add-google-api-key/

    Thanks

    #461171

    Alex Rollin
    Moderator
    Post count: 27815

    To get things started you can change the Maps API to load Open Street Map.

    Then, once you have setup your Google billing account you can try again with Google.

    https://wpgeodirectory.com/docs-v2/integrations/google/#easy

    #461393

    Daniel Yamane
    Expired Member
    Post count: 4
    This reply has been marked as private.
    #461394

    Guust
    Moderator
    Post count: 29970

    This is the error:
    Google Maps JavaScript API error: RefererNotAllowedMapError
    https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error

    Please review this again, see point 11 on the page:
    https://wpgeodirectory.com/docs/add-google-api-key/

    Thanks

    #461402

    Daniel Yamane
    Expired Member
    Post count: 4
    This reply has been marked as private.
    #461406

    Guust
    Moderator
    Post count: 29970

    You restrict the key to your website, or you don’t restrict it at all.
    Changing keys or going secure will not help when the key is not authorized correctly for your site, unless you turn off all restrictions for the key.

    Thanks

    #461408

    Daniel Yamane
    Expired Member
    Post count: 4
    This reply has been marked as private.
    #461412

    Daniel Yamane
    Expired Member
    Post count: 4

    I got it to work. Thank you so much for patience and knowledge!!

    #461420

    Guust
    Moderator
    Post count: 29970

    Well done 🙂
    Feel free to open another topic if you need more help.

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket