After enabling the module I get this error message on every page:

Notice: Undefined index: SERVER_ADDR in visitorinfo_boot() (line 237 of \sites\all\modules\visitorinfo\visitorinfo.module).

I can get the map and visitor list to display on a page but they do not seem to update and the map doesn't use the default starting location specified in the configuration.

Thanks for developing this module!

Comments

twooten’s picture

jacobf37, it appears that sometimes $_SERVER['SERVER_ADDR'] might not be set on certain servers. If you don't mind going into the visitorinfo.module file and changeing line 237 from

 $servers_ip = $_SERVER['SERVER_ADDR'];

to

$servers_ip = isset($_SERVER['SERVER_ADDR']);

then report if this clears the error for you, that would be great.

Thanks,
Tim

jacobf37’s picture

Thanks, that took care of the error message. The map still does not center on the coordinates specified in the configuration though.