Hello,

I just ran a full system update from D7.4 for 7.7, as well as auto-updated some of the modules that I had installed, including Admin (7.x-2.0-beta3). However now I keep seeing this error message:

    Warning: Invalid argument supplied for foreach() in element_children() (line 6134 of /Applications/MAMP/htdocs/public/drupal-7.7/includes/common.inc).
    Warning: Invalid argument supplied for foreach() in element_children() (line 6134 of /Applications/MAMP/htdocs/public/drupal-7.7/includes/common.inc).

I tried to locate the issue and finally after disabling the Admin module the errors went away.

Is there any way to find out why this is happening? (I checked the logs and I don't see anything more there).
I can also vaguely remember an error like this showing up once:
Warning: require_once .... /Applications/MAMP/htdocs/public/drupal-7.7/sites/all/modules/entity/...

Your help would be greatly appreciated. :)

Comments

mhamed’s picture

the same problem for me
the problem emerges with product content
when i try to publish a product in the front page
it gave me :
Warning: Invalid argument supplied for foreach() in element_children() (line 6134 of /.../includes/common.inc). i know that i ve made some error in the taxonomy or such but to delete all the products so difficult
so perhaps someone has solved the same problem?
thanks for all

skwashd’s picture

Priority: Normal » Major

Marked #1266506: Annoying warning as a dupe of this issue.

sickness29’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.