Magento exception.log PDOException导致并修复?

时间:2013-03-04 11:26:49

标签: magento

为一家运营基于Magento(1.7.0.2版本)的网上商店的小公司工作,有一段时间我们在exception.log中弹出了以下错误:

2013-03-04T10:17:24+00:00 ERR (3):
exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1' in *website root*/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 *website root*/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 *website root*/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 *website root*/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 *website root*/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#4 *website root*/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `catalog...', Array)
#5 *website root*/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `catalog...', Array)
#6 *website root*/lib/Zend/Db/Adapter/Abstract.php(753): Varien_Db_Adapter_Pdo_Mysql->query(Object(Varien_Db_Select), Array)
#7 *website root*/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(380): Zend_Db_Adapter_Abstract->fetchRow(Object(Varien_Db_Select))
#8 *website root*/app/code/core/Mage/Core/Model/Abstract.php(225): Mage_Core_Model_Resource_Db_Abstract->load(Object(Aitoc_Aitpermissions_Model_Rewrite_CatalogCategory), Object(Aitoc_Aitpermissions_Model_Rewrite_CatalogCategory), NULL)
#9 *website root*/app/code/core/Mage/Catalog/Block/Product/List.php(80): Mage_Core_Model_Abstract->load(Object(Aitoc_Aitpermissions_Model_Rewrite_CatalogCategory))
#10 *website root*/app/code/core/Mage/Catalog/Block/Product/List.php(141): Mage_Catalog_Block_Product_List->_getProductCollection()
#11*website root*/var/ait_rewrite/6bfe16ca572eea47db567910902c6209.php(864): Mage_Catalog_Block_Product_List->_beforeToHtml()
#12 *website root*/app/code/core/Mage/Core/Model/Email/Template/Filter.php(191): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Abstract->toHtml()
#13 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#14 *website root*/lib/Varien/Filter/Template.php(134): call_user_func(Array, Array)
#15 *website root*/app/code/core/Mage/Core/Model/Email/Template/Filter.php(502): Varien_Filter_Template->filter('<h2><a href="ht...')
#16 *website root*/app/code/core/Mage/Cms/Block/Block.php(54): Mage_Core_Model_Email_Template_Filter->filter('<h2><a href="ht...')
#17 *website root*/var/ait_rewrite/6bfe16ca572eea47db567910902c6209.php(865): Mage_Cms_Block_Block->_toHtml()
#18 *website root*/app/code/core/Mage/Core/Block/Text/List.php(43): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Abstract->toHtml()
#19 *website root*/var/ait_rewrite/6bfe16ca572eea47db567910902c6209.php(865): Mage_Core_Block_Text_List->_toHtml()
#20 *website root*/var/ait_rewrite/6bfe16ca572eea47db567910902c6209.php(584): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Abstract->toHtml()
#21 *website root*/var/ait_rewrite/6bfe16ca572eea47db567910902c6209.php(528): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Abstract->_getChildHtml('content', true)
#22 *website root*/app/design/frontend/default/*store view*/template/page/2columns-left.phtml(70): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Abstract->getChildHtml('content')
#23 *website root*/var/ait_rewrite/67b58abff9e6bd7b400bb2fc1903bf2f.php(412): include('*website root*...')
#24 *website root*/var/ait_rewrite/67b58abff9e6bd7b400bb2fc1903bf2f.php(274): Mage_Core_Block_Template->fetchView('frontend/defaul...')
#25 *website root*/var/ait_rewrite/67b58abff9e6bd7b400bb2fc1903bf2f.php(288): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Template->renderView()
#26 *website root*/var/ait_rewrite/6bfe16ca572eea47db567910902c6209.php(865): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Template->_toHtml()
#27 *website root*/app/code/core/Mage/Core/Model/Layout.php(555): Aitoc_Aitsys_Model_Rewriter_Mage_Core_Block_Abstract->toHtml()
#28 *website root*/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#29 *website root*/app/code/core/Mage/Catalog/Helper/Product/View.php(147): Mage_Core_Controller_Varien_Action->renderLayout()
#30 *website root*/app/code/core/Mage/Catalog/controllers/ProductController.php(132): Mage_Catalog_Helper_Product_View->prepareAndRender(14722, Object(Mage_Catalog_ProductController), Object(Varien_Object))
#31 *website root*/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Catalog_ProductController->viewAction()
#32 *website root*/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#33 *website root*/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#34 *website root*/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#35 *website root*/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#36 *website root*/index.php(85): Mage::run('default', 'store')
#37 {main}

我们一直在寻找类似的问题,但找不到与此相符的任何已解决的问题,我们甚至不确定是什么导致它,任何帮助将不胜感激。如果您需要更多信息,请询问。

1 个答案:

答案 0 :(得分:0)

由于与“AITOC”模块冲突而导致问题,该模块正在重写大多数常见的magento块。只需与他们核实,他们将进一步帮助您。因为Magento没什么。它主要与基于您的域名的AITOC许可有关。