statamic-rad-pack / mailchimp

Mailchimp integration for Statamic
https://statamic.com/addons/rad-pack/mailchimp
MIT License
18 stars 12 forks source link

Silentz\Mailchimp\Subscriber::__construct(): Argument #1 ($data) must be of type array #76

Closed andrew-ireland closed 2 years ago

andrew-ireland commented 2 years ago

I'm having trouble getting the 'Mailchimp' addon to work. Form submits fine without it, but I'm seeing this error on submission. Posting in the hope someone smarter than me can point me in the right direction!

I'm running Static v3.3.3

Silentz\Mailchimp\Subscriber::__construct(): Argument #1 ($data) must be of type array, Illuminate\Support\Collection given, called in /Users/andrewireland/www/orion-2022/vendor/silentz/mailchimp/src/Listeners/AddFromSubmission.php on line 12

I've attached my config for reference.

I haven't used Mailchimp or this addon before, so hopefully I'm missing something really obvious. Happy to provide any code as required.

Screen Shot 2022-03-26 at 10 14 36 am
edalzell commented 2 years ago

@andrew-ireland I can't replicate and all my tests still pass.

Can you share a repo that fails?

edalzell commented 2 years ago

Closed in 2.7