• Dear Plug-in author

    I am Japanese. I am writing this sentence using google translation.
    I am sorry if there are places that are difficult to understand.

    When “WordPress Ping Optimizer” is used in the PHP 7.2 environment,
    “Warning: count (): Parameter must be an array or an object that implements Countable in /home/gerrysey/domains/wncselfdefense.com/wp-content/plugins/wordpress-ping-optimizer/cbnet-ping-optimizer.php on line 533 ”
    An error will be displayed.
    The corresponding part is in line 594 of “cbnet-ping-optimizer.php”

    $ pingCount = count ($ this-> cbnetpo_future_pings);

    It is described as.

    Since var_dump outputted the value of $ pingCount, “int (1)” was displayed
    When I changed $ pingCount = count ($ this-> cbnetpo_future_pings); to $ pingCount = 1 ;, the error ceased to appear.
    But this did not really tell if plugging worked properly.
    Am I correct what I made?
    If you have a better way please let me know.

  • The topic ‘About errors in php 7.2 environment’ is closed to new replies.