Submitted by misterloup on
bonjour
je vient de migrer de drupal 6 à drupal 7.40;
j'ai paramétrer le settings.php avec les nouvelles données:
*/
* $databases['default']['default'] = array(
* 'driver' => 'mysql',
* 'database' => 'vetosentdrupal',
* 'username' => 'vetosentdrupal',
* 'password' => '********',
* 'host' => 'localhost',
* 'prefix' => '',
* );
/**
* Access control for update.php script.
*
* If you are updating your Drupal installation using the update.php script but
* are not logged in using either an account with the "Administer software
* updates" permission or the site maintenance account (the account that was
* created during installation), you will need to modify the access check
* statement below. Change the FALSE to a TRUE to disable the access check.
* After finishing the upgrade, be sure to open this file again and change the
* TRUE back to a FALSE!
*/
$update_free_access = TRUE;
mais quand j'essaye de lancer update.php, j'obtiens le message d'erreur suivant:
Parse error: syntax error, unexpected '{' in /home/vetosent/www/update.php on line 313
à la ligne 313 du fichier update.php j'ai "try":
Calls to user_access() might fail during the Drupal 6 to 7 update process,
// so we fall back on requiring that the user be logged in as user #1.
try {
require_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'user') . '/user.module';
return user_access('administer software updates');
une aide serait la bienvenue
MERCI