After installing TouchPro starter kit, I get this error:

Notice: Undefined index: distribution_name in drupal_install_profile_distribution_name() (line 202 of /home/herbavita/touchpro/includes/install.inc).

Any idea?

Comments

MacMladen’s picture

Title: Error » Error Undefined in status

After cleaning the cache, this pops:

    Notice: Undefined index: name in system_requirements() (line 39 of /home/herbavita/touchpro/modules/system/system.install).
    Notice: Undefined index: version in system_requirements() (line 41 of /home/herbavita/touchpro/modules/system/system.install).
JurriaanRoelofs’s picture

Assigned: Unassigned » JurriaanRoelofs

This is due to a drupal core bug, will work on a fix

Bitbull’s picture

JurriaanRoelofs, feedback appreciated. But could you be a little more specific about the core bug? And is there any workaround yet?

jbarrington’s picture

This seems to be more of a problem with Drupal Core and seems to affect all Starterkit Profile installations when the core is upgraded to a more recent version. One suggested solution I came across when researching this problem requires a simple change to a file in core. Unfortunately, changing the core means when the next upgrade takes place, this file is also updated and the problem returns:

After upgrading drupal a profile can display the following error:

Undefined index: name in system_requirements () (line 39 and 41)

To address these Notices, open a file in root directory modules/system/system.install and look at the lines 39 and 41 then replace the code:

Current Code:
/ / Display the Currently Active install profile, if the site
/ / Is not running the install default profile.
$ Profile = drupal_get_profile ();
if ( $ profile ! = 'standard' ) {
$ Info = system_get_info ( 'module' , $ profile );
$ Requirements [ 'install_profile' ] = array (
'Title' => $ t ( 'Install profile' ),
'Value' => $ t ( '% profile_name (% profile-% version)' , array (
'% Profile_name' => $ info [ 'name' ],
'% Profile' => $ profile ,
'% Version' => $ info [ 'version' ]
)),
'Severity' => REQUIREMENT_INFO,
'Weight' => -9
);
}
}

Change to:
/ / Display the Currently Active install profile, if the site is not running
/ / The default install profile and the profile is enabled.
$ Profile = drupal_get_profile ();
if ( $ profile ! = 'standard' ) {
$ Modules = module_list ();
if (isset ( $ modules [ $ profile ])) {
$ Info = system_get_info ( 'module' , $ profile );
$ Requirements [ 'install_profile' ] = array (
'Title' => $ t ( 'Install profile' ),
'Value' => $ t ( '% profile_name (% profile)' , array (
'% Profile_name' => $ info [ 'name' ],
'% Profile' => $ profile ,
)),
'Severity' => REQUIREMENT_INFO,
'Weight' => -9
);
}
}
}

Please remember, making changes to core is NOT recommended and if it is possible to use over-rides this is the preferred option

Hope this helps. JB

jbarrington’s picture

Also found this solution which worked for me following an upgrade to Drupal 7.14:

This error also appears after each new update of Drupal 7.
Solution:
Go to includes/install.inc and change line 202:

// Remove or comment out this line
return $info['distribution_name'];

// Add the following lines instead
if ( ! array_key_exists('distribution_name', $info)) $info['distribution_name'] = 'Drupal';
return $info['distribution_name'];

Save the file and Upload it, replacing the existing includes/install.inc