Valider 1c74019d rédigé par esj's avatar esj
Parcourir les fichiers

La bonne solution pour le pb identifié dans [13677] qui provoquait une boucle...

La bonne solution pour le pb identifié dans [13677] qui provoquait une boucle sur le login lors d'une tentative de mise à jour d'une version < [8097]: on profite du {{{SELECT * FROM spip_meta}}} pour regarder si le champ {{{impt}}} existe, afin de ne pas le mentionner dans le {{{UPDATE}}} qui suit si c'est une version qui ne l'a pas. Du coup le {{{secret_du_site}}} et l'{{{alea_ephemere}}} sont bien enregistrés et l'authentification se passe normalement.

Au passage il apparait que la mise à jour [11790] avait une erreur de syntaxe SQL qui faisait que l'index à virer ne l'a pas été. C'est pas dramatique, je retire complètement l'instruction, ça fait désordre. Cela dit il y a pas mal d'autres erreurs SQL à la mise à jour d'une 1.8.3 que je ne m'explique pas bien, je les mets ici avis:

{{{
Jan 31 09:54:37 127.0.0.1 (pid 344) Duplicate column name 'url_propre' - ALTER TABLE `spip183`.spip_syndic ADD `url_propre` VARCHAR(255) NOT NULL
Jan 31 09:54:37 127.0.0.1 (pid 344) Duplicate key name 'url_propre' - ALTER TABLE `spip183`.spip_syndic ADD INDEX `url_propre` (`url_propre`)
Jan 31 09:54:37 127.0.0.1 (pid 344) Duplicate key name 'url_propre' - ALTER TABLE `spip183`.spip_auteurs ADD INDEX `url_propre` (`url_propre`)
Jan 31 09:54:37 127.0.0.1 (pid 344) Duplicate key name 'idx' - ALTER TABLE `spip183`.spip_forum ADD INDEX `idx` (`idx`)
Jan 31 09:54:37 127.0.0.1 (pid 344) Table 'spip183.spip_ajax_fonc' doesn't exist - ALTER TABLE `spip183`.spip_ajax_fonc DROP `id_auteur`
Jan 31 09:54:37 127.0.0.1 (pid 344) Unknown table 'spip_ajax_fonc' - DROP TABLE `spip183`.spip_ajax_fonc
Jan 31 09:54:38 127.0.0.1 (pid 344) Unknown table 'spip_index' - DROP TABLE `spip183`.spip_index
Jan 31 09:54:38 127.0.0.1 (pid 344) 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 'id_message' at line 1 - ALTER TABLE `spip183`.spip_forum DROP INDEX id_message id_message
Jan 31 09:54:38 127.0.0.1 (pid 344) Unknown column 'tables' in 'spip_groupes_mots' - ALTER TABLE `spip183`.spip_groupes_mots CHANGE `tables` tables_liees text DEFAULT '' NOT NULL AFTER obligatoire
Jan 31 09:54:39 127.0.0.1 (pid 344) Duplicate column name 'id_objet' - ALTER TABLE `spip183`.spip_documents_liens ADD id_objet bigint(21) DEFAULT '0' NOT NULL AFTER id_document
Jan 31 09:54:39 127.0.0.1 (pid 344) Duplicate column name 'objet' - ALTER TABLE `spip183`.spip_documents_liens ADD objet VARCHAR (25) DEFAULT '' NOT NULL AFTER id_objet
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown column 'id_article' in 'where clause' - 
UPDATE `spip183`.spip_documents_liens
SET id_objet=id_article,objet='article'
WHERE id_article IS NOT NULL AND id_article>0
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown column 'id_rubrique' in 'where clause' - 
UPDATE `spip183`.spip_documents_liens
SET id_objet=id_rubrique,objet='rubrique'
WHERE id_rubrique IS NOT NULL AND id_rubrique>0
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown column 'id_breve' in 'where clause' - 
UPDATE `spip183`.spip_documents_liens
SET id_objet=id_breve,objet='breve'
WHERE id_breve IS NOT NULL AND id_breve>0
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown column 'id_auteur' in 'where clause' - 
UPDATE `spip183`.spip_documents_liens
SET id_objet=id_auteur,objet='auteur'
WHERE id_auteur IS NOT NULL AND id_auteur>0
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown column 'id_forum' in 'where clause' - 
UPDATE `spip183`.spip_documents_liens
SET id_objet=id_forum,objet='forum'
WHERE id_forum IS NOT NULL AND id_forum>0
Jan 31 09:54:39 127.0.0.1 (pid 344) Can't DROP 'id_article'; check that column/key exists - ALTER TABLE `spip183`.spip_documents_liens DROP id_article
Jan 31 09:54:39 127.0.0.1 (pid 344) Can't DROP 'id_rubrique'; check that column/key exists - ALTER TABLE `spip183`.spip_documents_liens DROP id_rubrique
Jan 31 09:54:39 127.0.0.1 (pid 344) Can't DROP 'id_breve'; check that column/key exists - ALTER TABLE `spip183`.spip_documents_liens DROP id_breve
Jan 31 09:54:39 127.0.0.1 (pid 344) Can't DROP 'id_auteur'; check that column/key exists - ALTER TABLE `spip183`.spip_documents_liens DROP id_auteur
Jan 31 09:54:39 127.0.0.1 (pid 344) Can't DROP 'id_forum'; check that column/key exists - ALTER TABLE `spip183`.spip_documents_liens DROP id_forum
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_auteurs' doesn't exist - 
SELECT *
FROM `spip183`.spip_documents_auteurs
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_auteurs' doesn't exist - 
SELECT *
FROM spip_documents_auteurs
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_auteur' doesn't exist - 
SELECT *
FROM `spip183`.spip_documents_auteur
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_auteur' doesn't exist - 
SELECT *
FROM spip_documents_auteur
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_forums' doesn't exist - 
SELECT *
FROM `spip183`.spip_documents_forums
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_forums' doesn't exist - 
SELECT *
FROM spip_documents_forums
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_forum' doesn't exist - 
SELECT *
FROM `spip183`.spip_documents_forum
Jan 31 09:54:39 127.0.0.1 (pid 344) Table 'spip183.spip_documents_forum' doesn't exist - 
SELECT *
FROM spip_documents_forum
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown table 'spip_documents_auteurs' - DROP TABLE `spip183`.spip_documents_auteurs
Jan 31 09:54:39 127.0.0.1 (pid 344) Unknown table 'spip_documents_syndic' - DROP TABLE `spip183`.spip_documents_syndic
}}}
parent 1b145f8a
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter