prestashop错误在主页以外的每个页面上

时间:2013-10-06 04:09:22

标签: prestashop-1.5

我在每个类别页面上都出错了。就像我点击主页上的任何产品一样,它显示我下面的错误。任何产品。请帮助别人。


[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]

谢谢, AJ!

1 个答案:

答案 0 :(得分:0)

错误发生在第130行的modules / blockviewed / blockviewed.php。您正在对不是SELECT的此类查询使用executeS函数。在第130行检查该文件并共享代码,以便我可以看到代码。

由于