Mario. Web Developer, Snowboarding Addict

Drupal 'Undefined index: distribution_name' issue

Was migrating a few sites between Drupal-7.7 and Drupal-7.10 platforms and came across the following PHP notice:

Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (line 202 of /srv/drupal-7.10/includes/install.inc).

According to the related issue on drupal.org it looks like the install profile is disabled for lots of different reasons and core doesn't allow for that.

Doesn't look like this will be resolved in D7, so someone has provided a patch to Re-enable install profiles that may have been disabled by drush.

To apply it:

cd /your/drupal/base/directory
wget http://drupal.org/files/issues/fix_disabled_profiles.patch
patch -p1 --dry-run < fix_disabled_profiles.patch

If all is well, run patch without --dry-run, and then run Drupal's update.php to restore disabled profiles.

Tags:  drupal7 tidbit

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div> <h3> <h4>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <drupal5>, <drupal6>, <javascript>, <php>, <text>.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.