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

salvis’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried this with Forum Access as dependent?

gisle’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

It 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.

salvis’s picture

Thank you for following up!