Magento的:项目(Mage_Customer_Model_Customer)重复的问题?(Ma

2019-10-22 20:42发布

我最近在我的店里ecomerce Magento的升级,从Magento 1.91.9.1 。 网站升级后工作正常,但是从管理控制台中添加客户时,现在我看到一个奇怪的问题。

同时加入的客户,我店选择id作为Admin如下图所示:

如果我选择Main Website相关联的网站,那么它的工作原理确定,但我只是想知道为什么它不工作,并给予错误与“管理”,而在另一家商店Magento的,我没有看到这样的问题。

我收到以下错误:

a:5:{i:0;s:71:"Item (Mage_Customer_Model_Customer) with the same id "14" already exist";i:1;s:4825:"#0 /home/ecom/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(265): Varien_Data_Collection->addItem(Object(Mage_Customer_Model_Customer))
#1 /home/ecom/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(1055): Mage_Eav_Model_Entity_Collection_Abstract->addItem(Object(Mage_Customer_Model_Customer))
#2 /home/ecom/public_html/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(871): Mage_Eav_Model_Entity_Collection_Abstract->_loadEntities(false, false)
#3 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(533): Mage_Eav_Model_Entity_Collection_Abstract->load()
#4 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Customer/Grid.php(61): Mage_Adminhtml_Block_Widget_Grid->_prepareCollection()
#5 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(626): Mage_Adminhtml_Block_Customer_Grid->_prepareCollection()
#6 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid.php(632): Mage_Adminhtml_Block_Widget_Grid->_prepareGrid()
#7 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(918): Mage_Adminhtml_Block_Widget_Grid->_beforeToHtml()
#8 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#9 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('grid', true)
#10 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Grid/Container.php(77): Mage_Core_Block_Abstract->getChildHtml('grid')
#11 /home/ecom/public_html/app/design/adminhtml/default/default/template/widget/grid/container.phtml(36): Mage_Adminhtml_Block_Widget_Grid_Container->getGridHtml()
#12 /home/ecom/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/ecom/pu...')
#13 /home/ecom/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#14 /home/ecom/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#15 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#16 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Widget/Container.php(308): Mage_Adminhtml_Block_Template->_toHtml()
#17 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Adminhtml_Block_Widget_Container->_toHtml()
#18 /home/ecom/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#19 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#20 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#21 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#22 /home/ecom/public_html/app/design/adminhtml/default/default/template/page.phtml(74): Mage_Core_Block_Abstract->getChildHtml('content')
#23 /home/ecom/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/ecom/pu...')
#24 /home/ecom/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#25 /home/ecom/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#26 /home/ecom/public_html/app/code/core/Mage/Adminhtml/Block/Template.php(81): Mage_Core_Block_Template->_toHtml()
#27 /home/ecom/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Adminhtml_Block_Template->_toHtml()
#28 /home/ecom/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#29 /home/ecom/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#30 /home/ecom/public_html/app/code/core/Mage/Adminhtml/controllers/CustomerController.php(83): Mage_Core_Controller_Varien_Action->renderLayout()
#31 /home/ecom/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_CustomerController->indexAction()
#32 /home/ecom/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#33 /home/ecom/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#34 /home/ecom/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#35 /home/ecom/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#36 /home/ecom/public_html/index.php(87): Mage::run('', 'store')
#37 {main}";s:3:"url";s:70:"/index.php/admin/customer/index/key/6f4763d319ecbe9ece8c009ea996b159/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

我想此修复程序: https://support.webcto.eu/index.php/Knowledgebase/Article/View/50/8/item-mage_catalog_model_product-with-the-same-id-already-exist它是工作,但我不认为这是修改Magento的主要核心不错的主意。

请检查并建议我能做些什么来解决这个问题?

文章来源: Magento: Item (Mage_Customer_Model_Customer) duplicate issue?