Jump to content
Invision Board France
Sign in to follow this  

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


PersonalMode

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 :

 

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

Sign in to follow this  


User Feedback

Recommended Comments

There are no comments to display.



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.