I've just tried an upgrade from Drupal 5.1 to 6.3, which gave me more than a dozen instances of the following two error lines:

* warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/theme.inc on line 443.
* warning: Invalid argument supplied for foreach() in /path/to/drupal/includes/theme.inc on line 448.

Are the two versions too far apart for a direct upgrade? If so, what version should I use as a stepping stone?

Comments

robertdouglass’s picture

If you have a custom theme then you need to follow these instructions: http://drupal.org/node/132442

- Robert Douglass

-----
my Drupal book

Rudolf-1’s picture

Thanks. I should have mentioned this: I'm using a Zen-derived theme on the site. I forgot to switch it off before first attempting the upgrade and got the errors. Those errors reminded me that I had forgotten to switch the custom theme off, so I overwrote the 6.3 files with the 5.1 distro, entered the admin section and changed the theme to Chameleon, then overwrote the files with the 6.3 distro again and tried a second upgrade, which, however, failed with the same errors. As the custom theme was switched off during the second attempt, how did the error manage to persist?

Rudolf-1’s picture

I managed to upgrade simply by switching to the Garland theme and trying again.

s.daniel’s picture

In case someone searches for this error: In my case it appeared when I had umlauts (üäö) in the describtion of a region.

perandre’s picture

Thank you so much! I had a "ø" in the decription of the theme in the .info file, and was all confused by these errors. Now I know what not to do :)

AndriaD’s picture

I just upgraded two sites to the new 6.3, one site was 6.1, and the other was 6.2. Both were running one of the new 6.x themes, but after the upgrade, only the distribution default themes show up at all -- no mention of the many new themes I've been trying out, all since 6.x first started. So where did they go, and how do I get them back?

*puzzled*

s.daniel’s picture

This seems like a seperate error. You might want to consider opening a new thread.

My first guess would be that you have put the theme folderst in the /themes/ folder and not it /sites/all/themes/ or /sites/default/themes/ like you should and deleted the /themes/ folder wile upgrading. Are the themes still in the themes folder?