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

hg96nl created an issue. See original summary.

hg96nl’s picture

Issue summary: View changes
hg96nl’s picture

Can someone help me?

rodrigoeg’s picture

Hi @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?

  • rodrigoeg committed d630251 on 7.x-1.x
    Issue #2788719: Can't add a node to content type 'Store location'
    
hg96nl’s picture

Hi,

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?

rodrigoeg’s picture

Could 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.

hg96nl’s picture

There 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?

rodrigoeg’s picture

I 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.

hg96nl’s picture

It is still not working with a clean installation here. I have send you some info via Facebook. Could you take a look please?

Thanks!

rodrigoeg’s picture

Updates 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.

rodrigoeg’s picture

Status: Active » Fixed

Closing since #2776133: Cleanup Javascript warnings was closed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.