• It looks like this plugin is no longer supported………. but still.

    I have this message in my log:
    count(): Parameter must be an array or an object that implements Countable

    Line 121 and 409 in
    /wp-content/plugins/review-builder/com/core/ActiveRecord.php

    How to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Harm10

    (@harm10)

    Was my report viewed and picked up?

    Thread Starter Harm10

    (@harm10)

    Apparently no response……..
    So I took a look for myself. This warning is thrown in more recent versions of PHP (I am on 7.4) and concerns that that variable to be counted is not an array.
    When you change your_url\wp-content\plugins\review-builder\com\core\ActiveRecord.php line 121 from
    if (count($criteria->parameters)) {
    to
    if (count((array)$criteria->parameters)) {
    and line 409 from
    if (count($params)) $this->parameters = $params;
    to
    if (count((array)$params)) $this->parameters = $params;
    the warnings disappear!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘count(): Parameter must be an array or an object that implements Countable’ is closed to new replies.