douwen3965 2015-05-25 20:52 采纳率: 0%
浏览 33
已采纳

错误Magento 1.9 - 您不能多次定义相关名称'ce'[关闭]

I am facing the following error after installing new theme,

There has been an error processing your request You cannot define a correlation name 'ce' more than once

Trace:

#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}

Error log record number: 670450388037

  • 写回答

1条回答 默认 最新

  • douyun7285 2015-05-26 02:29
    关注

    It appears your new theme also includef at least one module -- this is a common thing. This module (Magentothem_Layerednavigationajax) has rewritten the main controller for this particular request. The controller action likely has some custom functionality.

    It all appears you have a second module on your system (Cybage_Marketplace). This module appears to rewrite a core product list block with its own Cybage_Marketplace_Block_Catalog_Product_List class.

    The programming problem here is it appears both your theme and this second module (or possibly some other code, unseen in your stack trace) has tried to add a join to the product collection query using the table alias ce.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 PSPICE制作一个加法器
  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?