Title: PHP Warning: count()
Last modified: January 18, 2020

---

# PHP Warning: count()

 *  [Mike Meinz](https://wordpress.org/support/users/mikemeinz/)
 * (@mikemeinz)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-count-5/)
 * Found in error_log:
 *     ```
       [09-Jan-2020 16:05:09 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/xxxx/public_html/wp-content/plugins/attachments/classes/class.attachments.search.php on line 64
       [09-Jan-2020 16:05:10 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/xxxx/public_html/wp-content/plugins/attachments/classes/class.attachments.search.php on line 64
       [09-Jan-2020 16:05:10 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/xxxx/public_html/wp-content/plugins/attachments/classes/class.attachments.search.php on line 64
       ```
   
 * Line 64:
    `for ( $i = 0; $i < count( $params['fields'] ); $i++ ) {`
 * PHP Version 7.3
    WordPress Version 5.2.3 Attachments Version 3.5.9

The topic ‘PHP Warning: count()’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/attachments_fafafa.svg)
 * [Attachments](https://wordpress.org/plugins/attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/attachments/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mike Meinz](https://wordpress.org/support/users/mikemeinz/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/php-warning-count-5/)
 * Status: not resolved