Magento Forum

Error on Compare Products
 
harjot
Member
 
Total Posts:  61
Joined:  2007-11-13
 

I got this error when clicking on compare products button. It seems like the file is missing but i uploaded the files in the folder and the error still comes.

Compare Products
Print This Page

exception ‘Exception’ with message ‘Item (Mage_Eav_Model_Entity_Attribute) with the some id “96” already exist’ in /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/lib/Varien/Data/Collection.php:297
Stack trace:
#0 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/lib/Varien/Data/Collection/Db.php(370): Varien_Data_Collection->addItem(Object(Mage_Eav_Model_Entity_Attribute))
#1 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(163): Varien_Data_Collection_Db->load(false, false)
#2 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Catalog/Model/Entity/Product/Compare/Item/Collection.php(133): Mage_Core_Model_Mysql4_Collection_Abstract->load()
#3 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Catalog/Block/Product/Compare/List.php(54): Mage_Catalog_Model_Entity_Product_Compare_Item_Collection->loadComaparableAttributes()
#4 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/design/frontend/default/default/template/catalog/product/compare/list.phtml(25): Mage_Catalog_Block_Product_Compare_List->getItems()
#5 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Template.php(116): include(’/mnt/gs02/herd0...’)
#6 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Template.php(143): Mage_Core_Block_Template->fetchView(’frontend/defaul...’)
#7 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Template.php(188): Mage_Core_Block_Template->renderView()
#8 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Text/List.php(38): Mage_Core_Block_Template->toHtml()
#9 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Abstract.php(439): Mage_Core_Block_Text_List->toHtml()
#10 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Abstract.php(417): Mage_Core_Block_Abstract->_getChildHtml(’content’, true)
#11 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/design/frontend/default/default/template/page/one-column.phtml(55): Mage_Core_Block_Abstract->getChildHtml(’content’)
#12 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Template.php(116): include(’/mnt/gs02/herd0...’)
#13 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Template.php(143): Mage_Core_Block_Template->fetchView(’frontend/defaul...’)
#14 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Block/Template.php(188): Mage_Core_Block_Template->renderView()
#15 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Model/Layout.php(402): Mage_Core_Block_Template->toHtml()
#16 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Controller/Varien/Action.php(302): Mage_Core_Model_Layout->getOutput()
#17 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Catalog/controllers/Product/CompareController.php(46): Mage_Core_Controller_Varien_Action->renderLayout()
#18 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Controller/Varien/Action.php(325): Mage_Catalog_Product_CompareController->indexAction()
#19 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(149): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#20 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/code/core/Mage/Core/Controller/Varien/Front.php(166): Mage_Core_Controller_Varien_Router_Standard->match(Object(Zend_Controller_Request_Http))
#21 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/app/Mage.php(380): Mage_Core_Controller_Varien_Front->dispatch()
#22 /mnt/gs02/herd03/30032/domains/hdonit.com/html/shop4/index.php(28): Mage::run(’base’)
#23 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michae1
Enthusiast
 
Total Posts:  826
Joined:  2007-08-31
 

Thanks harjot, we’ll try to reproduce and fix it in the next releases.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SamuelPereira
Jr. Member
 
Total Posts:  2
Joined:  2012-05-10
 

Thank.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top