statamic-rad-pack / mailchimp

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

Update published config file #81

Closed swilla closed 2 years ago

swilla commented 2 years ago

After upgrading to the latest version of this package, I started getting an exception on register because I had 'add_new_users' => true,.

This was the exception:

TypeError: Silentz\Mailchimp\Subscriber::tag(): Return value must be of type string, null returned

It turned out that it was looking for the tag config inside the mailchimp.users config, but it wasn't there. I took what was documented in the README and placed it in the config file that gets published.

Some upgrade instructions should probably be added to the release that indicates to force publish the config and update the values that were modified from the base install.

php artisan vendor:publish --tag="mailchimp-config" --force