Drupal 7.x et PHP 5.4

La documentation Drupal 6 n'est plus maintenue et en cours de dépublication.


Consultez le guide utilisateur Drupal en français directement sur drupal.org.

Bonjour,
j ai la version 7.31 de Drupal et mon hébergeur et passé en 5.4 PHP !
ce qui a tout planté...
réparation faite en refaisant passer mon site en PHP 5.3
donc :
Comment faire pour faire passer la version 7.31 compatible avec PHP 5.4 ? ou vas t il falloir attendre Drupal 8 ?

je précise que je suis pas un développeur java/PHP plutôt un assembleur ... :))

merci d avance

Version de Drupal : 

Commentaires

oui mais moi malheureusement lors du passage en PHP 5.4 de mon site par mon hébergeur je me suis retrouvé avec un message erreur des la page d accueil ! qui c est arrêté quand ils ont refait passer le site en 5.3
est ce du a un module ? je ne sais pas étant pas un développeur ! (le pourquoi de ma contrib)

voila le message :

Error
The website encountered an unexpected error. Please try again later.
Error message

Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in DatabaseConnection->__construct() (line 307 of /var/www/vhosts/FilerWeb07/bobicarte.net/httpdocs/drup/includes/database/database.inc).
Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in DatabaseConnection->__construct() (line 307 of /var/www/vhosts/FilerWeb07/bobicarte.net/httpdocs/drup/includes/database/database.inc).
Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in DatabaseConnection->__construct() (line 307 of /var/www/vhosts/FilerWeb07/bobicarte.net/httpdocs/drup/includes/database/database.inc).
Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in DatabaseConnection->__construct() (line 307 of /var/www/vhosts/FilerWeb07/bobicarte.net/httpdocs/drup/includes/database/database.inc).
PDOException: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client in lock_may_be_available() (line 167 of /var/www/vhosts/FilerWeb07/bobicarte.net/httpdocs/drup/includes/lock.inc).
Warning: PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in DatabaseConnection->__construct() (line 307 of /var/www/vhosts/FilerWeb07/bobicarte.net/httpdocs/drup/includes/database/database.inc).

Effectivement c'est un effet de bord du passage en PHP 5.4 / PDO.

Discussion sur le sujet ici : https://www.drupal.org/node/1984522

Une solution évoquée serait de supprimer les utilisateurs de la base (PAS la table Drupal users, mais mysql.user), puis de les re-créer (grant all on mabase.* to monuser@'localhost' identified by monpass).

Les données se trouvent dans le fichier settings.php de Drupal (sites/default/settings.php)