Support » Plugin: Bad Behavior » [Plugin: Bad Behavior] PHP Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address

  • 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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author error

    (@error)

    You should contact the plugin author about that issue.

    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

    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?

    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Bad Behavior] PHP Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address’ is closed to new replies.