m2-MSP_CmsImportExport
m2-MSP_CmsImportExport copied to clipboard
(InvalidArgumentException): An element with a "store_map:default" ID already exists.
install on M2.3.1, this error happens on loading import page, export works seamlessly.
M 2.3.1 with multistore setup.
full text of exception:
Exception #0 (InvalidArgumentException): An element with a "store_map:default" ID already exists.
<pre>#1 Magento\Framework\Data\Form\Element\AbstractElement->addElement(&Magento\Framework\Data\Form\Element\Text#00000000445654d6000000003c3c322c#, false) called at [vendor/magento/framework/Data/Form/AbstractForm.php:157]
#2 Magento\Framework\Data\Form\AbstractForm->addField('store_map:defaul...', 'text', array('name' => 'store_map[defaul...', 'label' => &Magento\Framework\Phrase#00000000445654d0000000003c3c322c#, 'title' => &Magento\Framework\Phrase#00000000445654d7000000003c3c322c#, 'required' => false), false) called at [vendor/magento/framework/Data/Form/Element/Fieldset.php:214]
#3 Magento\Framework\Data\Form\Element\Fieldset->addField('store_map:defaul...', 'text', array('name' => 'store_map[defaul...', 'label' => &Magento\Framework\Phrase#00000000445654d0000000003c3c322c#, 'title' => &Magento\Framework\Phrase#00000000445654d7000000003c3c322c#, 'required' => false)) called at [vendor/msp/cmsimportexport/Block/Adminhtml/Import/Upload/Form.php:119]
#4 MSP\CmsImportExport\Block\Adminhtml\Import\Upload\Form->_prepareForm() called at [vendor/magento/module-backend/Block/Widget/Form.php:156]
#5 Magento\Backend\Block\Widget\Form->_beforeToHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:667]
#6 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#7 Magento\Framework\View\Layout->_renderBlock('cms_import.form') called at [vendor/magento/framework/View/Layout.php:533]
#8 Magento\Framework\View\Layout->renderNonCachedElement('cms_import.form') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#9 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('cms_import.form') called at [vendor/magento/framework/View/Layout.php:488]
#10 Magento\Framework\View\Layout->renderElement('cms_import.form', true) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#11 Magento\Framework\View\Layout\Interceptor->renderElement('cms_import.form', true) called at [vendor/magento/framework/View/Element/AbstractBlock.php:508]
#12 Magento\Framework\View\Element\AbstractBlock->getChildHtml('form') called at [vendor/magento/module-backend/Block/Widget/Form/Container.php:197]
#13 Magento\Backend\Block\Widget\Form\Container->getFormHtml() called at [vendor/magento/module-backend/view/adminhtml/templates/widget/form/container.phtml:24]
#14 include('/var/www/sand1/p...') called at [vendor/magento/framework/View/TemplateEngine/Php.php:59]
#15 Magento\Framework\View\TemplateEngine\Php->render(&MSP\CmsImportExport\Block\Adminhtml\Import#00000000445658ad000000003c3c322c#, '/var/www/sand1/p...', array()) called at [vendor/magento/framework/View/Element/Template.php:271]
#16 Magento\Framework\View\Element\Template->fetchView('/var/www/sand1/p...') called at [vendor/magento/framework/View/Element/Template.php:301]
#17 Magento\Framework\View\Element\Template->_toHtml() called at [vendor/magento/module-backend/Block/Template.php:129]
#18 Magento\Backend\Block\Template->_toHtml() called at [vendor/magento/framework/View/Element/AbstractBlock.php:668]
#19 Magento\Framework\View\Element\AbstractBlock->toHtml() called at [vendor/magento/framework/View/Layout.php:557]
#20 Magento\Framework\View\Layout->_renderBlock('cms_import') called at [vendor/magento/framework/View/Layout.php:533]
#21 Magento\Framework\View\Layout->renderNonCachedElement('cms_import') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#22 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('cms_import') called at [vendor/magento/framework/View/Layout.php:488]
#23 Magento\Framework\View\Layout->renderElement('cms_import', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#24 Magento\Framework\View\Layout\Interceptor->renderElement('cms_import', false) called at [vendor/magento/framework/View/Layout.php:585]
#25 Magento\Framework\View\Layout->_renderContainer('content', false) called at [vendor/magento/framework/View/Layout.php:535]
#26 Magento\Framework\View\Layout->renderNonCachedElement('content') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#27 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('content') called at [vendor/magento/framework/View/Layout.php:488]
#28 Magento\Framework\View\Layout->renderElement('content', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#29 Magento\Framework\View\Layout\Interceptor->renderElement('content', false) called at [vendor/magento/framework/View/Layout.php:585]
#30 Magento\Framework\View\Layout->_renderContainer('main.col', false) called at [vendor/magento/framework/View/Layout.php:535]
#31 Magento\Framework\View\Layout->renderNonCachedElement('main.col') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#32 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('main.col') called at [vendor/magento/framework/View/Layout.php:488]
#33 Magento\Framework\View\Layout->renderElement('main.col', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#34 Magento\Framework\View\Layout\Interceptor->renderElement('main.col', false) called at [vendor/magento/framework/View/Layout.php:585]
#35 Magento\Framework\View\Layout->_renderContainer('admin.scope.col....', false) called at [vendor/magento/framework/View/Layout.php:535]
#36 Magento\Framework\View\Layout->renderNonCachedElement('admin.scope.col....') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#37 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('admin.scope.col....') called at [vendor/magento/framework/View/Layout.php:488]
#38 Magento\Framework\View\Layout->renderElement('admin.scope.col....', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#39 Magento\Framework\View\Layout\Interceptor->renderElement('admin.scope.col....', false) called at [vendor/magento/framework/View/Layout.php:585]
#40 Magento\Framework\View\Layout->_renderContainer('page.main.contai...', false) called at [vendor/magento/framework/View/Layout.php:535]
#41 Magento\Framework\View\Layout->renderNonCachedElement('page.main.contai...') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#42 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.main.contai...') called at [vendor/magento/framework/View/Layout.php:488]
#43 Magento\Framework\View\Layout->renderElement('page.main.contai...', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#44 Magento\Framework\View\Layout\Interceptor->renderElement('page.main.contai...', false) called at [vendor/magento/framework/View/Layout.php:585]
#45 Magento\Framework\View\Layout->_renderContainer('page.content', false) called at [vendor/magento/framework/View/Layout.php:535]
#46 Magento\Framework\View\Layout->renderNonCachedElement('page.content') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#47 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.content') called at [vendor/magento/framework/View/Layout.php:488]
#48 Magento\Framework\View\Layout->renderElement('page.content', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#49 Magento\Framework\View\Layout\Interceptor->renderElement('page.content', false) called at [vendor/magento/framework/View/Layout.php:585]
#50 Magento\Framework\View\Layout->_renderContainer('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:535]
#51 Magento\Framework\View\Layout->renderNonCachedElement('page.wrapper') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#52 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('page.wrapper') called at [vendor/magento/framework/View/Layout.php:488]
#53 Magento\Framework\View\Layout->renderElement('page.wrapper', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#54 Magento\Framework\View\Layout\Interceptor->renderElement('page.wrapper', false) called at [vendor/magento/framework/View/Layout.php:585]
#55 Magento\Framework\View\Layout->_renderContainer('backend.page', false) called at [vendor/magento/framework/View/Layout.php:535]
#56 Magento\Framework\View\Layout->renderNonCachedElement('backend.page') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#57 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('backend.page') called at [vendor/magento/framework/View/Layout.php:488]
#58 Magento\Framework\View\Layout->renderElement('backend.page', false) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#59 Magento\Framework\View\Layout\Interceptor->renderElement('backend.page', false) called at [vendor/magento/framework/View/Layout.php:585]
#60 Magento\Framework\View\Layout->_renderContainer('root', false) called at [vendor/magento/framework/View/Layout.php:535]
#61 Magento\Framework\View\Layout->renderNonCachedElement('root') called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:206]
#62 Magento\Framework\View\Layout\Interceptor->renderNonCachedElement('root') called at [vendor/magento/framework/View/Layout.php:488]
#63 Magento\Framework\View\Layout->renderElement('root', true) called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:193]
#64 Magento\Framework\View\Layout\Interceptor->renderElement('root') called at [vendor/magento/framework/View/Layout.php:954]
#65 Magento\Framework\View\Layout->getOutput() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:492]
#66 Magento\Framework\View\Layout\Interceptor->getOutput() called at [vendor/magento/framework/View/Result/Page.php:258]
#67 Magento\Framework\View\Result\Page->render(&Magento\Framework\App\Response\Http\Interceptor#0000000044565f73000000003c3c322c#) called at [vendor/magento/framework/View/Result/Layout.php:171]
#68 Magento\Framework\View\Result\Layout->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000044565f73000000003c3c322c#) called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:37]
#69 Magento\Backend\Model\View\Result\Page\Interceptor->renderResult(&Magento\Framework\App\Response\Http\Interceptor#0000000044565f73000000003c3c322c#) called at [vendor/magento/framework/App/Http.php:140]
#70 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:258]
#71 Magento\Framework\App\Bootstrap->run(&Magento\Framework\App\Http\Interceptor#0000000044565f71000000003c3c322c#) called at [pub/index.php:40]
</pre>
Same problem here, did you find a solution? I think I'm going with a plugin that removes that entry for the store before recreating it as a workaround.