We tried installing your module on PS 8.2 with PHP 8.1 by installing the flagship-for-prestashop.zip file on the backoffice module page. The module installed fine, but when we clicked configure we got a 500 error. After enabling debug, we get the following stack trace when trying to access the back office:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '321-565-1' for key 'PRIMARY'
at line 153 in file classes/db/DbPDO.php
protected function _query($sql)
{
try {
return $this->link->query($sql);
} catch (PDOException $exception) {
throw new PrestaShopException($exception->getMessage(), (int) $exception->getCode(), $exception);
It looks like the module is trying to insert VALUES ('321', '565', '1', '2') when VALUES ('321', '565', '1', '1') already exists and the combination of the first three columns in the hook_module table IS the primary key.
We tried installing your module on PS 8.2 with PHP 8.1 by installing the flagship-for-prestashop.zip file on the backoffice module page. The module installed fine, but when we clicked configure we got a 500 error. After enabling debug, we get the following stack trace when trying to access the back office:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '321-565-1' for key 'PRIMARY' at line 153 in file classes/db/DbPDO.php
DbPDOCore->_query - [line 377 - classes/db/Db.php] - [1 Arguments] Argument [0] INSERT INTO
ss_dbprefixhook_module
(id_module
,id_hook
,id_shop
,position
) VALUES ('321', '565', '1', '2') DbCore->query - [line 744 - classes/db/Db.php] - [1 Arguments] Argument [0] INSERT INTOss_dbprefixhook_module
(id_module
,id_hook
,id_shop
,position
) VALUES ('321', '565', '1', '2') DbCore->q - [line 477 - classes/db/Db.php] - [2 Arguments] Argument [0] INSERT INTOss_dbprefixhook_module
(id_module
,id_hook
,id_shop
,position
) VALUES ('321', '565', '1', '2') Argument [1] 1 DbCore->insert - [line 619 - classes/Hook.php] - [2 Arguments] Argument [0] ss_dbprefixhook_module Argument [1] Array ( [0] => Array ( [id_module] => 321 [id_hook] => 565 [id_shop] => 1 [position] => 2 ))
It looks like the module is trying to insert VALUES ('321', '565', '1', '2') when VALUES ('321', '565', '1', '1') already exists and the combination of the first three columns in the hook_module table IS the primary key.
Perhaps this module does not work for PS 8+?