• 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

    (@techspawn1)

    Hello @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

    (@chupika)

    Hi,
    Thanks I will do.
    Regards,
    André Picca

    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:

    https://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.