v1.0.6: How to fix incompatible issue with M2.4.2?

Created by Jane D, Modified on Wed, 17 Mar 2021 at 11:16 AM by Jane D

QUESTION:


After updating our Magento shop to M2.4.2 the duplicate category module gave an error. 

When going to Catalog > Categories this error is shown:


1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): The "componentType" configuration parameter is required for the "parent" component.Exception #0 (Magento\Framework\Exception\LocalizedException): The "componentType" configuration parameter is required for the "parent" component. <pre>#1 Magento\Framework\View\Element\UiComponentFactory->mergeMetadataItem() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:425] #2 Magento\Framework\View\Element\UiComponentFactory->mergeMetadataItem() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:334] #3 Magento\Framework\View\Element\UiComponentFactory->mergeMetadata() called at [vendor/magento/framework/View/Element/UiComponentFactory.php:231] #4Magento\Framework\View\Element\UiComponentFactory->create() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:140] #5 Magento\Framework\View\Layout\Generator\UiComponent->generateComponent() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:103] #6 Magento\Framework\View\Layout\Generator\UiComponent->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:93] #7 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:365] #8 Magento\Framework\View\Layout->generateElements() called at [generated/code/Magento/Framework/View/Layout/Interceptor.php:68] .......


The exception is triggered at

UiComponentFactory.php

vendor/magento/framework/View/Element/UiComponentFactory.php at line 405

Could you send me the fix?


ANSWER:


To fix this error, please edit file app/code/Bss/DuplicateCategory/view/adminhtml/ui_component/category_form.xml in line 114:
from 
<field name="parent">
to
<field name="parent_duplicate">

Screenshot guide as below:



If you need any further assistance, please feel free to contact us. We'd be happy to support! 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article