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

Created by Support Agent, Modified on Sun, 19 Apr at 11:00 PM by Support Agent

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! 


Explore more powerful extensions:


I hope that the info is helpful. Could you please check our sites also to see which extension meets your needs?
If you have any further queries, please feel free to contact us at sales@bsscommerce.com or create a ticket. We'd like to help you.


To get to know us, here are some information:


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html


 

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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article