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.
I get the following notice messages in the MailchimpSignupPageForm:
Notice: Undefined index: gdpr_consent in Drupal\mailchimp_signup\Form\MailchimpSignupPageForm->buildForm() (line 231 of modules/contrib/mailchimp/modules/mailchimp_signup/src/Form/MailchimpSignupPageForm.php).
Notice: Undefined index: ajax_submit in Drupal\mailchimp_signup\Form\MailchimpSignupPageForm->buildForm() (line 266 of modules/contrib/mailchimp/modules/mailchimp_signup/src/Form/MailchimpSignupPageForm.php).
Comments
Comment #2
InaW CreditAttribution: InaW at Unic commentedComment #3
InaW CreditAttribution: InaW at Unic commentedAttached I uploaded a patch that checks undefined keys before accessing them.
Comment #4
samuel.mortensonLGTM, thanks @InaW!
Comment #6
Omar AlahmedRe-roll #3 to work with 8.x-1.11 without the ajax submit.
Comment #8
astringer CreditAttribution: astringer commented#6 works for me on 8.x-1.11, can we get this patch applied?
Comment #9
jakubmrozonline CreditAttribution: jakubmrozonline commented#6 worked for me as well.
Comment #10
JFeltkamp#6 works, thanks for that
Comment #11
unstatu CreditAttribution: unstatu commentedI had this problem as well but I got a new NOTICE error when I signed up.
This patch fixes it.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedWill a new release of Mailchimp be issued to resolve this bug?
Comment #13
codesmith@unstatu - this patch was already committed. Please open a new issue with your new patch - looks good! Thanks!
Comment #14
unstatu CreditAttribution: unstatu commentedThanks for the guidance @codesmith. As it was the same bug I was not sure if I should create a new issue for it. Even if it was already closed.
I have created the new issue in https://www.drupal.org/project/mailchimp/issues/3102045
Comment #15
developer-rocha CreditAttribution: developer-rocha as a volunteer and commentedThe problem still happens in the version 8x1.12
Patch to fix it for this version:
Comment #16
developer-rocha CreditAttribution: developer-rocha as a volunteer and commentedThis patch works for the version 8x1.12