Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32292

    PVCUser
    Participant

    Hi,

    My log is filled with these warnings. Any ideas?

    PHP Warning: implode(): Invalid arguments passed in /wp-content/plugins/post-views-counter/includes/crawler-detect.php on line 153

    Thanks.

    #32309

    PVCUser
    Participant

    I tracked this and another couple of bugs that appeared in the error log. This is how I fixed them:

    In includes/crawler-detect.php:
    – Around line 43, change “protected $crawlers;” TO “protected $crawlers = array();”
    – Around line 50, change “protected $exclusions;” TO “protected $exclusions= array();”

    In includes/counter.php:
    – Around line 383, ADD these two lines:
    $user_ip = (string) $this->get_user_ip();
    $current_time = current_time( ‘timestamp’, true );

    #32578

    damienwhaley
    Participant

    We have run in to the same issue.

    I’ve created a pull request which should resolve this.

    https://github.com/dfactoryplugins/post-views-counter/pull/24

    #32579

    Bartosz
    Keymaster

    Hi Guys,
    Thanks for all your feedback – a new release will include a fix for this.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.