Hello,
Par hasard que je regardais les logs, je suis tombé sur ça dans le log http.error :
[Wed Nov 13 21:51:01.277878 2019] [:error] [pid 1371] [client 127.0.0.1:53000] PHP Fatal error: Uncaught Exception: [MySQL] Error code : 23000 (1062). Duplicate entry '78-MOTDETAT' for key 'unique' : INSERT INTO `cmd` SET `id` = :id, `logicalId` = :logicalId, `generic_type` = :generic_type, `eqType` = :eqType, `name` = :name, `order` = :order, `type` = :type, `subType` = :subType, `eqLogic_id` = :eqLogic_id, `isHistorized` = :isHistorized, `unite` = :unite, `configuration` = :configuration, `template` = :template, `display` = :display, `value` = :value, `isVisible` = :isVisible, `alert` = :alert in /var/www/html/core/class/DB.class.php:101
Stack trace:
#0 /var/www/html/core/class/DB.class.php(157): DB::Prepare('INSERT INTO `cm...', Array, 0)
#1 /var/www/html/core/class/cmd.class.php(948): DB::save(Object(teleinfoCmd))
#2 /var/www/html/plugins/teleinfo/core/class/teleinfo.class.php(154): cmd->save()
#3 /var/www/html/plugins/teleinfo/core/php/jeeTeleinfo.php(140): teleinfo::createCmdFromDef('811775959338', 'MOTDETAT', '000000')
#4 {main}
thrown in /var/www/html/core/class/DB.class.php on line 101
Cette erreur se reproduit toutes les 30 secondes.
Le plugin téléinfo fonctionne bien malgré tout, sans problème particulier, mais tant qu’à faire, qu’est-ce que je devrais faire pour éradiquer cette erreur ?
Merci