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.
Using authcache I it was showing an error on an foreach(element_children($element))
because attributes is null.
Although authcache could potentially sort this out, I think it's best practice not to populate a form element with a null value, but rather an empty array, and this kind of iteration of form elements are all over the place.
Comment | File | Size | Author |
---|---|---|---|
#2 | uc_attribute-return_empty_array_instead_of_null-2750151-2.patch | 547 bytes | hanoii |
Comments
Comment #2
hanoiiComment #3
hanoiiComment #4
dench0 CreditAttribution: dench0 commentedI'm have the same error.
Comment #5
TR CreditAttribution: TR commentedMarked #2885388: The attributes form element must not be NULL as a duplicate.
Comment #8
TR CreditAttribution: TR commentedThanks. Committed this fix to both 7.x-3.x and 8.x-4.x.