Skip to Content Skip to Menu

Joogle - Problems with Google API key

  • magickz
  • magickz
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
17 years 8 months ago #31018 by magickz
Joogle - Problems with Google API key was created by magickz
Hello.

I installed the Joogle Component as described in the "read_me_first.txt".

Now, when I open my page with the parameter "index.php?option=com_joogle" I get the following error message:

... The Google Maps API key used on this website was registered for a different website...


I tried again and again to get a new API key which works - without success.

Does anybody have an idea? Thanks in advance.

Post edited by: magickz, at: 2007/02/13 14:11

Please Log in or Create an account to join the conversation.

17 years 8 months ago #31026 by singlephile
Replied by singlephile on topic Re:Joogle - Problems with Google API key
are you sure you have the format correct?

yahookey:googlekey

Did you register your site using just the root (i.e. just www.mysite.com )?

when you open the page is it www.mysite.com/index.php?option=com_joogle or are you testing it locally like //localhost/index.php?option=com_joogle? the later of these two won't work if you registered www.mysite.com

singlephile

singlephile
bringing you joogle one version at a time.

Please Log in or Create an account to join the conversation.

  • magickz
  • magickz
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
17 years 8 months ago #31032 by magickz
Replied by magickz on topic Re:Joogle - Problems with Google API key
I am using it on a domain in the net ;)

First I replaced the google key and the yahoo application id in the xml file that I found on the server. But had no success.

After a second look in the database table jos_components I found the same placeholders in the joogle params field. I also replaced these...

Then I had a look at the source of the page that is shown in my browser and found that no google key was defined as a parameter in the javascript line. In joogle.php I inserted an echo behind line 30 to see what happens:

[code:1]
29: $yahooKey = $data[0];
30: $googleKey = $data[1];
31: echo "yahoo - " . $yahooKey;
32: echo "google - " . $googleKey;
[/code:1]

The output was "yahoo - google - "

Now the map is displayed, after I replaced the values in lines 29 and 30 against the real key strings:

[code:1]
29: $yahooKey = "dfjkghjdghjdfks4fdjh";
30: $googleKey = "fdsjkfjkd45435fjdfjhdjfhdjshfjdshfjdfj";
[/code:1]

But I still get an error message; and the location of the user "country = Austria, city = Wien" is shown somewhere at the Westcoast of Africa. The error message in the frontend is now:

Warning: Invalid argument supplied for foreach() in /var/www/.........../components/com_joogle/joogle.php on line 55

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum