Home › Forums › Calendar Products › Events Calendar PRO › Adress shows incorrect in Google Maps – API seams to be loaded twice
- This topic has 8 replies, 2 voices, and was last updated 5 years, 6 months ago by thomas furter.
-
AuthorPosts
-
September 20, 2018 at 12:55 am #1626117thomas furterParticipant
Hi
I do have the problem that the embeded google maps doesn’t show the right adress.
http://www.apukuna.org/event/vollmond-despacho/2018-09-24/Google maps told me that they found the google maps API is called multiple times. I went through the console then and attach you the images. On the second attachment you find the mistake in the js. I just have no Idea what that would need to be solfed. Could you help me on that?
Thanks a lot.
Best regards
ThomasSeptember 20, 2018 at 12:56 am #1626119thomas furterParticipantHere is the first Part of the console.
September 21, 2018 at 6:26 am #1627277VictorKeymasterHi Thomas!
Thanks for getting in touch with us!
Let me help you troubleshoot that problem.
The Google Maps API being called multiple times may be due to your theme or another plugin also embedding the script. I’d suggest you try adding the code snippet you will find under the Testing for Conflicts section in https://theeventscalendar.com/knowledgebase/troubleshooting-google-maps/#conflicts. Below is the code I’m referring to:
https://gist.github.com/courane01/0067b1e1adcaa4a80569fa7021f07a27
Here’s a guide about best practices for implementing custom code snippets > https://theeventscalendar.com/knowledgebase/implementing-custom-code-snippets/
Please let me know if that solves the issue.
Best,
VictorSeptember 21, 2018 at 8:12 am #1627417thomas furterParticipantHi Victor
Thanks for your reply. I did as you mentioned. There is even this very new plugin. I activated it but there is no change. What makes me curious about it is that all the other adresses work perfectely.
I hope you can help me further.
I also checked back with google. The thing is not on theyr side.Also there is no other plugin on my page that uses Google maps api.
Best Thomas
September 24, 2018 at 6:37 am #1629026VictorKeymasterHi Thomas,
Thanks for testing the snippet.
It seems like there could be a conflict with your theme, another plugin or even some custom code. To make sure we are not dealing with a conflict, please go through the steps outlined in our Testing for Conflicts guide and see if you can reproduce the same issue under default conditions.
Please let us know how that goes.
Thanks,
VictorSeptember 25, 2018 at 1:17 am #1629776thomas furterParticipantHi Victor
Before I started to find the conflict I figureed that the map in the specific Location disapeard totaly. I followed then the three staps in the “Testing-for-conflicts”-page on a staging page I set up first.
I switched to the default theme: no change
I deactivated the plugins: no change
The only plugin active was The Event Calendar and The Event Calendar Pro.
I switched to the default theme and deactevated the plugins: no change. The missing map kept missing and all the other locations showed the correct map.
I attach you the screenshots.Is that right that it means it is not a plugin conflict nor is it a theme conflict? What could it be then?
Best
ThomasSeptember 25, 2018 at 6:25 am #1629940VictorKeymasterHi Thomas,
Thanks for making those tests and making sure it’s not a conflict with another plugin or theme.
Having a closer inspection to your site I can see that in addition to the Google Maps API being embedded multiple times, there is an error coming from the Google “Geocoding Service: This API project is not authorized to use this API…” This means something is not correctly configured for your Google Maps API Key.
Could you please navigate to your Google API console and make sure you have both, the Maps Javascript API and the Geocoding API enabled? See the following screenshot as a reference:
In addition to that, try also using the code snippet I previously shared with you to prevent the API being embedded multiple times.
Let me know how it goes.
Thanks,
VictorSeptember 27, 2018 at 5:45 am #1632010thomas furterParticipantThanks Victor
This was it now. It was the missing Activation of the Geotaging API. It wasn’t even Google that could tell me about.
Thanks a million. It is all working now.
I included the Plagin you gave me about the code snippet. This was easier for me than programming.All the best
ThomasSeptember 27, 2018 at 8:34 pm #1632844VictorKeymasterHi Thomas!
Glad to be of help with this 🙂
I’ll close this thread now, but feel free to open a new topic if anything comes up.
Good luck with your project!
Victor -
AuthorPosts
- The topic ‘Adress shows incorrect in Google Maps – API seams to be loaded twice’ is closed to new replies.