WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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 8 years ago.
Patch for /trunk/

Download all attachments as: .zip

Change History (8)

comment:1 markjaquith8 years ago

What was the invalid IP address?

comment:2 skeltoac8 years ago

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

comment:3 Nazgul8 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.

markjaquith8 years ago

Patch for /trunk/

comment:4 markjaquith8 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.

comment:5 Nazgul8 years ago

  • Keywords has-patch added

Sounds like a good idea.

comment:6 ryan8 years ago

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

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

comment:7 ryan8 years ago

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

Note: See TracTickets for help on using tickets.