Anomalie #993
ferméBug suite a mise à jour Galette 0.8.3
100%
Description
Bonjour,
J'ai procédé à une mise à jour de Galette vers la version 0.8.3 (version de départ 0.8.1) et depuis cela il est impossible d'obtenir l'affichage d'une fiche adhérent.
Voici un extrait du fichier error.log qui se créé sur la racine de l'hébergement de Galette.
[28-Nov-2016 18:43:52 Europe/Paris] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE23000: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`seriefr_galette`.`galette_fields_config`, CONSTRAINT `galette_fields_config_ibfk_1` FOREIGN KEY (`id_field_category`) REFERENCES `galette_fields_categories` (`id_field_category`))' in /home/seriefr/public_html/adhesion/includes/Zend-2.3.7/Zend/Db/Adapter/Driver/Pdo/Statement.php:239
Stack trace:
#0 /home/seriefr/public_html/adhesion/includes/Zend-2.3.7/Zend/Db/Adapter/Driver/Pdo/Statement.php(239): PDOStatement->execute()
#1 /home/seriefr/public_html/adhesion/lib/Galette/Entity/FieldsConfig.php(814): Zend\Db\Adapter\Driver\Pdo\Statement->execute(Array)
#2 /home/seriefr/public_html/adhesion/lib/Galette/Entity/FieldsConfig.php(315): Galette\Entity\FieldsConfig->_insert(Object(Galette\Core\Db), Array)
#3 /home/seriefr/public_html/adhesion/lib/Galette/Entity/FieldsConfig.php(154): Galette\Entity\FieldsConfig->_checkUpdate()
#4 /home/seriefr/public in /home/seriefr/public_html/adhesion/includes/Zend-2.3.7/Zend/Db/Adapter/Driver/Pdo/Statement.php on line 244
Avez-vous une solution à m'apporter svp ?
Merci d'avance !
Sylvain
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
- Assigné à mis à Johan Cwiklinski
Est ce que la table galette_fields_categories
contient quelque chose ?
Mis à jour par Sylvain Herbiet il y a plus de 7 ans
Johan Cwiklinski a écrit :
Est ce que la table
galette_fields_categories
contient quelque chose ?
Merci pour votre réponse rapide ! :-)
Oui cette table contient 3 lignes, voici le résultat de la requête :
Base de données: seriefr_galette
Généré le: Lun 28 Novembre 2016 à 19:52
Généré par: phpMyAdmin 4.0.10.14 / MySQL 5.6.30-cll-lve
Requête SQL: SELECT * FROM `galette_fields_categories` LIMIT 0, 30 ;
Lignes: 3
id_field_category table_name category position
1 adherents Identity 1
2 adherents Galette-related data 2
3 adherents Contact information 3
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
OK, donc cette table possède le bon contenu... C'est étrange :(
Et il y a quelque chose dans la table galette_fields_config
? Il devrait y avoir 38 lignes là dedans si je ne dis pas de bêtises.
Mis à jour par Sylvain Herbiet il y a plus de 7 ans
Johan Cwiklinski a écrit :
OK, donc cette table possède le bon contenu... C'est étrange :(
Et il y a quelque chose dans la table
galette_fields_config
? Il devrait y avoir 38 lignes là dedans si je ne dis pas de bêtises.
Ah non, 37 lignes ! :-o
Base de données: seriefr_galette
Généré le: Lun 28 Novembre 2016 à 20:02
Généré par: phpMyAdmin 4.0.10.14 / MySQL 5.6.30-cll-lve
Requête SQL: SELECT * FROM `galette_fields_config`;
Lignes: 37
table_name field_id required visible position id_field_category
adherents activite_adh 0 1 7 2 [->]
adherents adresse_adh 0 1 0 3 [->]
adherents adresse2_adh 0 1 1 3 [->]
adherents bool_admin_adh 0 1 8 2 [->]
adherents bool_display_info 0 1 10 2 [->]
adherents bool_exempt_adh 0 1 9 2 [->]
adherents cp_adh 1 1 2 3 [->]
adherents date_crea_adh 0 1 5 2 [->]
adherents date_echeance 0 1 8 1 [->]
adherents date_modif_adh 0 1 6 2 [->]
adherents ddn_adh 0 1 5 1 [->]
adherents email_adh 0 1 7 3 [->]
adherents fingerprint 0 0 13 3 [->]
adherents gpgid 0 0 12 3 [->]
adherents gsm_adh 0 1 6 3 [->]
adherents icq_adh 0 0 9 3 [->]
adherents id_adh 0 0 0 1 [->]
adherents id_statut 0 1 0 2 [->]
adherents info_adh 0 1 1 2 [->]
adherents info_public_adh 0 1 2 2 [->]
adherents jabber_adh 0 0 11 3 [->]
adherents lieu_naissance 0 1 10 1 [->]
adherents login_adh 1 1 3 2 [->]
adherents mdp_adh 1 1 4 2 [->]
adherents msn_adh 0 0 10 3 [->]
adherents nom_adh 1 1 0 1 [->]
adherents pays_adh 0 1 4 3 [->]
adherents pref_lang 0 1 9 1 [->]
adherents prenom_adh 0 1 1 1 [->]
adherents prof_adh 0 1 7 1 [->]
adherents pseudo_adh 0 1 3 1 [->]
adherents sexe_adh 0 1 6 1 [->]
adherents societe_adh 0 0 2 1 [->]
adherents tel_adh 0 1 5 3 [->]
adherents titre_adh 0 1 4 1 [->]
adherents url_adh 0 1 8 3 [->]
adherents ville_adh 1 1 3 3 [->]
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
OK, ça me semble normal qu'il tente une mise à jour ; un peut moins qu'elle échoue :D
Je pense que la requête suivante réparera le problème :INSERT INTO `galette_fields_config` (`table_name`, `field_id`, `required`, `visible`, `position`, `id_field_category`) VALUES ('adherents', 'parent_id', 0, 0, 14, 3);
Mis à jour par Sylvain Herbiet il y a plus de 7 ans
Johan Cwiklinski a écrit :
OK, ça me semble normal qu'il tente une mise à jour ; un peut moins qu'elle échoue :D
Je pense que la requête suivante réparera le problème :
INSERT INTO `galette_fields_config` (`table_name`, `field_id`, `required`, `visible`, `position`, `id_field_category`) VALUES ('adherents', 'parent_id', 0, 0, 14, 3);
J'ai sauvegardé la base de données au cas où et effectué cette requête.
La fiche adhérent s'affiche maintenant correctement !
Bravo pour votre réactivité remarquable ! Merci encore ! ;-)
Bonne soirée. Sylvain
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
Content que ça ait fonctionné... Reste à comprendre pourquoi Galette n'a pas fait le boulot en premier lieu :/
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
- Catégorie mis à Database
- Statut changé de Nouveau à In Progress
À priori, le correctif : https://github.com/galette/galette/commit/cd8da6f0849734ab2af065c5bbb1e75c55931857
Mis à jour par Johan Cwiklinski il y a plus de 7 ans
- Statut changé de In Progress à Résolu
- % réalisé changé de 0 à 100
Corrigé dans la version 0.8.3.2