WordPress.org

Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2759 closed defect (bug) (fixed)

Address is not a valid IPv4 or IPv6 address

Reported by: Denis-de-Bernardy Owned by:
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0.4
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

when moderating a comment from a cybercoffee, I got the following error:


Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /home/www/blogue-energie-eolienne.org/wp-includes/pluggable-functions.php on line 303

Warning: Cannot modify header information - headers already sent by (output started at /home/www/blogue-energie-eolienne.org/wp-includes/pluggable-functions.php:303) in /home/www/blogue-energie-eolienne.org/wp-admin/moderation.php on line 71

Attachments (1)

silence_gethostbyaddr.diff (1.1 KB) - added by markjaquith 15 years ago.
Patch for /trunk/

Download all attachments as: .zip

Change History (8)

#1 @markjaquith
15 years ago

What was the invalid IP address?

#2 @skeltoac
15 years ago

What is in your pluggable-functions.php on line 303?

#3 @Nazgul
15 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Without more info I'll have to close this as a worksforme.

If you have additional information, please feel free to reopen this ticket.

@markjaquith
15 years ago

Patch for /trunk/

#4 @markjaquith
15 years ago

  • Milestone set to 2.1
  • Resolution worksforme deleted
  • Status changed from closed to reopened
  • Version changed from 2.0.2 to 2.0.4

Maybe just silence the gethostbyaddr() calls.

#5 @Nazgul
15 years ago

  • Keywords has-patch added

Sounds like a good idea.

#6 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [4287]) Silence gethostbyaddr(). Props MarkJaquith. fixes #2759

#7 @ryan
15 years ago

(In [4288]) Silence gethostbyaddr(). Props MarkJaquith. fixes #2759

Note: See TracTickets for help on using tickets.