skalman63 Posted January 9, 2016 Share Posted January 9, 2016 Hi! I've just installed a theme (Extrastore) but when I try to ckick on Modules in the Backoffice, I'm just receiving the following error message: [PrestaShop] Fatal error in module file :/var/www/dev.dvd-shoppen.com/modules/wtbanner/sql/SampleData.php: Cannot redeclare class SampleDataBanner The link is: ...administration/index.php?controller=AdminModules&token=3298ac191788643f5ba022a1e919d45b I've contacted the developer and waiting for an answer, but my question for the moment is, if there is any other way to disable a module (rather than in Modules in the backoffice)? And since this is on a testsite, would it be easier just to copy Prestshop 1.6.1.3 (once again) through FTP and which files shold I then copy to try to solved to problem above? Thanks skalman63 Link to comment Share on other sites More sharing options...
bellini13 Posted January 9, 2016 Share Posted January 9, 2016 (edited) You have a module 'wtbanner' which has a class named 'SampleDataBanner' that is a duplicate of some other class already loaded into memory. I don't know what 'wtbanner' is, but to get past the issue, remove the 'wtbanner' module folder using FTP or a File Manager. Edited January 9, 2016 by bellini13 (see edit history) Link to comment Share on other sites More sharing options...
tombock1 Posted August 19, 2016 Share Posted August 19, 2016 Hello. I hope it is ok to continue on this thread. I am receiving the following when I try to access Modules in Back Office: Any ideas? I am not a programmer, just a web designer / integrator swatting flies using error reporting. Thanks in advance for any help!!! [PrestaShopDatabaseException]Can't DROP 'id_attribute'; check that column/key exists ALTER TABLE `pr_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 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) {787. $dbg = debug_backtrace();788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$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 601 - classes/db/Db.php] - [1 Arguments] DbCore->execute - [line 22 - modules/blocklayered_mod/upgrade/install-2.0.8.php] - [1 Arguments] upgrade_module_2_0_8 - [line 499 - classes/module/Module.php] - [1 Arguments] ModuleCore->runUpgradeModule - [line 1494 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->initContent - [line 189 - classes/controller/Controller.php] ControllerCore->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Link to comment Share on other sites More sharing options...
vekia Posted August 21, 2016 Share Posted August 21, 2016 can you show structure of table pr_layered_product_attribute from your database? Link to comment Share on other sites More sharing options...
Bassam45 Posted November 17, 2017 Share Posted November 17, 2017 Hi guys, i have the same issue with my prestashop 1.6.1.11, everything seems to work fine except when trying to access the module section i get this: [PrestaShop] Fatal error in module file :/home/cockpits/public_html/modules/spverticalmenu/Verticalmenu.php: Redefinition of parameter $id_shop i dont know what to do, any help will be appreciated. many thanks Sam Link to comment Share on other sites More sharing options...
bellini13 Posted November 17, 2017 Share Posted November 17, 2017 What module is spverticalmenu ? Was this a module you installed, or perhaps it was installed with a custom theme you installed? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now