Title: error when sent the email
Last modified: January 28, 2019

---

# error when sent the email

 *  [André PICCA](https://wordpress.org/support/users/chupika/)
 * (@chupika)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-when-sent-the-email/)
 * Hi,
    I got the following error when I sent an email. However the mail is well
   sent and received. I use version 1.606 with WP 5.0.3 Regards, André Picca Warning:
   count(): Parameter must be an array or an object that implements Countable in
   C:\wamp64\www\WP\wp-content\plugins\wp-email-users\wp-email-functions.php on 
   line 41 Call Stack # Time Memory Function Location 1 0.0006 425584 {main}( ) …\
   admin.php:0 2 1.0040 16916304 do_action( ) …\admin.php:224 3 1.0040 16916680 
   WP_Hook->do_action( ) …\plugin.php:453 4 1.0040 16916680 WP_Hook->apply_filters()…\
   class-wp-hook.php:310 5 1.0040 16983232 weu_admin_page( ) …\class-wp-hook.php:
   286 6 1.0043 16985040 array_filter ( ) …\wp-send-mail.php:752 7 1.0043 16985096
   weu_is_unsubscribe_arr( ) …\wp-send-mail.php:752

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

 *  Plugin Author [Techspawn](https://wordpress.org/support/users/techspawn1/)
 * (@techspawn1)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-when-sent-the-email/#post-11142416)
 * Hello [@chupika](https://wordpress.org/support/users/chupika/)
    We’ll be looking
   into it and clear all Error/Warning messages and if you face any issue regarding
   functionality Please let us know. Thank You.
 *  Thread Starter [André PICCA](https://wordpress.org/support/users/chupika/)
 * (@chupika)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/error-when-sent-the-email/#post-11144623)
 * Hi,
    Thanks I will do. Regards, André Picca
 *  [DanDawson](https://wordpress.org/support/users/dandawson/)
 * (@dandawson)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/error-when-sent-the-email/#post-11270130)
 * Some research shows this error only occurs when the server is running php 7.2.
   When I roll back to php 7.1 the errors do not appear.
 * The line in question is:
 *  $count=count($emails_arr);
 * I assume the problem is that $emails_arr is not countable (equal to null, or 
   1 or similar. For some more details on the potential cause of the issue see “
   Warn when counting non-countable types” on this page:
 * [http://php.net/manual/en/migration72.incompatible.php](http://php.net/manual/en/migration72.incompatible.php)

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

The topic ‘error when sent the email’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-email-users_59bcfd.svg)
 * [WP Email Users](https://wordpress.org/plugins/wp-email-users/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-email-users/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-email-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-email-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-email-users/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [DanDawson](https://wordpress.org/support/users/dandawson/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/error-when-sent-the-email/#post-11270130)
 * Status: not resolved