Smile-SA / magento2-module-product-label

Module to handle custom labels with images on products
Open Software License 3.0
52 stars 34 forks source link

Error in Manage Product labels #15

Open dirkgulitz opened 5 years ago

dirkgulitz commented 5 years ago

On Magento ver. 2.3.1 in "Manage Product labels" i get this error Item (Magento\Framework\View\Element\UiComponent\DataProvider\Document) with the same ID "2" already exists.

If i delete it from table smile_product label the next ID throws out.

Adding Labels works as expected

Using Tax Class works but using a custom attribute does not work.

eng-abdurraoof commented 2 years ago

Hi @dirkgulitz did you get any solution for it? I am also getting similar error When I open Admin > Page show error like Item (Magento\Framework\View\Element\UiComponent\DataProvider\Document) with the same ID "37" already exists.

When I open any product in edit view, showing error

`1 exception(s): Exception #0 (Exception): Item (Magento\Cms\Model\Page) with the same ID "37" already exists.

1 Magento\Framework\Data\Collection\AbstractDb->loadWithFilter() called at [vendor/magento/framework/Interception/Interceptor.php:58]

2 Magento\Cms\Model\ResourceModel\Page\Collection\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]

3 Magento\Cms\Model\ResourceModel\Page\Collection\Interceptor->Magento\Framework\Interception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]

4 Magento\Cms\Model\ResourceModel\Page\Collection\Interceptor->___callPlugins() called at [generated/code/Magento/Cms/Model/ResourceModel/Page/Collection/Interceptor.php:39]

5 Magento\Cms\Model\ResourceModel\Page\Collection\Interceptor->loadWithFilter() called at [vendor/magento/framework/Data/Collection/AbstractDb.php:565]

6 Magento\Framework\Data\Collection\AbstractDb->load() called at [vendor/magento/framework/Data/Collection.php:838]

7 Magento\Framework\Data\Collection->getIterator() called at [vendor/mageworx/module-seobase/Model/Source/CustomCanonical/CmsPage.php:45]

8 MageWorx\SeoBase\Model\Source\CustomCanonical\CmsPage->toOptionArray() called at [vendor/mageworx/module-seobase/Ui/DataProvider/Form/Modifier/CustomCanonical/AbstractModifier.php:730]

9 MageWorx\SeoBase\Ui\DataProvider\Form\Modifier\CustomCanonical\AbstractModifier->getCmsPageOptions() called at [vendor/mageworx/module-seobase/Ui/DataProvider/Form/Modifier/CustomCanonical/AbstractModifier.php:459]

10 MageWorx\SeoBase\Ui\DataProvider\Form\Modifier\CustomCanonical\AbstractModifier->getTargetCmsPageIdFieldConfig() called at [vendor/mageworx/module-seobase/Ui/DataProvider/Form/Modifier/CustomCanonical/AbstractModifier.php:273]

11 MageWorx\SeoBase\Ui\DataProvider\Form\Modifier\CustomCanonical\AbstractModifier->getCanonicalToFieldset() called at [vendor/mageworx/module-seobase/Ui/DataProvider/Form/Modifier/CustomCanonical/AbstractModifier.php:196]

12 MageWorx\SeoBase\Ui\DataProvider\Form\Modifier\CustomCanonical\AbstractModifier->modifyMeta() called at [vendor/mageworx/module-seobase/Plugin/CustomCanonicalFormUpdate/AddToCategoryFormPlugin.php:37]

13 MageWorx\SeoBase\Plugin\CustomCanonicalFormUpdate\AddToCategoryFormPlugin->afterGetMeta() called at [vendor/magento/framework/Interception/Interceptor.php:146]

14 Magento\Catalog\Model\Category\DataProvider\Interceptor->Magento\Framework\Interception{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]

15 Magento\Catalog\Model\Category\DataProvider\Interceptor->___callPlugins() called at [generated/code/Magento/Catalog/Model/Category/DataProvider/Interceptor.php:26]

16 Magento\Catalog\Model\Category\DataProvider\Interceptor->getMeta() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:318]

17 Magento\Framework\View\Element\UiComponentFactory->mergeMetadata() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:218]

18 Magento\Framework\View\Element\UiComponentFactory->create() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:140]

19 Magento\Framework\View\Layout\Generator\UiComponent->generateComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103]

20 Magento\Framework\View\Layout\Generator\UiComponent->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:81]

21 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:350]`

PierreGauthier commented 9 months ago

Hello @dirkgulitz , can you confirm if you issue has been fix by 31ef4d33 (I cannot reproduce it on my side) @eng-abdurraoof you issue doesn't seems to be linked to the productLabel module ?