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.
When $vars['element']['#attributes']['class']
isn't set, the above error is triggered.
Patch coming right up.
Comment | File | Size | Author |
---|---|---|---|
#1 | rubik-1248650-fix-fatal-error.patch | 934 bytes | skwashd |
Comments
Comment #1
skwashd CreditAttribution: skwashd commentedThis patch fixes the problem.
Comment #2
fxarte CreditAttribution: fxarte commentedHow can this issue be reproduced?
Comment #3
skwashd CreditAttribution: skwashd commentedAs per the original comment, then an element has ['#attributes']['class'] unset
Comment #4
skwashd CreditAttribution: skwashd commentedComment #5
CoffeyMachine CreditAttribution: CoffeyMachine commentedThis is an edge case, I've never run into this issue before, and was not able to reproduce it. The code looks fine however, and I don't think it is likely to cause any problems. I've gone ahead and committed to 7.x-dev. Thanks.