• Resolved catmaniax

    (@catmaniax)


    Hello!

    Recently I enabled wp-debug to see if I have any errors and I noticed that Slimstat displays the following two warnings:

    Warning: inet_pton(): Unrecognized address 2a02:214d:820c:9900:993:68b0:617:f0e5 in /home/www/site/site.com/www/wp-content/plugins/wp-slimstat/wp-slimstat.php on line 1091

    Warning: unpack(): Type A: not enough input, need 16, have 0 in /home/www/site/site.com/www/wp-content/plugins/wp-slimstat/wp-slimstat.php on line 1091

    I opened the file with Notepad++ and line 1091 is the following: self::$stat = apply_filters( ‘slimstat_filter_pageview_stat’, self::$stat );

    Can you please tell me what does it mean and how can it be fixed?

    Please let me know.
    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Jason Crouse

    (@coolmann)

    Hi,

    do you have any other add-ons enabled that might be using that filter?

    Thanks,
    Jason

    Thread Starter catmaniax

    (@catmaniax)

    Hey,

    You mean Slimstat add-ons? Then no.

    Plugin Contributor Jason Crouse

    (@coolmann)

    Your server’s PHP is compiled without IPv6 support (using the –disable-ipv6) so this code fails, however it should work fine on a server on which PHP supports IPv6.

    Here’s how to check if IPv6 is supported on your PHP installation, taken from here :

    if (defined('AF_INET6')) {
      echo "PHP was compiled without --disable-ipv6 option";
    } else {
      echo "PHP was compiled with --disable-ipv6 option";
    }

    Please confirm that this is the case, and we will add some more controls to our code to make sure that function is only called if IPv6 is supported.

    Thank you for pointing this out!
    Jason

    Thread Starter catmaniax

    (@catmaniax)

    Hey, thanks for the reply.

    Can you please explain a bit more how I can check if IPv6 is supported on my PHP installation, because I couldn’t figure it out from what you said.

    Visiting ipv6-test.com shows that my Internet Connection (ISP) does not provide IPv6 (says Not Supported) but only IPv4.

    Testing my site on their validate page (http://ipv6-test.com/validate.php) says my site supports IPv6 Web & DNS Server since I use Cloudflare.

    So, what do I need to do?

    Please let me know.
    Thanks!

    Plugin Contributor Jason Crouse

    (@coolmann)

    Thank you. If you already tested it that way, then you know that your hosting provider DOES NOT support IPv6 unfortunately. We are adding some checks to our code to make sure that warning is not displayed, if IPv6 is not supported.

    Thank you,
    Jason

    Thread Starter catmaniax

    (@catmaniax)

    Great, but my site uses IPv6 since I’m on Cloudflare, correct?

    Anyway, I wanted to ask you about another issue I’m having.

    I’m using an under construction plugin since my site is under development so I have set the Tracking Mode to Server in order for Slimstat to work.
    However, it seems to be a conflict with the caching plugin (WP Rocket) and whenever I activate it the tracking stops.

    I even excluded wp-slimstat.js from the field “JS files to exclude from minification” but it didn’t solve anything.

    I also want to have wp-login.php and wp-admin tracked so I know if someone goes and try to directly access them (for hacking purposes).
    NOTE: I have http authentication in wp-login.php

    Is there anything I can do to resolve all this?

    Please let me know.
    Thanks!

    • This reply was modified 9 years, 3 months ago by catmaniax.
    Plugin Contributor Jason Crouse

    (@coolmann)

    Great, but my site uses IPv6 since I’m on Cloudflare, correct?

    Not exactly. Slimstat is running on your own server, not on Cloudflare, so that’s why the problem is occurring. The website is then “cached” by Cloudflare, which serves it to your visitors. But again, the tracker runs on your server.

    I’m using an under construction plugin since my site is under development so I have set the Tracking Mode to Server in order for Slimstat to work. However, it seems to be a conflict with the caching plugin (WP Rocket) and whenever I activate it the tracking stops.

    Yes, WP Rocket will not work with “server mode”, only client mode.

    I also want to have wp-login.php and wp-admin tracked so I know if someone goes and try to directly access them (for hacking purposes).

    There’s an option in the settings to enable this feature.

    Best,
    Jason

    • This reply was modified 9 years, 3 months ago by Jason Crouse.
    Thread Starter catmaniax

    (@catmaniax)

    Ok, thanks for clarifying!

    Plugin Contributor Jason Crouse

    (@coolmann)

    You got it.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Warnings in debug mode’ is closed to new replies.