• I am using MailChimp along with Fast Secure Contact Form and am passing the information from my form to allow Mailchimp Registration if the checkbox is checked.

    I have prepended all the field tags with “mc4wp-” and the information is being parsed correctly. The checkbox has the laben mc4wp-subscribe.

    The information is being sent to Mailchimp and the form is sending the email (which is the purpose of the Fast Secure Contact Form). However, once the fields were utilized for Mailchimp I began to get the message below at submission. It will flash at the top of the page then go away. If I disable the Mailchimp plugin the error goes away. Turn it back on and it reappears.

    Everything is working as it should with the information correctly being relayed to Mailchip but the error is being shown. I have verified that the wp-config.php does not have debugging enabled.

    Any ideas?

    ERROR:
    strlen() expects parameter 1 to be a string, array given in /public_html/wp-includes/formatting.php on line 1982

    Line 1982 is

    // Test for the minimum length the email can be
    if ( strlen( $email ) < 3 ) {
    /**
    * Filter whether an email address is valid.
    *
    * This filter is evaluated under several different contexts, such as ’email_too_short’,
    * ’email_no_at’, ‘local_invalid_chars’, ‘domain_period_sequence’, ‘domain_period_limits’,
    * ‘domain_no_periods’, ‘sub_hyphen_limits’, ‘sub_invalid_chars’, or no specific context.
    *
    * @since 2.8.0
    *
    * @param bool $is_email Whether the email address has passed the is_email() checks. Default false.
    * @param string $email The email address being checked.
    * @param string $message An explanatory message to the user.
    * @param string $context Context under which the email was tested.
    */
    return apply_filters( ‘is_email’, false, $email, ’email_too_short’ );
    }

    https://wordpress.org/plugins/mailchimp-for-wp/

  • The topic ‘strlen() expects parameter 1 to be a string’ is closed to new replies.