I keep getting this message :
warning: Invalid argument supplied for foreach() in /home/drupal/modules/system/system.module on line 876.

It might not be related, but I'm also getting a blank page when going to cron.php, but in my recent log entries, it shows that it was run.

thanks

Comments

ericpai’s picture

It seems that the _system_theme_data() function in system.module is looking for for stylesheets? I added another stylesheet to my themes .info file and one of the warnings went away. Now there is still one warning line like this: "warning: Invalid argument supplied for foreach() in /home/drupal/modules/system/system.module on line 876." Here is my .info file's stylesheets:

stylesheets[all][] = style.css
stylesheets[all][] = css/prettyPhoto.css
stylesheets[print][] = print.css

Am I missing some default stylesheet that Drupal is looking for?

ericpai’s picture

Issue tags: +.info file warning stylesheets scripts system.module

Anyone know what the problem is? Here are all ther css and js files in my .info file:

stylesheets[all][] = style.css
stylesheets[print][] = print.css

scripts[] = misc/jquery.js
scripts[] = js/tabs.js
scripts[] = js/cufon-yui.js
scripts[] = js/Swis721_BlkCn_BT_400.font.js
scripts[] = js/Arial_700.font.js
scripts[] = js/imagepreloader.js
;scripts[] = js/jquery.prettyPhoto.js
scripts[] = js/cufon-replace.js
scripts[] = js/swfobject.js

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.

apaderno’s picture

Version: 6.19 » 6.x-dev
Issue summary: View changes
Issue tags: -.info file warning stylesheets scripts system.module

I am removing issue tags used from one to four issues. I apologize for bumping the issue.