Title: count(): Parameter must be an array
Last modified: April 24, 2019

---

# count(): Parameter must be an array

 *  Resolved [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/count-parameter-must-be-an-array/)
 * Hi, I’m seeing a lot of warnings in the log file:
 *     ```
       PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/xxxxx/public_html/wp-content/plugins/wp-defender/app/module/ip-lockout/controller/main.php on line 620
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/count-parameter-must-be-an-array/#post-11462508)
 * Hey [@ravanh](https://wordpress.org/support/users/ravanh/),
 * We had similar reports about this on certain installations running on PHP 7.2
   but it should have been resolved with 2.1.2 release as we can no longer replicate
   this.
    Can you make sure that you’re using the latest version of the plugin? 
   If the issue is still there for you can you please tell me which PHP version 
   you are using and where is your site hosted so we could check this further from
   our end?
 * Cheers,
    Predrag
 *  Thread Starter [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/count-parameter-must-be-an-array/#post-11462547)
 * Hi Predrag, that’s probably it, I’ve got Pro version 2.1.1.1 but cannot upgrade
   to 2.1.2 right now because of my WPMUDEV account being on hold… Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘count(): Parameter must be an array’ is closed to new replies.

 * ![](https://ps.w.org/defender-security/assets/icon-256x256.gif?rev=3435930)
 * [Defender Security - Malware Scanner, Login Security & Firewall](https://wordpress.org/plugins/defender-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/defender-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/defender-security/)
 * [Active Topics](https://wordpress.org/support/plugin/defender-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/defender-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/defender-security/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/count-parameter-must-be-an-array/#post-11462547)
 * Status: resolved