in Web & Tech

Fixing Undefined index: distribution_name in drupal_install_profile_distribution_name()

After my latest (minor) Drupal update I kept on getting the following error message on the modules page:

Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (Zeile 207 von/srv/www/vhosts/badeninfreiburg.de/httpdocs/includes/install.inc).

I’ve only been using the default installation profile and never changed anything regarding that. This issue might happen after running update.php.

There are many proposed solutions floating around, but the one that did the trick for me was really simple:

To minimize the number of new comments asking for it, here’s a work-around for current Drupal 7 users: You need to enable the profile used to install Drupal by updating the system table. For example: UPDATE system SET status=1 WHERE name=’standard’; will enable the Standard profile. If you don’t know which profile was used, just use ‘standard’.

If you hesitate to run mysql commands you can also just use phpMyAdmin (or any other MySQL tool) and look for the column named standard inside the system table and change the field status from 0 to 1. This will (re-) enable the default installation profile.

Don’t do this is if you’re using any other installation profile than default and don’t blame me if it breaks things. As always when fiddling around with the database make sure you have a recent backup at hand.

Write a Comment

Comment