warning: Invalid argument supplied for foreach() in /home/.salty/cjeanson/kidsofmud.ca/drupal6/modules/system/system.admin.inc on line 580.

Displayed within the ADMIN section - basic Module list screen for a fresh Drupal 6 RC1 install after adding a few core modules to the active module list.

System Info:
*NIX server
http://www.kidsofmud.ca/drupal6/
Drupal 6 RC1
PHP 5.22

-----------------------------------------
I assume that this is not a major bug, but wanted to pass it along anyway since my search didn't yield the same error (searched for "system.admin.inc on line 580")

Comments

asimmonds’s picture

Status: Active » Postponed (maintainer needs more info)

You shouldn't be receiving that warning on line 580 with 6.0-rc1, are you sure you have rc1 installed? line 580 in current HEAD has a foreach() but not 6.0-rc1.

If you have a current HEAD install, then your problem is probably a module that has not declared it's dependencies properly. Could you list what non-core modules you have in your modules directory (they don't have to installed to cause this problem)

cjeanson’s picture

My apologies, I pulled it from CVS and am now updating to RC1.

I was plowing through the RC1 code and sure enough there was no foreach() as you stated.

Sorry for wasting your time!

cjeanson’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)
asimmonds’s picture

Please be aware that a fix went into HEAD recently (after RC1 was released), that fixed a problem with module dependency checking that usually resulted in a warning like this.

biohabit’s picture

Version: 6.0-rc1 » 6.0-rc2
Status: Closed (fixed) » Active

I"m seeing this exact error with RC2, though it is with WAMP on XP pro.

warning: Invalid argument supplied for foreach() in C:\cygwin\wamp\www\d60rc2\modules\system\system.admin.inc on line 580.

asimmonds’s picture

Status: Active » Fixed

And another fix went into HEAD after RC2 (http://drupal.org/node/190729) to mark these bad modules as incompatible.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.