Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I have installed this module on a clean Drupal 7 installation. I can't add a store location. When I press the save button, I got a blanc screen.
And my API key is not working, I got one from Google and paste it in the 'Google Maps API Key' field. But I got still a Javascript error:
Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messag...
http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places
Line 34
Is this the reason for the blanc screen after saving the node?
Thanks.
Comments
Comment #2
hg96nl CreditAttribution: hg96nl commentedComment #3
hg96nl CreditAttribution: hg96nl commentedCan someone help me?
Comment #4
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedHi @hg96nl,
Try to check if you have Entity API module installed (https://www.drupal.org/project/entity). Geocoder module depends on Entity API, but it is not declared as a dependency in latest release (on dev branch of Geocoder it was already fixed #2660360: Fatal error after upgrading to 7.x-1.3).
The 'Google Maps API Key' field in Geocoder settings should not interfere in map. A Google API key warning is currently being fixed by #2776133: Cleanup Javascript warnings, but the map should work even without this fix. Are you seeing this Google API key error with version 7.x-1.x-dev or 7.x-1.1 of this module?
Comment #6
hg96nl CreditAttribution: hg96nl commentedHi,
Thanks for you comment.
I have already enabled the Entity API, but it is still not working. I use the 7.x-1.x-dev module. I tried the Javascript patch but still not working..
Any ideas?
Comment #7
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedCould you please check PHP logs and also Drupal watchdog logs? Maybe there is something there that could help us to find the root cause of this issue.
Comment #8
hg96nl CreditAttribution: hg96nl commentedThere is nothing in the logs, I've already looked there. I will try a clean install now. Is an API key required for showing the Google Maps card?
Comment #9
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedI have done a clean installation without Google API key and the module maps works fine. I am not sure about the limitations (number of requests, etc.) or if Google will always require an API key in the future.
Comment #10
hg96nl CreditAttribution: hg96nl commentedIt is still not working with a clean installation here. I have send you some info via Facebook. Could you take a look please?
Thanks!
Comment #11
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedUpdates about the API key issue:
It seems Google have changed some policies a while ago and now they are not accepting requests without an API key: http://googlegeodevelopers.blogspot.com.br/2016/06/building-for-scale-up...
I was testing in localhost domain, which works fine.
The patch #2776133: Cleanup Javascript warnings is still in progress, but it should address this problem.
Comment #12
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedClosing since #2776133: Cleanup Javascript warnings was closed