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
Issue fork webform_mailchimp-3399514
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:
- 3399514-error-on-mailchimp
changes, plain diff MR !6
- 3399514-1
changes, plain diff MR !7
Comments
Comment #4
viren18febs commentedHi christiana.k
I have updated the code for fixes the issue & added MR, please review.
Comment #7
chetan 11 commentedHi
Please check the attached MR for the above error solution.
Comment #8
hockey2112 commentedI 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).
Comment #9
berdirThis needs a rebase.
Comment #13
berdirRebased and merged.