Anomalie #1556
closedErreur initialisation PDF Models avec MariaDB 10.5
0%
Description
Lors de l'installation ou d'une mise à jour, si la base de données est MariaDB 10.5 une erreur se produit sur la tâche "PDF Models".
Fonctionne correctement avec MariaDB 10.4
Version docker de Galette 0.9.4.2
Updated by Guillaume Agniéray over 1 year ago
Je confirme le problème lors d'une nouvelle installation
Testé sur Debian 11, MariaDB 10.5.11, avec galette 0.9.2, 0.9.4.2 et dev
127.0.0.1 - 2021-09-16 13:26:20 - ERROR - Query error: DELETE FROM `galette_pdfmodels` PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`galette`.`galette_pdfmodels`, CONSTRAINT `galette_pdfmodels_ibfk_1` FOREIGN KEY (`model_parent`) REFERENCES `galette_pdfmodels` (`model_id`) ON UPDATE CASCADE) in /var/www/vhosts/galette-0.9.2/galette/vendor/laminas/laminas-db/src/Adapter/Driver/Pdo/Connection.php:378 Stack trace: #0 /var/www/vhosts/galette-0.9.2/galette/vendor/laminas/laminas-db/src/Adapter/Driver/Pdo/Connection.php(378): PDO->query() #1 /var/www/vhosts/galette-0.9.2/galette/vendor/laminas/laminas-db/src/Adapter/Adapter.php(204): Laminas\Db\Adapter\Driver\Pdo\Connection->execute() #2 /var/www/vhosts/galette-0.9.2/galette/lib/Galette/Core/Db.php(800): Laminas\Db\Adapter\Adapter->query() #3 /var/www/vhosts/galette-0.9.2/galette/lib/Galette/Repository/PdfModels.php(129): Galette\Core\Db->execute() #4 /var/www/vhosts/galette-0.9.2/galette/lib/Galette/Core/Install.php(1151): Galette\Repository\PdfModels->installInit() #5 /var/www/vhosts/galette-0.9.2/galette/install/steps/galette.php(47): Galette\Core\Install->initObjects() #6 /var/www/vhosts/galette-0.9.2/galette/webroot/installer.php(307): include_once('/var/www/vhosts...') #7 {main}
En vidant immédiatement les cookies du navigateur on peut accéder à la page de login et d'identifier.
Les modèles PDF sont bien présents et peuvent être modifiés sans qu'il y ait d'erreur.
Ensuite, lors de la mise à jour vers la version 0.9.4.2, l'erreur ne s'est pas présentée et la procédure s'est terminée normalement.
Idem en installant directement la version 0.9.4.2 puis un upgrade vers la version dev.
Par contre la version dev n'est pas impactée et son installation se termine normalement.
Updated by Johan Cwiklinski over 1 year ago
- Status changed from Nouveau to Commentaire
Guillaume Agnieray a écrit (#note-1):
Par contre la version dev n'est pas impactée et son installation se termine normalement.
En conclusion, c'est dores et déjà corrigé en 0.9.5 ou je me fourvoie ?
Updated by Johan Cwiklinski over 1 year ago
- Status changed from Commentaire to Résolu
OK, super, merci ;)
Updated by Johan Cwiklinski over 1 year ago
- Status changed from Résolu to Fermé
- Assignee set to Johan Cwiklinski
- Target version set to 0.9.5