Google map keeps coming saying the key is incorrect

jonathan184

Joined: 2006-04-05
Posts: 4
Posted: Fri, 2006-04-07 00:57

- Please add '[module / theme name]' along with specific subject in the title of your topic
- What information is required when asking for help in the forums?
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.
- For development specific discussions, please use the forums in the Tech Zone

Gallery version (not just "2"):2.1
Module / Theme name & version:google maps
PHP version (e.g. 4.3.11):PHP 5
PHPInfo Link (see FAQ):
Webserver (e.g. Apache 1.3.33):IIS 6
Database (e.g. MySql 4.0.11):mysql 5
Activated toolkits (e.g. NetPbm, GD): GD
Operating system (e.g. Linux):Windows 2003
Browser (e.g. Firefox 1.0):

Google map keeps coming saying the key is incorrect
Tried to register for different keys and key getting the popup key is incorrect. could someone help me please.

 
jonathan184

Joined: 2006-04-05
Posts: 4
Posted: Fri, 2006-04-07 00:58

Google map keeps coming saying the key is incorrect
Tried to register for different keys and key getting the popup key is incorrect. could someone help me please.

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Fri, 2006-04-07 02:30

How about a URL to your site?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2006-04-09 16:12

I'm fixing this in the next release to a certain extend:

- prevent activation unless a valid key is present
- pre-fill values for servername and port
- provide link to the google website to register correct key (default)

=> This should get most people the key they need to get the site working, for more advanced key, the user guide will have more information.

In the mean time, if you wish to get help on this, you need to provide a link to the website so we can tell you what to fill :-)

See you !
-------------------------
The Termite :-)

 
jonathan184

Joined: 2006-04-05
Posts: 4
Posted: Tue, 2006-04-11 00:17

hey guys thanks for the response here is the link

http://www.nativelinks.ca/galleries/oldies/

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2006-04-11 00:52

Try this:

Thank you for signing up for a Google Maps API key. Your key is:
ABQIAAAAdrry9LB5TGsWS3k7A8TFpxRi4jlObjBU5TYBgqoYBolIDZvlDhRW7j1B57fzRX_fOkjxrhR2wuLLvw

This key is good for all URLs in this directory:
http://www.nativelinks.ca/

Here is an example web page to get you started on your way to mapping glory:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAdrry9LB5TGsWS3k7A8TFpxRi4jlObjBU5TYBgqoYBolIDZvlDhRW7j1B57fzRX_fOkjxrhR2wuLLvw" type="text/javascript"></script>
  </head>
  <body>
    <div id="map" style="width: 500px; height: 400px"></div>
    <script type="text/javascript">
    //<![CDATA[
    
    var map = new GMap(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.centerAndZoom(new GPoint(-122.1419, 37.4419), 4);
    
    //]]>
    </script>
  </body>
</html>
 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-11 01:05

I guess you can also create a profile with these info:

Name whatever
server name www.nativelinks.ca
Port 80
key ABQIAAAAdrry9LB5TGsWS3k7A8TFpxRi4jlObjBU5TYBgqoYBolIDZvlDhRW7j1B57fzRX_fOkjxrhR2wuLLvw

See you
-------------------------
The Termite :-)

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Tue, 2006-04-11 04:51

Hi All,

I also get the problem of keeping key error. I am using no-ip.org domain. And I get a dynamic Ip from my
ISP. Previously, I need to apply http:ip:85(my isp block 80 port) for the map key and it is work. But now
it fail. My domain is http://k-one.no-ip.org/gallery2. Thanks~

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2006-04-11 06:11

Have you tried obtaining a key from Google for http://k-one.no-ip.org

Does your URL always change from the above to
http://218.102.125.47:85

Maybe try that instead.

Termite,
A possible nice thing would be to place the output of
'servername' on the "General Settings' next to the
key profile entry section?

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Tue, 2006-04-11 07:03

Hi galmoid,

I have tried both. But still doesn't work. Thanks anyway~

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-11 11:19
galmoid wrote:
Termite,
A possible nice thing would be to place the output of
'servername' on the "General Settings' next to the
key profile entry section?

I've actually made a change in "f" version to get the fields pre-filed with the right values but I made a tiny mistake and it's only doing it for the 1st key created.

If you delete all your keys you'll see what I'm talking about. I think I need to get that each time you click on add entry ....

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-11 11:21

dogdog, you should try deleting all of your key and then upgrading to the newer version "f" to see if it helps.

It should actually populate the fields with what will be used by google after that :-)
-------------------------
The Termite :-)

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Tue, 2006-04-11 14:17
Termitenshort wrote:
I've actually made a change in "f" version to get the fields pre-filed...

Very nice.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2006-04-11 14:42

The next release will be oriented "very nice" :):):)

I hope to get something out with lot's of direction, help and pre-filling when possible :-)
-------------------------
The Termite :-)

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Wed, 2006-04-12 15:48

Hi Termitenshort,

Thanks for ur advice and I have upgraded to 0.5f version. It stop to say the key is incorrect but another
problem, when I click show google map or add the coordinate via the map, nothing show~ Just a blank page
show up~ U can try try my URL http://kone.album.hk. Thanks~

dogdog

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2006-04-12 20:00

I can't get to your website it's telling me that it times out :(
-------------------------
The Termite :-)

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Thu, 2006-04-13 14:55

Hi Termitenshort,

Last night I have closed the server. It is ok now~ Please have a look~ Thanks~

Dogdog

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2006-04-13 15:20

I see, I'm looking at it now then :-)
-------------------------
The Termite :-)

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Fri, 2006-04-14 19:25

Hi Termite,

Sorry for disturb you but have u found any problem on my web? No error has prompt but the map
still haven't showed. I have tried to use the map theme and it is work but not the Google map module.
Thanks~

Dogdog

 
dogdog

Joined: 2005-06-10
Posts: 37
Posted: Fri, 2006-04-14 20:29

Hi Termite,

I found the problem and it just relate to the error on line 243 of ShowMap.inc. Thanks anyway~

Dogdog

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2006-04-14 20:32

Well I had forgotten to answer but I found no problem with your gallery/module, in fact I can see your map fine (see screenshots)

Are you using a MAC ? If yes, there is some issue with the module on MAC and I'm working on getting them fixed :-)
-------------------------
The Termite :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2006-04-14 20:36

ah ... I see :-)
-------------------------
The Termite :-)