• Hello, I upgraded to PHP 7.0.29 this past Fall and found a large number of PHP errors in debug mode as well as deprecated functions. Has the plugin been redone to be fully PHP 7 compatible now since approximately last September?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Greg

    (@thewatchman3)

    Yes I am having the same issue and came here to report it, but I guess nothing is being done about this since it’s been months already.

    Greg

    (@thewatchman3)

    This is the main error I am seeing:

    mod_fcgid: stderr: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/mydomain.com/httpdocs/wp-content/plugins/wordpress-ping-optimizer/cbnet-ping-optimizer.php on line 533

    Thread Starter itsgotime

    (@itsgotime)

    I believe the developer has stopped supporting this plugin for some time. The errors are PHP 7 and a ton of deprecated functions.

    Thread Starter itsgotime

    (@itsgotime)

    Any update on anyone elses end?

    To fix this issue – which occurs in newer versions of PHP (like PHP 7.2 and PHP 7.3) – you can patch the plugin file /wordpress-ping-optimizer/cbnet-ping-optimizer.php …

    On both line 530 and line 592 of cbnet-ping-optimizer.php, replace this code:

    if (is_null($this->cbnetpo_future_pings))

    …and change it to this code:

    if (empty($this->cbnetpo_future_pings) || !is_array($this->cbnetpo_future_pings))

    And your PHP Warning should be resolved and go away.

    Hope that helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fully PHP 7.01 Compatible?’ is closed to new replies.