Google Maps error Cannot read property 'prototype': Exact same website on different URL's but only on one the map is displayed

Google Maps error Cannot read property 'prototype': Exact same website on different URL's but only on one the map is displayed



I have a website using Google Maps for displaying the location on a contact form. In my testlocation and on other production sites I do have the map displayed and no error message comes up. However, today I have published two websites and on both of the live sites, the google maps are not working. I do get an error in the console saying: cannot read property 'prototype' in the common.js file of Google Maps. Below one of both websites.



Google Maps working on the following URL:



http://doopsuiker.test-d-care.be/Contact



Google Maps not working on the following URL:



http://doopsuikerbeveren.be/Contact



Any help would be appreciated!





stackoverflow.com/help/how-to-ask
– Michael_B
Jun 25 '16 at 23:26





Have you tried changing the version as mentioned here
– mickadoo
Jun 25 '16 at 23:46





Thx for your reply... I just modified our code to retrieve version 3 but the result is still the same (view page source). Besides this, the two URL's above point to the same web application but only have distinct A-records. Furthermore, in general we have one web application with multiple databases and by means of the domainname we show different content. For all domains the gmap is working except for the ones I have set up yesterday. But they all share the same code base. One more thing, currently we have not used API key for using gmaps, but I thought this is not required. Any other ideas?
– Thomas Van Herpe
Jun 26 '16 at 8:50




2 Answers
2



Simply setting up an API-key and using it fixed the this particular problem.



your must activate google Mpas Javascript Api:



https://console.developers.google.com/apis/dashboard/



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)