ModasLuna Posted February 17, 2018 Share Posted February 17, 2018 Good morning, I just installed prestashop 1.6.1.18 and I try to delete one of the photos that the sample "Theme Configurator" has for example and I get this error, without activating the error report: [PrestaShop] Fatal error in module file :/home/modasluna/public_html/classes/db/DbPDO.php:Call to a member function rowCount() on boolean When activating the error report, I get this other error: [PrestaShopDatabaseException] Table 'modaslun_tienda.ps_ps_themeconfigurator' doesn't exist DELETE FROM `ps_ps_themeconfigurator` WHERE id_item = 1 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 580 - classes/db/Db.php] - [1 Arguments] DbCore->delete - [line 397 - modules/themeconfigurator/themeconfigurator.php] - [2 Arguments] ThemeConfigurator->removeItem - [line 532 - modules/themeconfigurator/themeconfigurator.php] ThemeConfigurator->getContent - [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 - admin/index.php] Can someone tell me how I can fix it? Thank you very much. A greeting. Link to comment Share on other sites More sharing options...
felisnet Posted February 21, 2018 Share Posted February 21, 2018 I have the same problem with prestashop 1.6.1.18.Have you found a solution? Link to comment Share on other sites More sharing options...
sadlyblue Posted February 22, 2018 Share Posted February 22, 2018 Open the file modules/themeconfigurator/themeconfigurator.php. On line 397, you have: Db::getInstance()->delete(_DB_PREFIX_.'themeconfigurator', 'id_item = '.(int)$id_item); Replace with: Db::getInstance()->delete('themeconfigurator', 'id_item = '.(int)$id_item); Then save the file. 1 Link to comment Share on other sites More sharing options...
felisnet Posted February 22, 2018 Share Posted February 22, 2018 It works!!!Thank you very much.Regards 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