I run a Debian system and update it using apt-get upgrade. This time around it wanted to upgrade Drupal from 4.3.2 to 4.4.1. So I thought that I'd let it and see what happned. Actually, it did pretty well. Congrats to the package maintainer. Here are the problems that I found and the fixes. There may be others problems lurking around, and I'll update this article if I find some and I have the time.

Problem 1: I got a cron error, a syntax error in cron.sh. Tracked it down to the use of "-gt" in a comparison when it should have been "!=". That revealed problem 3 below.

Problem 2: Not really a problem. I read somewhere that I had to manually update the database before running the update script so I updated the database and ran the update script and got 3 errors. Two were because I'd updated the database by hand, so that is apparently not necessary. The third was in the execution of "ALTER TABLE {feed} ALTER COLUMN etag SET NOT NULL ;". I don't think it is serious.

Problem 3: I got "warning init_theme(): Failed opening '' for inclusion (include path='.,/usr/share/php,/usr/share/pear') in /usr/share/drupal/includes/theme.inc on line 51.". Did I mention that I run PostgreSQL? You'd likely get a slightly different message with MySQL. This was solved by the article http://drupal.org/node/view/7451.

Problem 4: A continuation of Problem 3. The article suggests deleting 'default_theme' from the 'variable' table. This didn't seem to have any effect. Neither did moving the old themes directory elswhere. What *did* do the trick was to ignore the error messages, navigate to the themes in the admin menus, (administer->configuration->themes) and disable them all, save the configuration, whereupon the new themes appear, and enable the ones that you want. I had to do it for my user too, so I hope that you don't have to do it for *all* users! This solved Problem 3 and the second part of Problem 1 too. You may have to perform all three steps - I don't know which one or ones actually fixed the problem.

Problem 5: All the images seem to be missing, including drupalicon.gif. I've not solved this one yet. It may be my mis-configuration, or they may be missing in the package, I don't know yet.

I may have to update the modules that I use - I've not got that far yet.

However, a big pat on the back for the package maintainer, though. An excellent job!

Cheers,

Cliff

Comments

cliffp’s picture

warning: Invalid argument supplied for foreach() in /home/myaccount/public_html/drupal/modules/user.module on line 981.

This is the same as http://drupal.org/node/view/7919.

I made sure that I reinstalled all the extra modules and the problem went away.

Cheers,

Cliff