Cloudflare-WordPress: count(): Parameter must be an array or an object that implements Countable

After upgrading to PHP 7.2, I’m seeing this repeatedly in my debug.log:

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/wordpress/plugins/cloudflare/src/WordPress/Hooks.php on line 133

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (3 by maintainers)

Most upvoted comments

Fixed in #231

It looks like there’s actually 4 PRs:

Been nine months and no fix? At least please merge the patch someone submitted #220

Can confirm this issue for PHP 7.2

This issue makes the plugin a no go.