Aller au contenu
Invision Board France

[Beta 2 Refresh 1] - Erreurs SQL à l'installation


Erwin

Messages recommandés

  • Administration

Petite note pour ceux qui voudraient tester la beta 2 d'IP.Board 3.0.0, deux erreurs SQL persistent à l'installation dans le pack actuel.

 

Le premier bug provoque cette erreur (visible dans le fichier .cgi sql_error_log qui sera généré dans le dossier cache) :

Error: Specified key was too long; max key length is 1000 bytes

Pour résoudre ce problème, ouvrez /admin/applications/core/setup/versions/install/sql/core_mysql_table.php. Trouver :

$TABLE[] = "CREATE TABLE permission_index (
 perm_id int(10) unsigned NOT NULL auto_increment,
 app varchar(255) NOT NULL,
 perm_type varchar(255) NOT NULL,
 perm_type_id int(10) unsigned NOT NULL,
 perm_view text NOT NULL,
 perm_2 text NOT NULL,
 perm_3 text NOT NULL,
 perm_4 text NOT NULL,
 perm_5 text NOT NULL,
 perm_6 text NOT NULL,
 perm_7 text NOT NULL,
 owner_only tinyint(1) NOT NULL default '0',
 friend_only tinyint(1) NOT NULL default '0',
 authorized_users varchar(255) default NULL,
 PRIMARY KEY  (perm_id),
 KEY perm_index (perm_type,perm_type_id),
 KEY perm_type (app,perm_type,perm_type_id)
);";

Remplacer par :

$TABLE[] = "CREATE TABLE permission_index (
 perm_id int(10) unsigned NOT NULL auto_increment,
 app varchar(32) NOT NULL,
 perm_type varchar(32) NOT NULL,
 perm_type_id int(10) unsigned NOT NULL,
 perm_view text NOT NULL,
 perm_2 text NOT NULL,
 perm_3 text NOT NULL,
 perm_4 text NOT NULL,
 perm_5 text NOT NULL,
 perm_6 text NOT NULL,
 perm_7 text NOT NULL,
 owner_only tinyint(1) NOT NULL default '0',
 friend_only tinyint(1) NOT NULL default '0',
 authorized_users varchar(255) default NULL,
 PRIMARY KEY  (perm_id),
 KEY perm_index (perm_type,perm_type_id),
 KEY perm_type (app,perm_type,perm_type_id)
);";

 

Le second bug provoque cette erreur si vous avez spécifié un préfixe de tables :

Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`rc_status_sev` (`id`, `status`, `points`, `img`, `is_png`, `width`, `height`) V' at line 1

Pour le corriger, ouvrez /admin/applications/core/setup/versions/install/sql/core_mysql_inserts.php. Trouver :

INSERT INTO `rc_status_sev` (`id`, `status`, `points`, `img`, `is_png`, `width`, `height`) VALUES

Remplacer par :

INSERT INTO rc_status_sev (id, status, points, img, is_png, width, height) VALUES

 

L'installation devrait se dérouler normalement par la suite.

 

Tickets de bugs @IPS:

#12106 Specified key was too long; max key length is 1000 bytes

#12141 SQL error

 

N.B. : ne tenez pas compte des warnings PHP durant l'installation.

N.B. 2 : n'oubliez pas qu'il ne s'agit que d'une bêta, ne tentez pas une installation en production...

Lien vers le commentaire
Partager sur d’autres sites

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

En utilisant ce site, vous êtes d’accords avec nos Conditions d’utilisation. Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookies, sinon nous supposerons que vous êtes d’accord pour continuer.