Lester Chan's Forums

Please login or register.

Login with username, password and session length
Pages: [1]   Go Down

Author Topic: IP logging Error/Bug  (Read 2106 times)

0 Members and 1 Guest are viewing this topic.

JonB

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
    • View Profile
IP logging Error/Bug
« on: 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: [Select]
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: 10,040
    • View Profile
    • WWW
Re: IP logging Error/Bug
« Reply #1 on: 12 April 2007, 14:02 »
yeap it is fixed in the next version.

To fixed it, replace:
Code: [Select]
gethostbyaddr With:
Code: [Select]
@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
Re: IP logging Error/Bug
« Reply #2 on: 12 April 2007, 14:49 »
Thanks.

I get a similar error with the polls. Will the same thing fix this?
Logged

Ttech

  • Official Support
  • Global Moderator
  • *****
  • Offline Offline
  • Posts: 4,294
    • View Profile
    • WWW
Re: IP logging Error/Bug
« Reply #3 on: 12 April 2007, 23:02 »
Yes it should :)
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
Re: IP logging Error/Bug
« Reply #4 on: 13 April 2007, 09:24 »
Thanks, worked a treat on both fronts! Keep up the good work!  ;D
Logged

Ttech

  • Official Support
  • Global Moderator
  • *****
  • Offline Offline
  • Posts: 4,294
    • View Profile
    • WWW
Re: IP logging Error/Bug
« Reply #5 on: 13 April 2007, 22:54 »
Glad it works... :)
Logged
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers
Pages: [1]   Go Up
« previous next »
 

Page created in 0.03 seconds with 24 queries.