• Resolved Anna

    (@ann-castro)


    Hi, I am getting the following warning.

    Sometimes when saving posts, logging in, I have to do the action several times to be able to do it because of this warning.

    What is it and how do I fix it?

    Warning: inet_pton() [function.inet-pton]: Unrecognized address 2003:0006:1507:5d71:6114:d8bd:80c2:1090 in …../wp-content/plugins/wp-statistics/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php on line 121

    Thanks, Ann.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Greg Ross

    (@gregross)

    IPv6 isn’t supported at this time, make sure your hosting provider does not have it enabled for your site.

    Thread Starter Anna

    (@ann-castro)

    Thank you, for your quick answer, Greg. My hosting provider (siteground) tells me that they do not have it enabled on any account on their servers.

    Any other idea as to what might be going wrong here?

    Thanks,
    Ann.

    Plugin Contributor Greg Ross

    (@gregross)

    Something is passing in an IPv6 address, you can see it in the warning message, it’s the “2003:0006:1507:5d71:6114:d8bd:80c2:1090 ” part.

    Is it the same for all of the warning messages?

    Plugin Contributor Greg Ross

    (@gregross)

    I did a little more digging, the warning is probably being generated because your provider has disabled IPv6 support in PHP and we’re picking the IPv6 address up from one of the HTTP headers.

    I’ve rewritten the IP detection code for WP Statistics to specifically reject headers with IPv6 addresses in them, but I’m going to have to do some testing to make sure the new code doesn’t break anything else.

    In the mean time you can either ignore the warning, or ask your provider to enable IPv6 support in PHP.

    Thread Starter Anna

    (@ann-castro)

    Thank you. I spent some time on my provider’s support chat. They removed the line from the program … LOL Kill the messenger … LOL

    Thanks though for your quick and thorough replies.

    Looking forward to your updates.
    Take care,
    Ann.

    Plugin Contributor Greg Ross

    (@gregross)

    That might break your country lookups, I would suggest not doing that.

    The next update will actually add full IPv6 support, so you may want to pursue your hosting provider to enable IPv6 support in PHP.

    Thread Starter Anna

    (@ann-castro)

    Oh really? I had asked them if that wouldn’t cause issues and they told me “not at all”. ??

    Thank you for the warning.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Warning: inet_pton() [function.inet-pton]: Unrecognized address’ is closed to new replies.