Notice при обновлении до Drupal 26 c Drupal 16

Главные вкладки

Аватар пользователя Megawing Megawing 19 марта 2014 в 0:43

Добрый день.
При обновлении выскочило замечание:
Notice: Undefined index: name в функции system_requirements() (строка 34 в файле /modules/system/system.install).
Notice: Undefined index: version в функции system_requirements() (строка 36 в файле modules/system/system.install).

Подскажите что с этим делать. Спасибо!

Вот куски кода:
Было в старой версии:
// Display the currently active installation profile, if the site
// is not running the default installation 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
);
}
}

Стало в новой:

// Display the currently active installation profile, if the site
// is not running the default installation 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'], 34 строка
'%profile' => $profile,
'%version' => $info['version'] 36 строка
)),
'severity' => REQUIREMENT_INFO,
'weight' => -9
);
}
}

Комментарии

Аватар пользователя Megawing Megawing 20 марта 2014 в 14:06

Уважаемые, пришел ответ от разработчика платной темы. Я правильно понимаю, что они рекомендуют редактировать базу данных, а затем редактировать файл mtt_profile из профиля?

Hello Dmitry,
thank you for contacting us and for choosing one of our products.

Regarding the notices under configuration page, we would like you to know that this is a known Drupal issue (minor) and appears after updating a Drupal installation with profile. I was (gtsopour – see comment #1) among the first mentioned this issue to the drupal.org community. You can see this issue here http://drupal.org/node/1170362. The mtt_profile profile was marked with a status of 0 after updating. In order to remove these notices, you should change the status of mtt_profile.profile module to 1 via phpMyAdmin.

You should find the mtt_profile.profile module row entry in the system table, edit this and change status from 0 to 1. Also, you should copy again the mtt_profile profile folder under profiles (you can find it inside the package you purchased from us), because in Drupal 7 profile is treated as a normal module. Finally, you should clear all caches through Administration » Configuration » Performance » Clear all caches.

Hope this helps! Don’t hesitate to contact us if you need further assistance. We will always be here to help you Smile

Thanks
George