Share » Forums » Developer » gmaplocation extension GoogleMaps Not...

gmaplocation extension GoogleMaps Not recognizing my Key

gmaplocation extension GoogleMaps Not recognizing my Key

Saturday 22 August 2009 5:41:05 am - 4 replies

Modified on Sunday 23 August 2009 3:57:05 am by Pierre SCALFATI

Author Message

André R.

Saturday 22 August 2009 5:57:49 am

Rember that you have to create one key pr domain, it seesm to work withouth key locally, so check your key.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pierre SCALFATI

Saturday 22 August 2009 6:34:55 am

Hi André,

Yes I created just one key for my unique domain name.

First thing I noticed is that in my page source code, the ezpublish code remains as it is (it's not interpreted), I have the following line in my code :

Here is what is displayed in my source code:

<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key={ezini('SiteSettings','GMapsKey','site.ini')}" type="text/javascript"></script>

I tried to replace, typing : key="my_google_maps_key" (where my "my_google_maps_key" is the key that copy/paste from google api key generator for mydomain.com...

I noticed also something curious: the Localize button in the Ezpublish Admin Console doesn't work.

André R.

Saturday 22 August 2009 8:54:27 am

> the ezpublish code remains as it is (it's not interpreted)

It's inside a {literal} block, thats why.

Try the updated ezgmapslocation, it shouldn't have any of these issues and have some new features as well:
http://projects.ez.no/ezgmaplocation

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pierre SCALFATI

Saturday 22 August 2009 8:54:48 am

Hello,

Believe it or not but what happened to me is really laughing. I must admit that I had no luck in the Google Key which was given to me by Google MAPS. In this code there's the letters "SEX' and as my routeur firewall is configured to block such words I had no display when I was adding the Key directly in my code !!!

My web site has nothing to deal with SEX, I must precise, but the Google Map algorithm which gave me the key was not inspired to put such letters in my key. I spent 1 day trying to solve this stupid problem.

For your information, what made me find the solution is that I typed directly the javascript generated in my Browser and I was astonished to get the reply, this time, from my Firewall, saying : "BLOCKED".

That's it.

So, if such problem happens, be sure before that it's not a sex affair :-)
Thank you Mister Google MAPS.

Best Regards.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu