In console:
js?key=AIzaSyAHdJzVHAy-MiiNhcAKNJyIJ8V7CFnPcvc&ver=1.0.0:51 Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://moba-deutschland.de/event/oeffentliche-fahrtage/
See https://stackoverflow.com/questions/35288250/google-maps-javascript-api-referernotallowedmaperror
This is a classic API problem when you don’t have a billing account setup with your google map API Key.
Hello proximity2008,
I have a billing account setup and connected with my API key project which is also verified. Also why it works with some maps and a few don’t? I really don’t get it.
I’ve chosen embedded maps in Events Manager. Maybe I need to change something at the restrictions? I already tried the following restrictions for that API key:
Directions API
Places API
Maps JavaScript API
Geocoding API
Maps Embed API
Geolocation API
I also tested it with no URL restriction. Can you tell me what to do there?
Best regards,
saugertyp
did you already enabled Javascript API and set HTTP referrers ?
https://wp-events-plugin.com/documentation/google-maps/api-key/
Hello,
yes I did all that. Instead ofthe http referrers I used the IP address.
you might need to add your domain name as well to allow your site or EM to use the google map key.
Is it possible that Events Manager isn’t working properly due to a missing SSL-certificate on the website?
I already tested the API-Key with no http-/IP-restriction but it doesn’t work either.
Also I tried to put the * everywhere already, e. g.
*moba-deutschland.de/*/*
http://moba-deutschland.de/*
http://*moba-deutschland.de/*
http://moba-deutschland.de/*/*
It doesn’t matter how you write it, that error is happening every time like here: World Map Error Page
if you are using ssl in your site you need to used it as http referrers however noticed the map works on your site now?
Hello angelo,
well sadly it is still not working as you can see at this site: one problem URL. Sometimes it shows the map correctly, other times it shows the map as a world map. I really don’t get it.
Regards,
saugertyp
just to confirm, can I know which Google Map Type you are currently using?
I am using the embedded map with cityname and address.
Hello,
Are you suing DIVI? If you’re using DIVI as theme, DIVI have a separate documentation on how to add their Map API Keys.
Can you also make sure that you have also enabled the following API’s and added the Billing Info?
1, Make sure that you have also added your BILLING ADDRESS, This is because google maps requires billing information now.
2. Geocoding API
3. Geolocating API
4. Directions API
5. Distance API
6. Elevation API
After you have made sure that you have activated those, You might need to re-enter the addresses again on the Field for the map to show.
Hello,
I’ve found out something new on this issue.
I could fix nearly every address beside these 2 and I think something is wrong with those addresses, not the Plugin.
First: First Wrong Address
Second: Second Wrong Address
If I google those 2 addresses, it shows me no real address for the first wrong one. I don’t really know where exactly the event should be even though I use Google itself to look for it.
The second address is wrong even though it’s a real address. I don’t really know why it is not correctly displayed. It shows the correct address in the backend, but shows the world map in the frontend.
I think that error occurs due to an issue with the marker. The map doesn’t know where to place it, because anything is wrong with the address at the end when you save and publish it to the frontend.
At the backend it looks for the most accurate address, like if you type “Bahnhofstraße” in there, it shows any “Bahnhofstraße” in Germany. The more specific the data is, the better and more accurate it will be displayed.
In the frontend it’s like: there is an error in the address? I don’t know where it is so I just show the world map.
Maybe you as the plugin support know how to solve that issue? Is it possible to get a new function like you have the option to either type in the address OR use the lat / long coordinates to put the marker? The lat / long option should show the address too though.
Thanks a lot for the help!
Regards,
saugertyp
Oh btw, I am not using DIVI. I didn’t build the website and I don’t know the one who did it, but it’s definitaly not DIVI. It looks like some self-made stuff in combination with any standard theme.
you can also use WP Safe Mode plugin to help you trace the issue (same EM author) without actually deactivating plugins or theme.
https://ww.wp.xz.cn/plugins/wp-safe-mode/