distribution_name notice

Due to a bug in Drupal core you may encounter this PHP notice:

Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (line 202)

For the most part this will not cause major problems, but can cause an issue during updates - if the update installer encounters an error it can abort the update process. In this case you really need to fix this problem.

The Fix

You need to edit the database - sorry but this is the only way to fix this very annoying issue.

Locate the System table in the database, find the "profiles/demo_profile/demo_profile.profile", and change the status from 0 to 1.

You can also run this SQL query on the database:

UPDATE `my_database_name`.`system` SET `status` = '1',
`info` = '' WHERE `system`.`filename` = 'profiles/demo_profile/demo_profile.profile';

Last updated 31st July, 2012 - 5:23am