Title: PHP Warning: count(): Parameter must be an array &#8230;
Last modified: April 29, 2020

---

# PHP Warning: count(): Parameter must be an array …

 *  Resolved [paprikamann](https://wordpress.org/support/users/paprikamann/)
 * (@paprikamann)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/)
 * Hello!
 * Since a few days we are having php warnings created by your tool.
 * The entry in `error_log` is:
    `[29-Apr-2020 15:30:45 UTC] PHP Warning: count():
   Parameter must be an array or an object that implements Countable in /home/kd63270/
   public_html/wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-
   7/inc/dnd-upload-cf7.php on line 411`
 * The warnings started on 18th April. I updated the tool recently a few times, 
   maybe on 18th, too. So maybe an update caused the warning?
 * The warnings are generated for every upload. We have a forms with two upload 
   fieds, therefore there are two warning messages.
 * Tool Settings: Send attachment as link: YES
    Other than that we only changed 
   the labels for the upload fields. All other settings are set to default.
 * D&D field settings:
    Field 1: PDF, max-file: 1, required Field 2: PDF|mov|mp4,
   max-file: 1, required, file-size: 200mb (as bytes)
 * Additionally we use Advanced CF7 Database and Conditional Fields.
 * Good to know: Both the upload and email sending works! But it still would be 
   great if we could find the reason for those warnings.
 * I appreciate any help!
 * Best regards

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

 *  Plugin Author [Glen Don Mongaya](https://wordpress.org/support/users/glenwpcoder/)
 * (@glenwpcoder)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/#post-12754958)
 * Hello [@paprikamann](https://wordpress.org/support/users/paprikamann/) ,
 * Thanks will check on this.
 *  Plugin Author [Glen Don Mongaya](https://wordpress.org/support/users/glenwpcoder/)
 * (@glenwpcoder)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/#post-12755056)
 * [@paprikamann](https://wordpress.org/support/users/paprikamann/) , Please update
   to the latest version 1.3.3.2.
 *  Plugin Author [Glen Don Mongaya](https://wordpress.org/support/users/glenwpcoder/)
 * (@glenwpcoder)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/#post-12755059)
 * [@paprikamann](https://wordpress.org/support/users/paprikamann/) , this is fixed
   on the latest version.
 *  Plugin Author [Glen Don Mongaya](https://wordpress.org/support/users/glenwpcoder/)
 * (@glenwpcoder)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/#post-12777861)
 * [@paprikamann](https://wordpress.org/support/users/paprikamann/), I haven’t heard
   form you in a while.
 *  I’d like to know if we can close this thread now.
 *  Thread Starter [paprikamann](https://wordpress.org/support/users/paprikamann/)
 * (@paprikamann)
 * [6 years ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/#post-12872560)
 * [@glenwpcoder](https://wordpress.org/support/users/glenwpcoder/) First of all,
   sorry for my late reply … I completely forgot about it.
 * And thanks for your fix. It works! 🙂

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

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

 * ![](https://ps.w.org/drag-and-drop-multiple-file-upload-contact-form-7/assets/
   icon-128x128.jpg?rev=1984850)
 * [Drag and Drop Multiple File Upload for Contact Form 7](https://wordpress.org/plugins/drag-and-drop-multiple-file-upload-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/drag-and-drop-multiple-file-upload-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/drag-and-drop-multiple-file-upload-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/drag-and-drop-multiple-file-upload-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/drag-and-drop-multiple-file-upload-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/drag-and-drop-multiple-file-upload-contact-form-7/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [paprikamann](https://wordpress.org/support/users/paprikamann/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/php-warning-count-parameter-must-be-an-array-2/#post-12872560)
 * Status: resolved