Hi Everyone,

I've made a clean new install of drupal. everything works except that i get this error message on every page :
warning: Invalid argument supplied for foreach() in [website]/includes/theme.inc on line 485.
warning: Invalid argument supplied for foreach() in [website]/includes/theme.inc on line 490.

Any clue anyone ? Did i mess with something ?

i've tried changing themes as it seems to corresponds to theme and css loading problem but nothing happens : the theme is perfectly working but i still get these 2 lines on top of each pages...

Need Help !

Thx.

Odo

Comments

jsimonis’s picture

Quick tip - whenever you get an error, try a google search like this:

theme.inc on line 485 site:drupal.org

I find it's the quickest way to find a solution to errors.

When I did the search, I found an item outlaying a few solutions here: http://groups.drupal.org/node/56298

Hope this helps!

caktux’s picture

Just visit /admin/build/themes for list_theme() to refresh your list of themes, usually happens after deleting a theme from a multisite installation.

caktux’s picture

Anyone knows if something could be done about this, maybe make list_theme() refresh on cron? Might be fixed in D7 :)

chaselee’s picture

Hi,

My situation is a little odd, so my solution may not apply. I was moving from Drupal 5 to 6 in a closed multi-site environment, so I was doing the migration via a database dump and import.

I had to go to the system table and edit the info field. Somehow the type had been changed from text to varchar (255), which truncated the info being passed so that references to stylesheets and such were left out.

-Chase

Odolyte’s picture

Thanks everyone