• My website, nidahas.com, runs WordPress 1.5.

    I have a problem with the comments form, which spits garbage when the submit button is pressed. The comments are still posted, but the page does not load.

    I’ve tried fiddling with the code, but can’t see anything wrong. Besides, it works fine in my local server.

    This is the error message I get:

    Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in
    /nfsn/content/nidahas/htdocs/wp-includes/functions-post.php on line 476

    Warning: Cannot modify header information – headers already sent by
    (output started at
    /nfsn/content/nidahas/htdocs/wp-includes/functions-post.php:476) in
    /nfsn/content/nidahas/htdocs/wp-comments-post.php on line 44

    [Followed by the same error (cannot modify header…) few more times]

    What’s going wrong here? Looks like some IP referral stuff isn’t working.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Which spam plugins are you using ?

    Thread Starter freewanderer

    (@freewanderer)

    I don’t have any spam plugins. It’s the default installation.

    My web host mentioned that it might be a case of proxy address _and_ the the local IP both being queried in gethostbyaddr() or something.

    Thread Starter freewanderer

    (@freewanderer)

    My webhost suggests changing gethostbyaddr() to @gethostbyaddr().

    Where should I change this? I can’t find it being directly called by wp-includes/comment-functions.php

    Thread Starter freewanderer

    (@freewanderer)

    OK. Found it: wp-includes/functions-post.php

    Got it working. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments form spitting garbage when submitted’ is closed to new replies.