Try the Demo

Magento Forum

   
Multiple store error
 
sharkers
Jr. Member
 
Total Posts:  2
Joined:  2008-03-04
 

Hi there,

I have tried to implement a second store in the last version (not today’s) of magento, and all works well regarding changing the homepage CMS etc, but when I went into the catalog and changed a product to appear in more than one store, it now shows with the following error when I try to edit it in the back end, and I cannot get into the product at all.

exception ‘Exception’ with message ‘Item (Mage_Core_Model_Store) with the same id “2” already exist’ in /home/icesculp/public_html/magento/lib/Varien/Data/Collection.php:298
Stack trace:
#0 /home/icesculp/public_html/magento/lib/Varien/Data/Collection/Db.php(400): Varien_Data_Collection->addItem(Object(Mage_Core_Model_Store))
#1 /home/icesculp/public_html/magento/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(181): Varien_Data_Collection_Db->load(false, false)
#2 /home/icesculp/public_html/magento/app/code/core/Mage/Core/Model/Mysql4/Store/Collection.php(115): Mage_Core_Model_Mysql4_Collection_Abstract->load(false, false)
#3 /home/icesculp/public_html/magento/app/code/core/Mage/Catalog/Model/Entity/Product.php(542): Mage_Core_Model_Mysql4_Store_Collection->load()
#4 /home/icesculp/public_html/magento/app/code/core/Mage/Catalog/Model/Product.php(713): Mage_Catalog_Model_Entity_Product->getStoreIds(Object(Mage_Catalog_Model_Product))
#5 /home/icesculp/public_html/magento/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php(89): Mage_Catalog_Model_Product->getStoreIds()
#6 /home/icesculp/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(337): Mage_Adminhtml_Catalog_ProductController->editAction()
#7 /home/icesculp/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(141): Mage_Core_Controller_Varien_Action->dispatch(’edit’)
#8 /home/icesculp/public_html/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(147): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#9 /home/icesculp/public_html/magento/app/Mage.php(388): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/icesculp/public_html/magento/index.php(28): Mage::run(’base’)
#11 {main}

I dont mind redoing the product, but does anyone know what the problem might be?  Is it me or magento wink?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Michael
Magento Team
 
Total Posts:  826
Joined:  2007-08-31
 

Hi sharkers,

It is strongly recommended to upgrade to the latest version due to recent changes in catalog and multistore functionality.

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