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.
Problem/Motivation
_maxlength_children() throwing fatal error when NULL passed to element_get_visible_children()
ms_elements makes it look like it's field_group that is the culprit, but $elements is NULL
Proposed resolution
Check for array before assuming $elements is an array worth checking.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | maxlength_children_-2477411-1.patch | 596 bytes | joelpittet |
Comments
Comment #1
joelpittetComment #2
logaritmisk CreditAttribution: logaritmisk commentedWorked for me, so thanks :)
Comment #3
cedeweyWe are only maintaining the Drupal 7 version of the module for critical security fixes, so I'm marking this Closed (won't fix). Thank you for working on this issue. If you do want to maintain the Drupal 7 version, do reach out. We'd be happy to bring you on board as a maintainer.
I also encourage you, if you haven't already, to upgrade your site to Drupal 8/9. We are actively maintaining that version and you would enjoy all of the other features of the latest version of Drupal.