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
Comment #1
asimmonds commentedYou 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)
Comment #2
cjeanson commentedMy 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!
Comment #3
cjeanson commentedComment #4
asimmonds commentedPlease 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.
Comment #5
biohabit commentedI"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.
Comment #6
asimmonds commentedAnd another fix went into HEAD after RC2 (http://drupal.org/node/190729) to mark these bad modules as incompatible.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.