Home › Forums › General Issues › Google Map API Key Required
Hello All and ACF Pro People
We are using ACF Pro and have developer license, we have integrated ACF Pro in our theme.
http://themeforest.net/item/realty-unique-real-estate-wordpress-theme/8583309
The problem is, google API key is required now, as we are using acf_form() to add properties from front end and back end, it is not allowing to add address, the address field is google map field.
Here is the error.
http://screencast.com/t/Cv9gRS8dUB
And here is the google announcement about this issue.
http://googlegeodevelopers.blogspot.com.au/2016/06/building-for-scale-updates-to-google.html
Looking forward to hear from you all.
Thanks
This has been reported a couple of times in other topics. The developer is aware of the problem. https://support.advancedcustomfields.com/forums/topic/google-maps-field-needs-setting-to-add-api-key/
Thank you john, i tried to search but did not find solution. I opened this because i wanted to notify the developer, i have fixed issue.
There is a fix for this in the new version of ACF Pro. You can get it by logging into your account and downloading from there. It is 5.4.0-beta3.
Is there documentation on the fix? Updating to the beta did not correct the API Key problems.
I posted what I know in the other thread https://support.advancedcustomfields.com/forums/topic/google-maps-field-needs-setting-to-add-api-key/
For now i think this is the only fix.
Please go to
https://developers.google.com/maps/documentation/javascript/get-api-key#get-an-api-key
– get a Google API Key
– make sure the Google Maps Api’s are enabled:
Google Maps Directions API
Google Maps Distance Matrix API
Google Maps Elevation API
Google Maps Geocoding API
Google Maps JavaScript API
Google Places API Web Service
Google Static Maps API
– Copy the generated API key
–Open the acf-input.min.js file located in the plugins folder of your WordPress-install (full path: /wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.min.js)
– find sensor=false&libraries=places and replace both instances with key=XXX&libraries=places (replace XXX with your own API key)
(Add key in all occurrences of “sensor=false&libraries=places” )
Thank you
I did the last two steps of roymahfooz’s solutions, this works fine.
But is there any ‘update proof’ solution? I added the api key in my functions.php (as suggested by ACF) but this did not fixed the backend problem.
The topic ‘Google Map API Key Required’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.