• 欢迎访问magento4you博客,我们提供magento建站、技术咨询、IT运维、支持培训、二次开发服务及模板定制,联系QQ:283475615
  • Magento入门教程 二次开发 模板定制 联系QQ:283475615
  • magento运营 SEO SEM 数字营销 广告竞价 联系QQ:283475615
  • 如果您觉得本站对你有帮助,那么赶紧使用Ctrl+D 收藏吧!

Item (Magento\Catalog\Model\Category\Interceptor) with the same ID “144” already exists.

Magento magento4you 2年前 (2019-06-03) 1493次浏览 0个评论

Magento 2 报错

1 exception(s):
Exception #0 (Exception): Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "144" already exists.

Exception #0 (Exception): Item (Magento\Catalog\Model\Category\Interceptor) with the same ID "144" already exists.
<pre>#1 Magento\Eav\Model\Entity\Collection\AbstractCollection->addItem(&Magento\Catalog\Model\Category\Interceptor#000000001a50181d000000005792e494#) called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:1134]
#2 Magento\Eav\Model\Entity\Collection\AbstractCollection->_loadEntities(false, false) called at [vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php:924]
#3 Magento\Eav\Model\Entity\Collection\AbstractCollection->load(false, false) called at [vendor/magento/module-catalog/Model/ResourceModel/Category/Collection.php:235]
#4 Magento\Catalog\Model\ResourceModel\Category\Collection->load() called at [vendor/magento/module-catalog/Model/ResourceModel/Category/Tree.php:216]
#5 Magento\Catalog\Model\ResourceModel\Category\Tree->addCollectionData(&Magento\Catalog\Model\ResourceModel\Category\Collection#000000001a501871000000005792e494#, false, array(2), true, true) called at [vendor/magento/module-catalog/Model/ResourceModel/Category.php:702]
#6 Magento\Catalog\Model\ResourceModel\Category->getCategories(2, 0, false, false, true) called at [vendor/magento/module-catalog/Model/Category.php:976]
#7 Magento\Catalog\Model\Category->getCategories(2, 0, false, false, true) called at [app/code/Codazon/ThemeOptions/Helper/Category.php:157]
#8 Codazon\ThemeOptions\Helper\Category->getCategoriesByParentId(2) called at [app/code/Codazon/ThemeOptions/Block/SearchInCategory.php:99]
#9 Codazon\ThemeOptions\Block\SearchInCategory->getHtml() called at [app/code/Codazon/ThemeOptions/Block/SearchInCategory.php:373]
#10 Codazon\ThemeOptions\Block\SearchInCategory->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#11 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [app/design/frontend/Codazon/fastest/fashion/Codazon_ThemeOptions/templates/category-search.phtml:23]
#12 include('/var/www/mage2/a...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#13 Magento\Framework\View\TemplateEngine\Php->render(&Magento\Framework\View\Element\Template#000000001a501955000000005792e494#, '/var/www/mage2/a...', array()) called at [vendor/magento/framework/View/Element/Template.php:271]
#14 Magento\Framework\View\Element\Template->fetchView('/var/www/mage2/a...') called at [vendor/magento/framework/View/Element/Template.php:301]
#15 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#16 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#17 Magento\Framework\View\Layout->_renderBlock('category.search') called at [vendor/magento/framework/View/Layout.php:533]
#18 Magento\Framework\View\Layout->renderNonCachedElement('category.search') called at [vendor/magento/framework/View/Layout.php:488]
#19 Magento\Framework\View\Layout->renderElement('category.search', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:512]
#20 Magento\Framework\View\Element\AbstractBlock->getChildHtml() called at [app/design/frontend/Codazon/fastest/fashion/Magento_Search/templates/form.mini.phtml:51]
#21 include('/var/www/mage2/a...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#22 Magento\Framework\View\TemplateEngine\Php->render(&Magento\Framework\View\Element\Template#000000001a501997000000005792e494#, '/var/www/mage2/a...', array()) called at [vendor/magento/framework/View/Element/Template.php:271]
#23 Magento\Framework\View\Element\Template->fetchView('/var/www/mage2/a...') called at [vendor/magento/framework/View/Element/Template.php:301]
#24 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#25 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#26 Magento\Framework\View\Layout->_renderBlock('top.search') called at [vendor/magento/framework/View/Layout.php:533]
#27 Magento\Framework\View\Layout->renderNonCachedElement('top.search') called at [vendor/magento/framework/View/Layout.php:488]
#28 Magento\Framework\View\Layout->renderElement('top.search', false) called at [vendor/magento/framework/View/Layout.php:585]
#29 Magento\Framework\View\Layout->_renderContainer('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:535]
#30 Magento\Framework\View\Layout->renderNonCachedElement('header.wrapper.c...') called at [vendor/magento/framework/View/Layout.php:488]
#31 Magento\Framework\View\Layout->renderElement('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:585]
#32 Magento\Framework\View\Layout->_renderContainer('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:535]
#33 Magento\Framework\View\Layout->renderNonCachedElement('header.wrapper.c...') called at [vendor/magento/framework/View/Layout.php:488]
#34 Magento\Framework\View\Layout->renderElement('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:585]
#35 Magento\Framework\View\Layout->_renderContainer('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:535]
#36 Magento\Framework\View\Layout->renderNonCachedElement('header.wrapper.c...') called at [vendor/magento/framework/View/Layout.php:488]
#37 Magento\Framework\View\Layout->renderElement('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:585]
#38 Magento\Framework\View\Layout->_renderContainer('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:535]
#39 Magento\Framework\View\Layout->renderNonCachedElement('header.wrapper.c...') called at [vendor/magento/framework/View/Layout.php:488]
#40 Magento\Framework\View\Layout->renderElement('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:585]
#41 Magento\Framework\View\Layout->_renderContainer('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:535]
#42 Magento\Framework\View\Layout->renderNonCachedElement('header.wrapper.c...') called at [vendor/magento/framework/View/Layout.php:488]
#43 Magento\Framework\View\Layout->renderElement('header.wrapper.c...', false) called at [vendor/magento/framework/View/Layout.php:585]
#44 Magento\Framework\View\Layout->_renderContainer('header.container', false) called at [vendor/magento/framework/View/Layout.php:535]
#45 Magento\Framework\View\Layout->renderNonCachedElement('header.container') called at [vendor/magento/framework/View/Layout.php:488]
#46 Magento\Framework\View\Layout->renderElement('header.container', false) called at [vendor/magento/framework/View/Layout.php:585]
#47 Magento\Framework\View\Layout->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]
#48 Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]
#49 Magento\Framework\View\Layout->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]
#50 Magento\Framework\View\Layout->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]
#51 Magento\Framework\View\Layout->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]
#52 Magento\Framework\View\Layout->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]
#53 Magento\Framework\View\Layout->getOutput() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#54 Magento\Framework\View\Layout\Interceptor->___callParent('getOutput', array()) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#55 Magento\Framework\View\Layout\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#56 Magento\Framework\View\Layout\Interceptor->___callPlugins('getOutput', array(), array(array('layout-model-cac...'))) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:39]
#57 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]
#58 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#000000001a501d7e000000005792e494#) called at [vendor/magento/framework/View/Result/Layout.php:171]
#59 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#000000001a501d7e000000005792e494#) called at [vendor/magento/framework/Interception/Interceptor.php:58]
#60 Magento\Framework\View\Result\Page\Interceptor->___callParent('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#000000001a501d7e000000005792e494#)) called at [vendor/magento/framework/Interception/Interceptor.php:138]
#61 Magento\Framework\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}(&Magento\Framework\App\Response\Http\Interceptor#000000001a501d7e000000005792e494#) called at [vendor/magento/framework/Interception/Interceptor.php:153]
#62 Magento\Framework\View\Result\Page\Interceptor->___callPlugins('renderResult', array(&Magento\Framework\App\Response\Http\Interceptor#000000001a501d7e000000005792e494#), array(array('result-messages', 'result-builtin-c...', 'result-varnish-c...'))) called at [generated/code/Magento/Framework/View/Result/Page/Interceptor.php:26]
#63 Magento\Framework\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#000000001a501d7e000000005792e494#) called at [vendor/magento/framework/App/Http.php:140]
#64 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]
#65 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#000000001a501d7c000000005792e494#) called at [index.php:39]
</pre>

解决办法,重建索引

使用命令 bin/magento indexer:reindex


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Item (Magento\Catalog\Model\Category\Interceptor) with the same ID “144” already exists.
喜欢 (0)
发表我的评论
取消评论

*

code

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址