Undefined index hide_subscribe_checkbox

Created on 10 December 2021, over 3 years ago
Updated 10 July 2025, 16 days ago

On a user edit page, after submitting the form I get the error:

Notice: Undefined index: hide_subscribe_checkbox in Drupal\mailchimp_lists\Plugin\Field\FieldType\MailchimpListsSubscription->postSave() (line 281 of modules/contrib/mailchimp/modules/mailchimp_lists/src/Plugin/Field/FieldType/MailchimpListsSubscription.php).

There is a Mailchimp Subscription field on user entity, but it is not shown in the form display for the edit user page. But for some reason, the postSave() code still runs.

Either it should not run if the widget doesn't actually appear in the form, or it needs to be made robust enough to still work even if there was no widget there.

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Lists Module

Created by

🇬🇧United Kingdom Rob230

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States xenophyle

    Thanks for submitting this ticket — and sorry we didn’t get back to you about it sooner. We are cleaning up old issues and issue for old versions and are going to close this one. If this issue is still relevant for you, please re-open it and update the “Version” field, and include any updates to the behavior you are seeing.With a smaller issue queue, we’ll have an easier time getting back to you.

Production build 0.71.5 2024