Welcome to Geeklog, Anonymous Friday, April 19 2024 @ 05:00 am EDT

Geeklog Forums

Gallery 1.5 and Visitor Stats


Status: offline

dloepfe

Forum User
Newbie
Registered: 10/13/03
Posts: 7
Hi!
I'm running GL 1.3.11 and I installed the new gallery plugin 1.5. Everything worked fine but when I turn statics capture on in the visitor stats I get the following error:

Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /pathtogeeklog/plugins/stats/functions.inc on line 340

Warning: Cannot modify header information - headers already sent by (output started at /pathtogeeklog/plugins/stats/functions.inc:340) in /pathtogeeklog/dloepfe/main/lib-common.php(973) : eval()'d code on line 1

Does anybody have an idea how to solve this problem? I would appreciate that.
Thanx, Dominique
 Quote

Status: offline

asmaloney

Forum User
Full Member
Registered: 02/08/04
Posts: 214

You will get the first warning from the stats plugin [and, therefore the GUS plugin Smile] when the remote address cannot be resolved [i.e. your site is set up on 'localhost']. I will address this in the next version of GUS.

Do you have it set up to display errors and warnings on the page or in the log? If it's the former, then that's why the second warning comes up - the first warning sends headers that lib-common.php tries to send again. If your errors and warnings are going to the log, then I don't know what's going on.

- Andy
 Quote

Status: offline

asmaloney

Forum User
Full Member
Registered: 02/08/04
Posts: 214

Oh, in terms of solving your problem in the short term:

Find this in your functions.php file:

gethostbyaddr( $_SERVER['REMOTE_ADDR'] )

and change to this:

@gethostbyaddr( $_SERVER['REMOTE_ADDR'] )

That should make the warnings go away.

- Andy
 Quote

Status: offline

dloepfe

Forum User
Newbie
Registered: 10/13/03
Posts: 7
I have the errors and warning on top of my page. It would be nice, if you can address this in the next version some time.
But I try to solve the problem meanwhile with your solution.
Thank you for your quick response!
Dominique
 Quote

All times are EDT. The time is now 05:00 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content