tokasmart Posted October 7, 2015 Share Posted October 7, 2015 Spotkał się ktoś z problemem który powodował że pojawiała się biała strona po jakichkolwiek zmianach w ustawieniach seo? Po wł debug'a mam poniższy komunikat: [PrestaShopDatabaseException]Table 'toka_afrodyzjaki.ps_smarty_lazy_cache' doesn't exist TRUNCATE TABLE `ps_smarty_lazy_cache`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 601 - classes/db/Db.php] - [1 Arguments] DbCore->execute - [line 278 - classes/SmartyCustom.php] - [2 Arguments] SmartyCustomCore->delete_from_lazy_cache - [line 65 - classes/SmartyCustom.php] - [3 Arguments] SmartyCustomCore->clearAllCache - [line 3024 - classes/Tools.php] ToolsCore::clearCache - [line 430 - controllers/admin/AdminMetaController.php] - [1 Arguments] AdminMetaControllerCore->postProcess - [line 178 - classes/controller/Controller.php] ControllerCore->run - [line 173 - override/classes/controller/Controller.php] Controller->run - [line 367 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 58 - admin/index.php] Proszę o poradę bardziej doświadczonych co się mogło stać i jak to naprawić Link to comment Share on other sites More sharing options...
Yabber Posted October 7, 2015 Share Posted October 7, 2015 Skasuj pliki: /override/classes/controller/Controller.php i /cache/class_index.php Jakiś moduł pozostawił po sobie śmieci w overridach. Link to comment Share on other sites More sharing options...
tokasmart Posted October 7, 2015 Author Share Posted October 7, 2015 Dzięki za zainteresowanie! Doszedłem do tego że przy czyszczeniu cache w bazie danych usunąłem pomyłkowo ps_smarty_lazy_cache i mam pytanie - czy można jakoś z automatu odtworzyć tą tabelę czy trzeba ręcznie dodać? Link to comment Share on other sites More sharing options...
design4VIP Posted October 7, 2015 Share Posted October 7, 2015 CREATE TABLE IF NOT EXISTS `ps_smarty_lazy_cache` ( `template_hash` varchar(32) NOT NULL DEFAULT '', `cache_id` varchar(255) NOT NULL DEFAULT '', `compile_id` varchar(32) NOT NULL DEFAULT '', `filepath` varchar(255) NOT NULL DEFAULT '', `last_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`template_hash`,`cache_id`,`compile_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Link to comment Share on other sites More sharing options...
tokasmart Posted October 8, 2015 Author Share Posted October 8, 2015 O to dokładnie mi chodziło - dzięki wielkie design4VIP! 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