An error occurred
An error occurred during execution; please try again later.
Additional information:
Laminas\Db\Adapter\Exception\InvalidQueryException
- File:
-
/home/france-costumes-prod/www/vendor/laminas/laminas-db/src/Adapter/Driver/Pdo/Statement.php:243
- Message:
-
Statement could not be executed (23000 - 1452 - Cannot add or update a child row: a foreign key constraint fails (`france-costumes-prod`.`gsv_category`, CONSTRAINT `gsv_category_ibfk_2` FOREIGN KEY (`parent`) REFERENCES `gsv_category` (`id`)))
- Stack trace:
-
#0 /home/france-costumes-prod/www/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(391): Laminas\Db\Adapter\Driver\Pdo\Statement->execute() #1 /home/france-costumes-prod/www/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(349): Laminas\Db\TableGateway\AbstractTableGateway->executeUpdate() #2 /home/france-costumes-prod/www/module/Site/src/Model/CategoryTable.php(171): Laminas\Db\TableGateway\AbstractTableGateway->update() #3 /home/france-costumes-prod/www/module/Application/src/Controller/CategoryController.php(72): Site\Model\CategoryTable->save() #4 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Application\Controller\CategoryController->indexAction() #5 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch() #6 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners() #7 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil() #8 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/DispatchListener.php(138): Laminas\Mvc\Controller\AbstractController->dispatch() #9 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch() #10 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners() #11 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil() #12 /home/france-costumes-prod/www/public/index.php(72): Laminas\Mvc\Application->run() #13 {main}
Previous exceptions:
-
PDOException
- File:
-
/home/france-costumes-prod/www/vendor/laminas/laminas-db/src/Adapter/Driver/Pdo/Statement.php:238
- Message:
-
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`france-costumes-prod`.`gsv_category`, CONSTRAINT `gsv_category_ibfk_2` FOREIGN KEY (`parent`) REFERENCES `gsv_category` (`id`))
- Stack trace:
-
#0 /home/france-costumes-prod/www/vendor/laminas/laminas-db/src/Adapter/Driver/Pdo/Statement.php(238): PDOStatement->execute() #1 /home/france-costumes-prod/www/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(391): Laminas\Db\Adapter\Driver\Pdo\Statement->execute() #2 /home/france-costumes-prod/www/vendor/laminas/laminas-db/src/TableGateway/AbstractTableGateway.php(349): Laminas\Db\TableGateway\AbstractTableGateway->executeUpdate() #3 /home/france-costumes-prod/www/module/Site/src/Model/CategoryTable.php(171): Laminas\Db\TableGateway\AbstractTableGateway->update() #4 /home/france-costumes-prod/www/module/Application/src/Controller/CategoryController.php(72): Site\Model\CategoryTable->save() #5 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(77): Application\Controller\CategoryController->indexAction() #6 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch() #7 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners() #8 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(103): Laminas\EventManager\EventManager->triggerEventUntil() #9 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/DispatchListener.php(138): Laminas\Mvc\Controller\AbstractController->dispatch() #10 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch() #11 /home/france-costumes-prod/www/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners() #12 /home/france-costumes-prod/www/vendor/laminas/laminas-mvc/src/Application.php(331): Laminas\EventManager\EventManager->triggerEventUntil() #13 /home/france-costumes-prod/www/public/index.php(72): Laminas\Mvc\Application->run() #14 {main}