Google Earth Module not working

linuxpimp - May 2, 2007 - 16:15

Hi all

I followed instructions in the REAME file, seemed pretty straight forward, however, i'm receiving the following errors:

When i click on the "generate Google Earth map" link in the admin Google Earth page i get:

Fatal error: Call to undefined function: geoip_open() in $MY_FULL_PATH/modules/google_earth/google_earth.module on line 143"

I also see many errors on the lines of:

"warning: readfile($site_path/files/google_earth/google_earth.kml) [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in $site_path/modules/google_earth/google_earth.module on line 52."

Both the the geoipcity.inc and GeoLiteCity.dat files are in my Drupal root dir.

Thanks

lp

hello :) i solved this by

MrMusashi - July 20, 2007 - 20:50

hello :)

i solved this by doing it this way:
download geoipregionvars.php and geoip.inc from maxmind found here: http://www.maxmind.com/download/geoip/api/php/

put them in the same folder as geocityip.inc

then you gotta be careful when you add the paths..
to get it to work i had to clear all cookies. i put all files in the files folder and made a subfolder for the data. im not sure its a good idea to be able to reach it from the web, but i just had to do it to get it to work.. then in geoip paths i entered:
files/geoip/GeoLiteCity.dat
and
files/geoip/geoipcity.inc
then i made the files/google_earth/google_earth.kml file so it existed.. i dunno if i had to do that, but i did just to be sure..

also you gotta enable the accesslog, or else the program got nuthn to pull data to make the map from :)

hth

MrM

Res ipsa loquitur, sed quid in infernos dicet?

I had a similar problem

pnDev - August 6, 2007 - 18:49

I had a similar problem using the geopip.dat.

Fixed problem by using GeoLiteCity.dat instead and note that I also followed MrM instructions above.

Works good now. Is there a way to embed the map into a page, or is it only viewable from Google Earth client ?

 
 

Drupal is a registered trademark of Dries Buytaert.