我在每个类别页面上都有错误。就像我点击主页上的任何产品一样,它会显示以下错误。任何产品。请帮助某人谢谢。
[PrestaShopDatabaseException]
Db->executeS() must be used only with select, show, explain or describe queries
at line 470 in file classes/db/Db.php
464. //print_r($sql);exit;
465. // This method must be used only with queries which display results
466. if (!preg_match('#^\s*\(?\s*(select|show|explain|describe|desc)\s#i', $sql))
467. {
468. if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
469. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
470. return $this->execute($sql, $use_cache);
471. }
472.
473. $this->result = false;
474. $this->last_query = $sql;
DbCore->executeS - [line 130 - modules/blockviewed/blockviewed.php] - [1 Arguments]
BlockViewed->hookRightColumn - [line 192 - modules/blockviewed/blockviewed.php] - [1 Arguments]
BlockViewed->hookLeftColumn - [line 423 - classes/Hook.php] - [1 Arguments]
HookCore::exec - [line 427 - classes/controller/FrontController.php] - [1 Arguments]
FrontControllerCore->initContent - [line 84 - override/classes/controller/FrontController.php] - [0 Argument]
FrontController->initContent - [line 173 - controllers/front/ProductController.php] - [0 Argument]
ProductControllerCore->initContent - [line 7 - override/controllers/front/ProductController.php] - [0 Argument]
ProductController->initContent - [line 167 - classes/controller/Controller.php] - [0 Argument]
ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument]
DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]
谢谢,阿杰!