WordPress.org

Ready to get started?Download WordPress

Forums

Bad Behavior
PHP Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address (5 posts)

  1. Ovidiu
    Member
    Posted 2 years ago #

    found this in my log files, any hints what that is about and what I can do about it?

    2011/08/09 13:04:06 [error] 3504#0: *40871 FastCGI sent in stderr: "PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175
    PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175
    PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175
    PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175
    PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175" while reading upstream, client: 62.156.25.77, server: knightsenglish.com, request: "GET /wp-admin/tools.php?page=bb2_manage HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.knightsenglish.com", referrer: "http://www.knightsenglish.com/wp-admin/options-general.php?page=bb2_options"
    2011/08/09 13:04:06 [error] 3504#0: *40871 FastCGI sent in stderr: "PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175
    PHP Warning:  gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /var/www/knightsenglish.com/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 175" while reading upstream, client: 62.156.25.77, server: knightsenglish.com, request: "GET /wp-admin/tools.php?page=bb2_manage HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.knightsenglish.com", referrer: "http://www.knightsenglish.com/wp-admin/options-general.php?page=bb2_options"

    http://wordpress.org/extend/plugins/bad-behavior/

  2. error
    Member
    Plugin Author

    Posted 2 years ago #

    You should contact the plugin author about that issue.

  3. Ovidiu
    Member
    Posted 2 years ago #

    sorry I don't get this:

    a) aren't you the plugin author?
    b) those errors are all BB related so aren't you the right person?

    or did I misunderstood you and you would like another place/form to be contacted? maybe your own forum? email?

    please let me know

  4. Jeff
    Member
    Posted 2 years ago #

    I have this problem too.

    Warning: gethostbyaddr() [function.gethostbyaddr]: Address is not a valid IPv4 or IPv6 address in /var/www/vhosts/[edited].com/httpdocs/wp-content/plugins/bad-behavior/bad-behavior-wordpress-admin.php on line 178

    Anyone know what's up?

  5. Jeff
    Member
    Posted 2 years ago #

    I did a little research and found that when cron jobs run on my server, bad behavior creates a log entry with a NULL IP address.

    On line 178 of bad-behavior-wordpress-admin.php, the code looks like this:

    $host = gethostbyaddr($result["ip"]);

    If the developer wouldn't mind, he/she should check for NULL or check to see if the string has digits before calling gethostbyaddr().

    Meanwhile, does anyone know how to tell BH to ignore my cron jobs?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic