Active
Project:
Visitor Info
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 04:47 UTC
Updated:
8 Feb 2012 at 17:57 UTC
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
Comment #1
twooten commentedjacobf37, 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
to
then report if this clears the error for you, that would be great.
Thanks,
Tim
Comment #2
jacobf37 commentedThanks, that took care of the error message. The map still does not center on the coordinates specified in the configuration though.