Actions
Anomalie #19450
ferméUpdateVersionSQL en erreur sur le tag 21.03.14
Début:
12/01/2022
Echéance:
Description
La création de nouvelle instance provoque l'erreur suivante :
{
"message": "Slim Application Error",
"exception": [
{
"type": "Exception",
"code": 0,
"message": "SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint \"attachment_types_unique_key\"\nDETAIL: Key (type_id)=(shipping_deposit_proof) already exists.",
"file": "\/var\/www\/html\/MaarchCourrier\/src\/core\/models\/DatabasePDO.php",
"line": 159,
"trace": [
"#0 \/var\/www\/html\/MaarchCourrier\/src\/core\/models\/DatabaseModel.php(331): SrcCore\\models\\DatabasePDO->exec('-- ************...')",
"#1 \/var\/www\/html\/MaarchCourrier\/src\/app\/versionUpdate\/controllers\/VersionUpdateController.php(263): SrcCore\\models\\DatabaseModel::exec('-- ************...')",
"#2 \/var\/www\/html\/MaarchCourrier\/src\/app\/versionUpdate\/controllers\/VersionUpdateController.php(294): VersionUpdate\\controllers\\VersionUpdateController::executeSQLUpdate(Array)",
"#3 [internal function]: VersionUpdate\\controllers\\VersionUpdateController->updateSQLVersion(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)",
"#4 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/Handlers\/Strategies\/RequestResponse.php(40): call_user_func(Array, Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)",
"#5 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/Route.php(281): Slim\\Handlers\\Strategies\\RequestResponse->__invoke(Array, Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)",
"#6 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(117): Slim\\Route->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#7 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/Route.php(268): Slim\\Route->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#8 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/App.php(503): Slim\\Route->run(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#9 \/var\/www\/html\/MaarchCourrier\/rest\/index.php(52): Slim\\App->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#10 [internal function]: Closure->{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))",
"#11 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)",
"#12 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))",
"#13 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))",
"#14 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(117): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#15 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/App.php(392): Slim\\App->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#16 \/var\/www\/html\/MaarchCourrier\/vendor\/slim\/slim\/Slim\/App.php(297): Slim\\App->process(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))",
"#17 \/var\/www\/html\/MaarchCourrier\/rest\/index.php(729): Slim\\App->run()",
"#18 {main}"
]
}
]
}
cet id a été ajouté dans la base de donnée, il faudrait le supprimer afin que le script d'update puisse continuer.
Actions