Migration and Drupal 5.x

Events happening in the community are now at Drupal community events on www.drupal.org.
ohthehugemanatee's picture

I've had trouble migrating sites from my old drupal 5 platforms (5.17 and 5.19) to drupal 6. Aegir seems to have no problem with managing those sites, but when I try to migrate, it fails to create the package list to check compatibility. The error I get is:

* warning: array_keys() [function.array-keys]: The first argument should be an array in /var/aegir/drupal-6.13/profiles/hostmaster/modules/hosting/migrate/hosting_migrate.module on line 122.
* warning: Invalid argument supplied for foreach() in /var/aegir/drupal-6.13/profiles/hostmaster/modules/hosting/migrate/hosting_migrate.module on line 122.

The rest of Aegir ignores these warnings of course, and just asks me if I really want to migrate. What's interesting is, I even migrated one of the sites manually to 6.13 without much problem... and now trying to move it to 6.14 I still get the same error! I guess there's something in the module database, or maybe in settings.php that's legacy from Drupal 5 (potentially even 4.7) and is crashing hosting_migrate.module. I'm not sure where to go from here to debug further or fix this problem. Any advice?

Comments

Run a Verify of your site

mig5's picture

Run a Verify of your site first and that foreach exception should go away next time you try and view the Migrate table.

It'll bring the aegir database up to date with its knowledge of your site and what packages etc are installed.

Wow - I can't believe that

ohthehugemanatee's picture

Wow - I can't believe that worked. All of these sites had been verified before, when I first set up Aegir. None of them have been changed since then. What's the difference? Why does this work?

Up until now my theory has

mig5's picture

Up until now my theory has been that if a site has had a module added/removed, or enabled/disabled, since the last verification, that is the cause for the discrepancy, and hence a verify is needed to sync everything back up.

However if you are saying nothing at all has changed on the site since the last verification, ie no theme or module changes at all, then I'm not sure. Feel free to open a ticket in the Hosting issue queue (there may be one already).

Possibly Adrian or Anarcat have a better explanation for this, but until now that's been my understanding.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: