Aller au contenu


- - - - -

Erreur MySQL lors de l'installation d'un pack de langue



Si lors des étapes d'installation/mise à jour
  • 7. Dans le menu du pack Français (France), choisissez "Translate Externally..."
  • 3. Dans le menu du pack Français (France), choisissez "Traduction externe..."
vous rencontrez sans cesse l'erreur suivante :

Citation

votre_site Driver Error
There appears to be an error with the database.
If you are seeing this page, it means there was a problem communicating with our database. Sometimes this error is temporary and will go away when you refresh the page. Sometimes the error will need to be fixed by an administrator before the site will become accessible again.

You can try to refresh the page by clicking here

voici les modifications à réaliser pour ne plus les avoir...

Dans ips_kernel/classDbMysqlClient.php :
Rechercher :

} // end class

Ajouter avant

public function ping()
		{
				return mysql_ping($this->connection_id);
		}

Dans ips_kernel/classDbMysqliClient.php :
Rechercher :

} // end class

Ajouter avant:

public function ping()
		{
				return mysqli_ping($this->connection_id);
		}

Dans admin/applications/core/modules_admin/languages/manage_languages.php
Rechercher dans la fonction translateExtSplash :


/* Sort files */
						ksort( $sessionData['files'] );
					  
						/* Save session */


Remplacer par :

/* Sort files */
						ksort( $sessionData['files'] );
					  
						if (!$this->DB->ping())
						{
								$this->DB->obj['sql_user'] = ipsRegistry::$settings['sql_user'];
								$this->DB->obj['sql_pass'] = ipsRegistry::$settings['sql_pass'];
								$this->DB->obj['sql_host'] = ipsRegistry::$settings['sql_host'];
								$this->DB->connect();
						}
						/* Save session */


Tuto original de Youp3