Dobrý den,
po upgrade PS 1.6.0.6 na 1.6.1.0 (balíček ze stránek C4) přestala fungovat záložka modules s následující chybou.
Citace:
[PrestaShopDatabaseException]
Can't DROP 'id_attribute'; check that column/key exists
ALTER TABLE `ps_layered_product_attribute` ADD PRIMARY KEY (`id_attribute`, `id_product`), DROP KEY `id_attribute`, ADD UNIQUE KEY `id_attribute_group` (`id_attribute_group`,`id_attribute`,`id_product`)
at line 765 in file classes/db/Db.php
760. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
761. }
762. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
763. {
764. if ($sql)
765. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
766.
767. throw new PrestaShopDatabaseException($this->getMsgError());
768. }
769. }
770.
DbCore->displayError - [line 418 - classes/db/Db.php] - [1 Arguments]
DbCore->query - [line 578 - classes/db/Db.php] - [1 Arguments]
DbCore->execute - [line 22 - modules/blocklayered/upgrade/install-2.0.8.php] - [1 Arguments]
upgrade_module_2_0_8 - [line 493 - classes/module/Module.php] - [1 Arguments]
ModuleCore->runUpgradeModule - [line 1449 - controllers/admin/AdminModulesController.php]
AdminModulesControllerCore->initContent - [line 180 - classes/controller/Controller.php]
ControllerCore->run - [line 373 - classes/Dispatcher.php]
DispatcherCore->dispatch - [line 54 - admin/index.php]
Děkuji za pomoc
Martin Linek