Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to reproduce it:
- Create some users.
- Install the mailchimp and mailchip lists module and configure them
- Add a
Mailchimp subscription field
to your users form. - Edit any user created before the installtion of mailchimp, check the "subscribe" checkbox and save the form
- WSOD
The already created users have null in that new field by default, so this produces a fatal error in the module when the user save the form.
I attach a patch to fix this.
Comments
Comment #2
gnugetComment #3
gnugetComment #4
mlncn CreditAttribution: mlncn at Agaric for Teachers with GUTS commentedImportant and necessary fix if you have users, and add mailchimp field to users later on. This patch is in our composer.json and in use on production!
Comment #6
ruscoe CreditAttribution: ruscoe at ThinkShout for Mailchimp commentedThank you!