Lester Chan's Forums
06 January 2009, 21:05 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Lester Chan’s WordPress Plugins December 2008 Update
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: IP logging Error/Bug  (Read 1685 times)
0 Members and 1 Guest are viewing this topic.
JonB
Newbie
*
Offline Offline

Posts: 7


View Profile
« Topic Start: 12 April 2007, 11:22 »

When you are going to ask a question, it would help if you can provide us the following information:

    * WordPress Version - 2.1.2
    * Default with altered header
    * www.driversvoice.co.uk
    * wp-Postratings 1.10

If the code cannot determine the IP address then it bung's out this error:

Code:
Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /home/driversv/public_html/blog/wp-content/plugins/postratings/postratings.php on line 674





If it can determine the IP though, no error!

Just thought I would let you know!
Logged
GaMerZ
lesterchan.net
Administrator
*****
Offline Offline

Posts: 8,205



View Profile WWW
« Reply #1: 12 April 2007, 14:02 »

yeap it is fixed in the next version.

To fixed it, replace:
Code:
gethostbyaddr
With:
Code:
@gethostbyaddr
Logged


++ lesterchan.net - Lester Chan's Website

I DO NOT provide support for any modifications of any plugin to meet your needs/requirements, unless it is a paid job and I have the time to do it due to the large number of request.
JonB
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #2: 12 April 2007, 14:49 »

Thanks.

I get a similar error with the polls. Will the same thing fix this?
Logged
Ttech
Official Support
Administrator
*****
Offline Offline

Posts: 4,294



View Profile WWW
« Reply #3: 12 April 2007, 23:02 »

Yes it should Smiley
Logged

Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers
JonB
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #4: 13 April 2007, 09:24 »

Thanks, worked a treat on both fronts! Keep up the good work!  Grin
Logged
Ttech
Official Support
Administrator
*****
Offline Offline

Posts: 4,294



View Profile WWW
« Reply #5: 13 April 2007, 22:54 »

Glad it works... Smiley
Logged

Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.144 seconds with 23 queries.