Problem/Motivation

TypeError: array_filter(): Argument #1 ($array) must be of type array, string given στην array_filter() (line 215 of .../modules/contrib/webform_mailchimp/src/Plugin/WebformHandler/WebformMailChimpHandler.php).

Steps to reproduce

Create a mailchimp form that contains a radio button field. Create a mailchimp handler on a webform and select one option of the radio button. The above error appears.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

christiana.k created an issue. See original summary.

viren18febS made their first commit to this issue’s fork.

viren18febs’s picture

Status: Active » Needs review

Hi christiana.k

I have updated the code for fixes the issue & added MR, please review.

chetan 11 made their first commit to this issue’s fork.

chetan 11’s picture

Hi
Please check the attached MR for the above error solution.

hockey2112’s picture

I am encountering the same issue using a checkbox field. I tried incorporating the changes notated in the files above, but that did not fix the issue. When will a fixed official version be released, or at least a patch file?

TypeError: array_filter(): Argument #1 ($array) must be of type array, string given in array_filter() (line 292 of ../modules/contrib/webform_mailchimp/src/Plugin/WebformHandler/WebformMailChimpHandler.php).

berdir’s picture

Status: Needs review » Needs work

This needs a rebase.

berdir changed the visibility of the branch 3399514-1 to hidden.

  • berdir committed 24ffd0e0 on 8.x-5.x authored by viren18febs
    Issue #3399514 by viren18febs, berdir: Error on mailchimp radio button...
berdir’s picture

Status: Needs work » Fixed

Rebased and merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.