warning: Invalid argument supplied for foreach() in C:\wamp\www\public_html\cms\modules\system\system.admin.inc on line 578.

Latest wamp installed,
fresh installation

CommentFileSizeAuthor
#7 drupal-bugs.zip120.79 KBbakr
#7 my-infos.zip24.27 KBbakr
#4 foreach1.jpg184.76 KBbakr
#4 foreach2.jpg123.49 KBbakr

Comments

asimmonds’s picture

Status: Active » Closed (works as designed)

You have a contrib module that has a incorrect dependencies line in it's .info file, it should have "dependencies[] = ..." instead of "dependencies = ..."

Please reassign this issue against the relevant contrib module.

bakr’s picture

Project: Drupal core » FCKeditor - WYSIWYG HTML editor
Version: 6.0-rc1 » 6.x-1.x-dev
Component: base system » Code

File: fckscriptloader.js
Line: 77
Version : 6dev

FCKScriptLoader.AddScript = function( scriptName, scriptBasePath, dependency, compatibility )
{
this._Scripts[ scriptName ] =
{
BasePath : scriptBasePath || '',
Dependency : dependency || [],
Compatibility : compatibility || FCK_GENERIC
} ;
}

After doing a search within my sites/all/modules i only found the above occurence for "dependecies"

Could that be the problem??

asimmonds’s picture

Project: FCKeditor - WYSIWYG HTML editor » Drupal core
Version: 6.x-1.x-dev » 6.0-rc1
Component: Code » other
Status: Closed (works as designed) » Postponed (maintainer needs more info)

That's not the right one. You are looking for a .info file containing something like this:

; $Id: translation.info,v 1.1 2007/06/15 18:40:14 goba Exp $
name = Content translation
description = Allows content to be translated into different languages.
dependencies[] = locale
package = Core - optional
version = VERSION
core = 6.x

This is the contents of the core translation module's .info file with a correctly formatted dependencies line.

Reassigning back to core as FCKeditor's fckeditor.info appears to be OK.
Any contrib modules in /modules or /sites/default/modules?

bakr’s picture

StatusFileSize
new123.49 KB
new184.76 KB

Please find attached two screen-snaps which show my site-wide search string results for "dependencies"

searched by Adobe Dreamweaver cs3 - my favourite editor ;-)

asimmonds’s picture

There are no *.info files listed in those screenshots. There should be at least modules/forum/forum.info and modules/translation/translation.info from Drupal core. It looks like Dreamweaver is only searching in files with extensions it knows.

bakr’s picture

Mmm,

Also Windows vista's Desktop search within files too. (it did not show anything).

Ok I'll do it in another way and update soon...

Thanks for the Hint. :-)

bakr’s picture

StatusFileSize
new24.27 KB
new120.79 KB

I have attached all my info files, though i have done my home work to look into each file for inconsistant array declaration...every seemed ok for me!

Also i have attached the html page that shows my modules and the error message.

asimmonds’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Found it, because there is a unmet dependency (interface_sortable depends on jquery_interface) this warning will be shown. The issues http://drupal.org/node/194010 and http://drupal.org/node/203629 cover this.

Remove the interface_sortable module directory and the warning should disappear.

Marking as duplicate.