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 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法
  • ¥15 matlab代码代写,需写出详细代码,代价私
  • ¥15 ROS系统搭建请教(跨境电商用途)
  • ¥15 AIC3204的示例代码有吗,想用AIC3204测量血氧,找不到相关的代码。