Magento 1.9 -你不能定义一个关联名称'ce'不止一次


Error Magento 1.9 - You cannot define a correlation name 'ce' more than once

安装新主题后出现以下错误,

处理您的请求时出错不能多次定义关联名称"ce"

跟踪:

#0 /var/www/html/mage/lib/Varien/Db/Select.php(281): Zend_Db_Select->_join('left join', 'catalog_product...', 'ce.entity_id=e....', NULL, NULL)
#1 /var/www/html/mage/lib/Zend/Db/Select.php(357): Varien_Db_Select->_join('left join', 'catalog_product...', 'ce.entity_id=e....', NULL, NULL)
#2 /var/www/html/mage/app/code/community/Cybage/Marketplace/Block/Catalog/Product/List.php(53): Zend_Db_Select->joinLeft('catalog_product...', 'ce.entity_id=e....', NULL)
#3 /var/www/html/mage/app/code/core/Mage/Catalog/Block/Product/List.php(120): Cybage_Marketplace_Block_Catalog_Product_List->_getProductCollection()
#4 /var/www/html/mage/app/code/local/Magentothem/Layerednavigationajax/controllers/CategoryController.php(65): Mage_Catalog_Block_Product_List->getLoadedProductCollection()
#5 /var/www/html/mage/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Magentothem_Layerednavigationajax_CategoryController->viewAction()
#6 /var/www/html/mage/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('view')
#7 /var/www/html/mage/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /var/www/html/mage/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#9 /var/www/html/mage/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#10 /var/www/html/mage/index.php(87): Mage::run('', 'store')
#11 {main}

错误日志记录号:670450388037

看来你的新主题还包括至少一个模块-这是一个常见的事情。这个模块(Magentothem_Layerednavigationajax)已经为这个特殊的请求重写了主控制器。控制器动作可能有一些自定义功能。

看起来您的系统上有第二个模块(Cybage_Marketplace)。这个模块似乎用它自己的Cybage_Marketplace_Block_Catalog_Product_List类重写了一个核心产品列表块。

这里的编程问题是,似乎您的主题和第二个模块(或可能是其他一些代码,在您的堆栈跟踪中看不到)都试图使用表别名ce向产品集合查询添加连接。