• Resolved reign1

    (@reign1)


    Hi,

    my hosting provider does not support IPv6 and I get these errors on my website:
    Warning: inet_pton(): Unrecognized address fc00:: in /home/i4lt/domains/linamoti.com/public_html/wp-content/plugins/wp-statistics/vendor/s1lentium/iptools/src/IP.php on line 35
    Warning: inet_ntop(): Invalid in_addr value in /home/i4lt/domains/linamoti.com/public_html/wp-content/plugins/wp-statistics/vendor/s1lentium/iptools/src/IP.php on line 134
    Warning: inet_ntop(): Invalid in_addr value in /home/i4lt/domains/linamoti.com/public_html/wp-content/plugins/wp-statistics/vendor/s1lentium/iptools/src/IP.php on line 136

    How do I fix it if I don’t have an option to enable IPv6?
    I’ve tried adding fc00::/7 to “Excluded IP address list” but got twice as much of the same errors. Any suggestions?

    Gytis

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

    (@gregross)

    You’ll need to talk to your hosting provider, they either need to disable IPv6 at the network layer so you don’t receive requests from IPv6 addresses or enable IPv6 in PHP so it can handle them.

    From the FAQ:

    = IPv6 Support =

    WP Statistics supports IPv6 as of version 11.0, however PHP must be compiled with IPv6 support enabled, otherwise you may see warnings when a visitor from an IPv6 address hits your site.

    You can check if IPv6 support is enabled in PHP by visiting the “Optimization->Resources/Information->Version Info->PHP IPv6 Enabled” section.

    If IPv6 is not enabled, you may see an warning like:

    Warning: inet_pton() [function.inet-pton]: Unrecognized address 2003:0006:1507:5d71:6114:d8bd:80c2:1090

    Thread Starter reign1

    (@reign1)

    Hi Greg,

    thanks for the reply. So you are saying there is nothing I can do from my/wordpress/plugin side? No code to edit or what so ever?

    Plugin Contributor Greg Ross

    (@gregross)

    No, this is a limitation of the IP address library we use verify/parse IP addresses.

    The only other option you have would be to go back to an older version of WP Statistics (pre 11.0), but that’s not recommended and you’ll still loose the IPv6 info as while the older code doesn’t throw an warning, it does just silently fail.

    If your hosting provider has enabled IPv6 on their network, they should really enable it in PHP as well.

    Thread Starter reign1

    (@reign1)

    They refused to do so but at the same time I find it strange I can’t turn IPv6 support via plugin. I bet it’s a commond issue and you should be able to have a check mark in the plugin settings “track IPv6” Yes/No or something.

    • This reply was modified 8 years, 1 month ago by reign1.
    Plugin Contributor Greg Ross

    (@gregross)

    The problem is that PHP doesn’t support IPv6 without it being enabled at compile time, so the functions we used to detect what version of IP is being used only recognize IPv4 and throw the above warning when the encounter IPv6.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘IPv6 issues’ is closed to new replies.