Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.5.18, cMap, google map, template
- This topic has 39 replies, 4 voices, and was last updated 6 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
07/04/2016 at 2:50 am #381399
Raymond Dunegan
ParticipantOk, I figged it out.
Get a google server key
make sure it is associated with your website in the google console.
ENABLE the javascript api as well as the geocode api, do this in the google console.
paste this into /wp-content/themes/yourtheme/header.php before the /head> tag
<script async defer src=”https://maps.googleapis.com/maps/api/js?key=YOURSERVERKEY&callback=initMap”
type=”text/javascript”></script>REFRESH AND IT WORKS.
YOU CAN take a short cut by opening developer tools java console and click on the dev.google link at the error, scroll down and you can click on the link to get your snippet with your api, if logged in, just make sure itls the right one.
07/04/2016 at 9:26 am #381439Steven Zahm
Keymaster@ Brett
re: I’m no coding wizz so if its a simple update I’d be happy to test – it’ll be sometime before my site is live anyhow
Great! I just sent it. Let me know if you do not receive it.
07/04/2016 at 9:34 am #381440Steven Zahm
Keymaster@ Raymond
re: Are you saying that the map showing then throwing keyerror is a bug needing fixed?
No, this is definitely not a bug. Google is locking down their maps API. For years it was available to use without key. As of June 22 all new sites are required to use a key. By Oct 12 all old sites will require a key. I suspect this is step one in a longer term plan to start charging for access to this API. Time will tell.
I kind of suspected this day was coming after noticing this warning in the browser console which is why I started adding support for the browser and server keys. I had fully implemented the server key completely, just not the browser key. The beta I just sent has the browser key fully implemented so it should resolve this issue.
re: paste this into /wp-content/themes/yourtheme/header.php before the /head> tag…
I strongly recommend undoing this change.
I just sent you a beta copy of the next release of Connections which has fully implemented the browser and server keys for the Google Maps API.
You can set them on the Connections : Settings admin page under the Advanced tab. With the beta installed and the keys added, you should not longer receive the Google Maps error.
Let me know.
07/04/2016 at 11:20 am #381456ayomide
Guestcan i get a copy of the code and instructions on how to implement it
07/04/2016 at 11:21 am #381457ayomide
GuestThis reply has been marked as private.07/04/2016 at 11:47 am #381458Raymond Dunegan
ParticipantBeta didn’t work without the head tag
-
This reply was modified 6 years, 7 months ago by
Raymond Dunegan.
07/04/2016 at 5:13 pm #381477Steven Zahm
Keymaster@ Raymond
re: Beta didn’t work without the head tag
The reason seems to be that the Google Map API was inadvertently disabled. Perhap during your testing??? Navigate to the Connections : Settings admin page and click the Advanced tab. Scroll to the bottom and enable the Google Maps API option in the Compatibility section. After you do, remove the header tag.
07/04/2016 at 5:21 pm #381478Steven Zahm
Keymaster@ ayomide
Sure thing. I’m send it now.
Here’s the link to the instructions on how to get a key.
https://developers.google.com/maps/documentation/javascript/get-api-key
When in the Google Console. You’ll have to enable the Maps JavaScript API and the Maps Geocoding API and maybe the Maps Geolocation API (not certain about the last yet).
Make sure to create both a server key and a browser key and enter both of the keys on the Connections : Settings admin page under the Advanced tab.
Here’s a little YouTube video I found that should help if you watch it. It’s for the Places API, but the process will be the same.
Hope that helps!
07/04/2016 at 5:34 pm #381490Brett Stephenson
ParticipantRe:Great! I just sent it. Let me know if you do not receive it.
Hi Steve
nothing arrived – I checked spam box and not there either
I did get the other email you sent “RE forum – create searchable field” though
07/04/2016 at 6:55 pm #381492Steven Zahm
Keymaster@ Brett
Sorry to hear you did not receive it perhaps I mistyped the email address or something… I just sent it again.
-
This reply was modified 6 years, 7 months ago by
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.