I changed the domain for an existing Drupal 6 installation. Among many other modules, I have Gallery2 and Gmaps. The site displays map of images and nodes.
Previously, before the domain change, I used one Google Maps key for both GMaps and Gallery2 Google Maps, and all maps rendered fine through the embedded Gallery pages (I think).
When I switched the domain, I made all the necessary adjustments to the Gallery2 and Drupal configuration, and everything works fine now, with one exception - the Gallery2 embedded Google map only works when I am logged in. The anonymous user gets this:

The Google Maps API server rejected your request. This could be because the API key used on this site was registered for a different web site.

and then

You do not have a profile setup for this website to use the Google Map. Review your settings in the Admin Panel or check the Wiki.

I did change the profile for the Gallery2 GMap plugin, and the URL in the profile is http://baycolonyrailtrail.org. The key is the same as in the Drupal GMap configuration (and the Drupal GMaps work fine for anonymous users).

How is it possible that an authenticated user sees the map, while an anonymous user sees the Google error? I must have missed a configuration change, but I cannot explain this behavior.
Again, I am not 100% certain that the Gallery2 image map worked for anonymous users before I changed the domain. Regardless, I'd appreciate a hint where I could start looking.

http://baycolonyrailtrail.org

Comments

cdonner’s picture

Never mind, it seemed that getting another Google Maps API key resolved this. All maps now work fine.

paku’s picture

I have got the some problem ... New key is not working as well, I mean working for logged in users but not for anon...

Any ideas ?

paku’s picture

Have found the solution (workaround) but issue is still not solved.

Symptom: Only registered users are able to view google map.

Solution: Disable short urls for google map module.

mikyatope’s picture

I'm facing the same problem, were I must disable the short urls ? I can't find the option , thx!