• Resolved gmariani405

    (@gmariani405)


    We recently upgraded the plugin to 3.5.3 and ran into this error:

    [03-May-2016 22:43:23 UTC] PHP Warning: pack(): Type H: illegal hex digit ( in /home/redacted/public_html/wp-content/plugins/count-per-day/counter-core.php on line 1632

    There are about 164 errors at that exact time with variations of that error. That error has occurred about 4 different times since the upgrade (so close to 700 errors). We upgraded April 27th, and the first error set occurred May 1st.

    I had thought the error was that we hadn’t installed the GeoIP db file, but I did that hours before this error occurred. So I’m not sure that correlates. Looking at the code that pack() only triggers on a user using IPv6 . Our server isn’t configured to support IPv6 at this time so I’m not sure how that could have happened. Is it possible your code doesn’t support IPv4 embedded in IPv6 IPs?

    https://ww.wp.xz.cn/plugins/count-per-day/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tom Braider

    (@tom-braider)

    Our server isn’t configured to support IPv6 at this time

    This is the problem.The PHP inet_pton function in geoip.inc runs into an error with IPv6. I have to use the original files of Maxmind, so i can’t fix it in the plugin.
    But i work on a patch version of this file.
    Also the counter-core.php will by changed.

    Thread Starter gmariani405

    (@gmariani405)

    Tom,

    Thanks for looking into this, looking forward to an update. I agree not supporting IPv6 can cause issues, but we have no control over this as we use VPS’ and don’t manage the server racks themselves.

    Thread Starter gmariani405

    (@gmariani405)

    Saw this today:

    3.5.4
    Bugfix: check for IPv6 compatibility on settings page

    Thanks for the update, will let you know if I run into this again.

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

The topic ‘pack() Error for an illegal hex digit’ is closed to new replies.