Closed (fixed)
Project:
geomap
Version:
7.x-3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Jun 2011 at 14:18 UTC
Updated:
24 Sep 2012 at 19:32 UTC
When I view a node with a Geomap block underneath I just get the warning message Enter your Google Map Key here even though I've already added my api key.
Comments
Comment #1
jjchinquistIt could happen if the Domain is different. Did you view the page from a different domain than what was entered on the Admin API page?
Comment #2
merzikain commentedI have the same problem.
The difference between the domain the key is for and the domain in the geomaps options is the lack of http://www. in the geomaps domain.
Comment #3
merzikain commentedLooks like the problem has something to do with you checking for $_SERVER['HTTP_HOST'] and it not matching the domain you are forcing people to enter on the admin form.
Maybe use str_replace(array('http://','www.'),'',$_SERVER['HTTP_HOST']); instead to make the value of HTTP_HOST match the data that will be entered in the admin form.
After I did that and added some Geo Microformat tags it worked fine.
Comment #4
jjchinquistHello merzikain, do you have a patch?
Comment #5
jjchinquistThe 6.x-2.1 version no longer requires google map keys. As a result, this issue becomes obsolete.
Comment #6
yktdan commentedCode should no longer ask for the code.
Comment #7
jjchinquistI am opening a new case http://drupal.org/node/1793666.