Support » Plugin: WordPress Ping Optimizer » PHP 7 errors

  • Resolved audioscavenger


    This bug occurs with latest plugin version + Apache 2.4 + PHP 7.2

    Warning: count(): Parameter must be an array or an object that implements Countable in /path/wp-content/plugins/wordpress-ping-optimizer/cbnet-ping-optimizer.php on line 477

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter audioscavenger


    sorry i forgot to add the first error:

    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; cbnetPingOptimizer has a deprecated constructor in /path/wp-content/plugins/wordpress-ping-optimizer/cbnet-ping-optimizer.php on line 36

    just rename function cbnetPingOptimizer() to cbnetPingOptimizerFunc()

    no need to thank me

    Plugin Author Pankaj Jha


    Too Good.. I fixed bot the issue.
    Issue 1:
    if (is_null($this->cbnetpo_future_pings))

    Issue 2: I used below in place of construct method

    Thread Starter audioscavenger


    thanks for the quick react! and thank you for this useful plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 7 errors’ is closed to new replies.