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

    (@luciole135)

    re upload StatPress V, may be a corrumpted file

    I got the same problem after upgrading to 1.5.0.3

    Oh, and it’s not a corrupted file. Line 350 of statpress.php looks like this:

    if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4, FILTER_FLAG_NO_PRIV_RANGE))

    That’s one parameter too much. The manual entry for filter_var() states, that only three parameters may be used:

    filter_var ( mixed $variable [, int $filter [, mixed $options ]] )

    Thread Starter gillessimondunigech

    (@gillessimondunigech)

    perhaps FILTER_FLAG_IPV4, FILTER_FLAG_NO_PRIV_RANGE should be replaced by
    FILTER_FLAG_IPV4|FILTER_FLAG_NO_PRIV_RANGE

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: StatPress Visitors] too many args to filter_var’ is closed to new replies.