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.
If one enables a module that is dependent upon ACL, Drupal will automatically enable ACL. This, however, produces the following warning in the message area:
Warning: Invalid argument supplied for foreach() in element_children() (line 6370 of /hom/inf5270/www_docs/diw/gruppe01/includes/common.inc).
There is a simple workaround (enable ACL first, then the module that depends on it), which does not trigger the warning. However I will report it as an issue just for the record.
To reproduce this issue, please download and install this module: https://github.com/gisleh/acldep.git
Comments
Comment #1
salvisHave you tried this with Forum Access as dependent?
Comment #2
gisleIt reproduces with Forum Access on the same site as the one that made me report the issue. (This is a production site with a lot of other modules installed.)
However, when I did a clean install of Drupal 7.17 and only ACL + Forum Access, I was unable to reproduce it. I am also unable to reproduce it with my AclDep "module" on the same clean install site.
This means that the problem probably lies elsewhere (i.e. in some of the other modules or in some database corruption on my production site), and not in the ACL module.
Comment #3
salvisThank you for following up!