Jump to content

PS 1.6.1.24 Impossible d'installer le module 1-Click Upgrade


Recommended Posts

Bonjour à tous,

PS1.6.1.24 (nativement en PS1.6.1.9, MAJ par le module 1Click upgrade puis désinstallation du module)

J'ai fait mes sauvegarde, suis en "SandBox"  local avec Wamp (Apache 2.4.46 / php 7.1.33 / Mysql 5.7.31)

Mon site tourne parfaitement en local MAIS impossible d'installer et d'activer le module 1-Click Upgrade (la version est v4.10.1 qui est la dernière).

Debug à True, j'ai l'erreur :

 

Quote

 

[PrestaShopDatabaseException]

Duplicata du champ '0' pour la clef 'PRIMARY'
 

INSERT INTO `ps_configuration` (`id_shop_group`, `id_shop`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, NULL, 'PS_AUTOUPDATE_MODULE_IDTAB', '138', '2020-08-28 17:58:25', '2020-08-28 17:58:25')


at line 791 in file classes/db/Db.php

786. if ($webservice_call && $errno) {

787. $dbg = debug_backtrace();

788. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
		

		

789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {

790. if ($sql) {

791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

792. }

793.

794. throw new PrestaShopDatabaseException($this->getMsgError());

795. }

796. }

  • DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments]
  • DbCore->query - [line 763 - classes/db/Db.php] - [1 Arguments]
  • DbCore->q - [line 514 - classes/db/Db.php] - [2 Arguments]
  • DbCore->insert - [line 446 - classes/Configuration.php] - [3 Arguments]
  • ConfigurationCore::updateValue - [line 97 - modules/autoupgrade/autoupgrade.php] - [2 Arguments]
  • Autoupgrade->install - [line 868 - controllers/admin/AdminModulesController.php]
  • AdminModulesControllerCore->postProcessCallback - [line 1117 - controllers/admin/AdminModulesController.php]
  • AdminModulesControllerCore->postProcess - [line 178 - classes/controller/Controller.php]
  • ControllerCore->run - [line 367 - classes/Dispatcher.php]
  • DispatcherCore->dispatch - [line 58 - admin7764tbtq3/index.php]

 

J'ai tenté un upgrade manuel et ca ne fonctionne pas...

Merci d'avance pour votre aide !

 

Link to comment
Share on other sites

Il ne devrait pas y avoir d'id_configuration à 0, vérifier que la table contient ce champ en auto-incrément, puis vérifier cette valeur, soit la supprimer ou mettre l'id à null (ce qui déclenchera l'auto-incrément pour lui donner une valeur saine

Link to comment
Share on other sites

22 hours ago, doekia said:

Il ne devrait pas y avoir d'id_configuration à 0, vérifier que la table contient ce champ en auto-incrément, puis vérifier cette valeur, soit la supprimer ou mettre l'id à null (ce qui déclenchera l'auto-incrément pour lui donner une valeur saine

Merci pour ce retour, j'ai une petit peu plus avancé car j'étais passé en multiboutique puis j'ai supprimé le multiboutique pour ne garder que la boutique originale et j'ai dû faire un peu de cleanup dans la base .

D'ailleurs il doit rester des éléments des 2 boutiques qui n'existent plus si vous savez où je dois chercher ?

 

Link to comment
Share on other sites

Ok, pour revenir au module 1-Click Upgrade, j'ai enfin réussi à l'installer...

Mais:

Quote

 

Database backup: 125 table(s) left...

[Ajax / Server Error for action backupDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: "
Fatal error: Maximum execution time of 120 seconds exceeded in C:\wamp64\www\lbd16\classes\db\DbPDO.php on line 134
{"nextQuickInfo":[],"nextErrors":["[INTERNAL] C:\\wamp64\\www\\lbd16\\classes\\db\\DbPDO.php line 134 - Maximum execution time of 120 seconds exceeded"],"error":true,"next":"error"}"

 

 

Edited by La Boutique Danse (see edit history)
Link to comment
Share on other sites

Merci cela va mieux mais ! 

Quote

All files upgraded. Now upgrading database...

Updating database schema...Executing: CREATE TABLE lbd_admin_filter (id INT AUTO_INCREMENT NOT NULL, employee INT NOT NULL, shop INT NOT NULL, controller VARCHAR(60) NOT NULL, action VARCHAR(100) NOT NULL, filter LONGTEXT NOT NULL, filter_id VARCHAR(255) NOT NULL, UNIQUE INDEX admin_filter_search_id_idx (employee, shop, controller, action, filter_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDBExecuting: CREATE TABLE lbd_module_history (id INT AUTO_INCREMENT NOT NULL, id_employee INT NOT NULL, id_module INT NOT NULL, date_add DATETIME NOT NULL, date_upd DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDBExecuting: CREATE TABLE lbd_translation (id_translation INT AUTO_INCREMENT NOT NULL, id_lang INT NOT NULL, `key` TEXT NOT NULL, translation TEXT NOT NULL, domain VARCHAR(80) NOT NULL, theme VARCHAR(32) DEFAULT NULL, INDEX IDX_E2E02552BA299860 (id_lang), INDEX `key` (domain), PRIMARY KEY(id_translation)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDBExecuting: ALTER TABLE lbd_attribute CHANGE color color VARCHAR(32) NOT NULL, CHANGE position position INT NOT NULL DEFAULT '0'Executing: CREATE INDEX IDX_2AA8CE9C7A4F53DC ON lbd_attribute_shop (id_attribute)Executing: DROP INDEX id_shop ON lbd_attribute_shopExecuting: CREATE INDEX IDX_2AA8CE9C274A50A0 ON lbd_attribute_shop (id_shop)Executing: ALTER TABLE lbd_attribute_group CHANGE is_color_group is_color_group TINYINT(1) NOT NULL DEFAULT '0' , CHANGE group_type group_type VARCHAR(255) NOT NULL DEFAULT 'select' , CHANGE position position INT NOT NULL DEFAULT '0'Executing: CREATE INDEX IDX_499AD34267A664FB ON lbd_attribute_group_shop (id_attribute_group)Executing: DROP INDEX id_shop ON lbd_attribute_group_shopExecuting: CREATE INDEX IDX_499AD342274A50A0 ON lbd_attribute_group_shop (id_shop)Executing: CREATE INDEX IDX_D4F91B8267A664FB ON lbd_attribute_group_lang (id_attribute_group)Executing: CREATE INDEX IDX_D4F91B82BA299860 ON lbd_attribute_group_lang (id_lang)Executing: DROP INDEX id_lang ON lbd_attribute_langExecuting: CREATE INDEX IDX_B7CB065C7A4F53DC ON lbd_attribute_lang (id_attribute)Executing: CREATE INDEX IDX_B7CB065CBA299860 ON lbd_attribute_lang (id_lang)Executing: ALTER TABLE lbd_lang CHANGE id_lang id_lang INT AUTO_INCREMENT NOT NULL, CHANGE active active TINYINT(1) NOT NULL DEFAULT '0' , CHANGE iso_code iso_code VARCHAR(2) NOT NULL, CHANGE language_code language_code VARCHAR(5) NOT NULL, CHANGE date_format_lite date_format_lite VARCHAR(32) NOT NULL DEFAULT 'Y-m-d' , CHANGE date_format_full date_format_full VARCHAR(32) NOT NULL DEFAULT 'Y-m-d H:i:s' , CHANGE is_rtl is_rtl TINYINT(1) NOT NULL DEFAULT '0' , ADD PRIMARY KEY (id_lang)Executing: ALTER TABLE lbd_lang_shop ADD PRIMARY KEY (id_lang, id_shop)Executing: CREATE INDEX IDX_A845FEA4BA299860 ON lbd_lang_shop (id_lang)Executing: CREATE INDEX IDX_A845FEA4274A50A0 ON lbd_lang_shop (id_shop)Executing: ALTER TABLE lbd_product_download CHANGE id_product_download id_product_download INT UNSIGNED AUTO_INCREMENT NOT NULL, ADD PRIMARY KEY (id_product_download)Executing: ALTER TABLE lbd_shop CHANGE id_shop id_shop INT AUTO_INCREMENT NOT NULL, CHANGE id_category id_category INT NOT NULL DEFAULT '1' , CHANGE theme_name theme_name VARCHAR(255) NOT NULL, CHANGE active active TINYINT(1) NOT NULL DEFAULT '1' , CHANGE deleted deleted TINYINT(1) NOT NULL DEFAULT '0' , ADD PRIMARY KEY (id_shop)Executing: CREATE INDEX IDX_5A47B1B9F5C9E40 ON lbd_shop (id_shop_group)Executing: ALTER TABLE lbd_shop_group CHANGE id_shop_group id_shop_group INT AUTO_INCREMENT NOT NULL, CHANGE active active TINYINT(1) NOT NULL DEFAULT '1' , CHANGE deleted deleted TINYINT(1) NOT NULL DEFAULT '0' , ADD PRIMARY KEY (id_shop_group)Executing: ALTER TABLE lbd_stock_mvt CHANGE id_stock_mvt id_stock_mvt BIGINT AUTO_INCREMENT NOT NULL, CHANGE id_stock id_stock INT NOT NULL, CHANGE id_order id_order INT DEFAULT NULL, CHANGE id_supply_order id_supply_order INT DEFAULT NULL, CHANGE id_stock_mvt_reason id_stock_mvt_reason INT NOT NULL, CHANGE id_employee id_employee INT NOT NULL, CHANGE employee_lastname employee_lastname VARCHAR(32) DEFAULT '', CHANGE employee_firstname employee_firstname VARCHAR(32) DEFAULT '', CHANGE physical_quantity physical_quantity INT NOT NULL, CHANGE sign sign SMALLINT DEFAULT '1', CHANGE referer referer BIGINT DEFAULT NULL, ADD PRIMARY KEY (id_stock_mvt)Executing: CREATE INDEX id_stock ON lbd_stock_mvt (id_stock)Executing: CREATE INDEX id_stock_mvt_reason ON lbd_stock_mvt (id_stock_mvt_reason)Executing: ALTER TABLE lbd_tab CHANGE id_tab id_tab INT AUTO_INCREMENT NOT NULL, CHANGE class_name class_name VARCHAR(64) DEFAULT NULL, CHANGE position position INT NOT NULL, CHANGE active active TINYINT(1) NOT NULL DEFAULT '1' , CHANGE hide_host_mode hide_host_mode TINYINT(1) NOT NULL DEFAULT '0' , CHANGE icon icon VARCHAR(32) DEFAULT '', ADD PRIMARY KEY (id_tab)Executing: ALTER TABLE lbd_tab_lang CHANGE name name VARCHAR(128) NOT NULL, ADD PRIMARY KEY (id_tab, id_lang)22:45:57 ERROR [console] Error thrown while running command "prestashop:schema:update-without-foreign". Message: "An exception occurred while executing 'ALTER TABLE lbd_tab_lang CHANGE name name VARCHAR(128) NOT NULL, ADD PRIMARY KEY (id_tab, id_lang)':SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicata du champ '183-1' pour la clef 'PRIMARY'" ["exception" => Doctrine\DBAL\Exception\UniqueConstraintViolationException { …},"command" => "prestashop:schema:update-without-foreign","message" => """ An exception occurred while executing 'ALTER TABLE lbd_tab_lang CHANGE name name VARCHAR(128) NOT NULL, ADD PRIMARY KEY (id_tab, id_lang)':\n \n SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicata du champ '183-1' pour la clef 'PRIMARY' """]In AbstractMySQLDriver.php line 66:An exception occurred while executing 'ALTER TABLE lbd_tab_lang CHANGE name name VARCHAR(128) NOT NULL, ADD PRIMARYKEY (id_tab, id_lang)':SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicata du champ '183-1' pour la clef 'PRIMARY'In PDOConnection.php line 106:SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicata du champ '183-1' pour la clef 'PRIMARY'In PDOConnection.php line 104:SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicata du champ '183-1' pour la clef 'PRIMARY'prestashop:schema:update-without-foreign [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--]

 

 

SQL 1.7.1.0 1075 in ALTER TABLE `lbd_lang` CHANGE `id_lang` `id_lang` INT(11) NOT NULL AUTO_INCREMENT: Un seul champ automatique est permis et il doit être indexé

SQL 1.7.1.0 1075 in ALTER TABLE `lbd_shop` CHANGE `id_shop` `id_shop` INT(11) NOT NULL AUTO_INCREMENT: Un seul champ automatique est permis et il doit être indexé

SQL 1.7.1.0 1075 in ALTER TABLE `lbd_shop_group` CHANGE `id_shop_group` `id_shop_group` INT(11) NOT NULL AUTO_INCREMENT: Un seul champ automatique est permis et il doit être indexé

SQL 1.7.1.0 1075 in ALTER TABLE `lbd_tab` CHANGE `id_tab` `id_tab` INT(11) NOT NULL AUTO_INCREMENT: Un seul champ automatique est permis et il doit être indexé

Error during database upgrade. You may need to restore your database.Error upgrading Doctrine schema

 

 

 

Edited by La Boutique Danse (see edit history)
Link to comment
Share on other sites

Bon réessai et j'ai les erreur toujours dans la Table ps_lang

Quote

 

Erreurs

SQL 1.7.1.0 1075 in ALTER TABLE `lbd_lang` CHANGE `id_lang` `id_lang` INT(11) NOT NULL AUTO_INCREMENT: Un seul champ automatique est permis et il doit être indexéSQL 1.7.1.0 1075 in ALTER TABLE `lbd_tab` CHANGE `id_tab` `id_tab` INT(11) NOT NULL AUTO_INCREMENT: Un seul champ automatique est permis et il doit être indexéError during database upgrade. You may need to restore your database.Error upgrading Doctrine schema

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...