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.
Had notice that my db log is filling with these entries:
Notice: Undefined index: #limit_validation_errors in Drupal\captcha\Element\Captcha::processCaptchaElement()
Will attach a patch to fix this.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2929153-4.patch | 927 bytes | gpbarga |
| |||
#3 | captcha-undefined-index-2929153-3-8.3.7.patch | 807 bytes | welly |
Comments
Comment #2
welly CreditAttribution: welly at Fat Beehive commentedComment #3
welly CreditAttribution: welly at Fat Beehive commentedComment #4
gpbarga CreditAttribution: gpbarga commentedHey, ran into this problem aswell.
I think we should also ensure that the $form_state->getTriggerElement()['#limit_validation_errors'] is an array aswell instead of just checking if its set to preserve the intention of calling is_array().
Comment #5
welly CreditAttribution: welly at Fat Beehive commentedMakes sense @gpbarga! Tested your updated patch, looks good to me!
Comment #6
welly CreditAttribution: welly at Fat Beehive commentedComment #7
wundo CreditAttribution: wundo at Chuva Inc. commentedComment #8
wundo CreditAttribution: wundo at Chuva Inc. commentedComment #10
wundo CreditAttribution: wundo at Chuva Inc. commented