• Resolved sbservices

    (@sbservices)


    I am unable to add a new location to my map, unless I use the GPS co-ordinates in the address.

    When I try to search for an address, I get an error Unable to load page – is this your website and a button for OK. Then you click OK and nothing.

    Then on the right side, the map displays this error “This API project is not authorized to use this API”

    Yet the front end continues to work as normal.

    I tried creating a new API key in case it had expired, as I haven’t logged on in a while.

    I’ve checked my billing and everything is ok there.

    I’ve also made sure there are no restrictions on the API for testing.

    But still the error persists. I have the Pro version and the Google API add on.

    I am unable to add new businesses to my map.

    Any help?

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DylanAuty

    (@dylanauty)

    Hi @sbservices,

    Thank you for getting in touch, we do appreciate your time.

    Based on the information you’ve provided it sounds like you have a referrer restriction in place on your API key which is specifically set up for the frontend of the website, instead of the entire website. This means instead of using a wildcard in your restriction (*) you may have pasted the full URL for the frontend.

    We have some documentation explaining how to correctly set up the referrer restriction so that it covers all usage across the site here: https://docs.wpgmaps.com/protecting-your-google-maps-api-key-from-unauthorized-use-setting-up-website-restrictions-http-referrers

    For your site, these would be set up as:

    *conscious-kitchens.com/*
    *.conscious-kitchens.com/*

    The * symbols here allow the URL to change, to any page within your site, while still allowing the referrer to validate as expected.

    Thread Starter sbservices

    (@sbservices)

    Hi, thanks for responding. I actually don’t have any restrictions in place at all.

    https://ibb.co/vXKFC3B

    • This reply was modified 2 months ago by sbservices.
    • This reply was modified 2 months ago by sbservices.
    Thread Starter sbservices

    (@sbservices)

    Here is what it looks like in the back office

    https://ibb.co/nfvjJ1j

    Plugin Author DylanAuty

    (@dylanauty)

    Hi @sbservices,

    Thank you for confirming, that is quite strange, but it is possible you are missing one of our required services.

    We require the following services:

    • Google Maps JavaScript API
    • Google Maps Geocoding API
    • Google Maps Places API
    • Google Maps Directions API

    Looking at your site, I believe you may be missing the Places or Geocoding services as both of these are used during the creation of markers within the map.

    Could you confirm that these are all enabled?

    Thread Starter sbservices

    (@sbservices)

    Thank you. I enabled these 2 and it is now functioning normally. ??

    • Google Maps Places API
    • Google Maps Directions API
    Plugin Author DylanAuty

    (@dylanauty)

    Fantastic, really glad to hear that helped! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.