This is the error that shows up.
Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://www.myowens.com/locations/
You can fix this by restricting the browser key in the Google Developers Console, and set it to http://www.myowens.com/*
Thread Starter
AMedia
(@abramarket)
Hi!
Unfortunately this isn’t solving the issues :\.
The back end issue with the “Start Point” is still present:
http://www.myowens.com/owenshealthcare/wp-content/uploads/2016/10/map-locator-screen.jpg
And the map is displaying a default map of the entire globe now, but it’s not showing any results:
http://www.myowens.com/locations/
It’s requiring an address to be manually entered before it will show any results. It did not have this issue before. The map used to auto-locate properly and have a defined area upon arriving at the page.
What else can we do to get this properly working again?
Thank you!
-
This reply was modified 9 years, 3 months ago by
AMedia. Reason: typo fix
How did you create the API keys? Did you follow the links ( “Create Browser key” button ) on this page, or did you do it manually? As in you went to the Google Developers Console page and created the keys?
If you created them yourself, then make sure you enabled all the API’s listed on this page. What happens when you follow the “Create Browser key” button is that all the required API’s are automatically enabled.
Thread Starter
AMedia
(@abramarket)
Hi,
Ok, I just started from scratch and created new keys from this page:
https://wpstorelocator.co/document/create-google-api-keys/
I then added the new keys to the WP Store Locator dashboard settings, and then saved the settings.
Unfortunately the same issues are still present:
http://www.myowens.com/locations/
http://www.myowens.com/owenshealthcare/wp-content/uploads/2016/10/map-locator-screen.jpg
We had this plugin installed and working from May until now with the prior API keys, so it’s just recently stopped working. And now we have replaced the API keys from scratch following the instructions, so the API keys don’t seem to be the issue? Are there any other options to troubleshoot this to solve the issues?
-
This reply was modified 9 years, 3 months ago by
AMedia.
Thread Starter
AMedia
(@abramarket)
Hi!
We ended up having to verify the domain in the Google Dashboard, and then this worked:
http://www.myowens.com/*
thank you so much!
-
This reply was modified 9 years, 3 months ago by
AMedia.
I wasn’t aware it could sometimes not work because the domain wasn’t verified. I will include that in the troubleshooting documentation.
Are you using any other services from the Google Console, other then the API keys? Because it says “You need to verify domain ownership to allow webhook notifications to be sent to your external domains.” Not sure that by itself has something to with Google Maps, but it still did solve the issue for you.
You verified the domain by Going here > Credentials > Domain verification, or did you do it somewhere else?
Thread Starter
AMedia
(@abramarket)
Hi!
Yes, that’s correct, we verified through Credentials > Domain verification.
This is the first time we have needed to verify to get a Google API to work for a Map, so we were not aware of that either. This plugin actually worked fine without doing so until recently, so we were debating as to whether or not it was possibly a new change on Google’s end of things?
The only other Google item tied into this account we are aware of is Security Keys for Recaptcha. Not from the Google Console, but thought we’d mention it in case?
Again, thank you so much for your help!