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
I believe the developer has stopped supporting this plugin for some time. The errors are PHP 7 and a ton of deprecated functions.
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.