Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:07 pm EST
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
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
5
9
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 ] 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
9
10
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
10
7
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
But I try to solve the problem meanwhile with your solution.
Thank you for your quick response!
Dominique
7
6
Quote
All times are EST. The time is now 10:07 pm.
- 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