#StackBounty: #product #magento2.3.4 #product-edit Anyone still facing this issue – After Migrated from magento 1.9 Fatal error – Produ…

Bounty: 50

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

UiComponentFactory::mergeMetadataElement() must be of the type array,
null given

protected function mergeMetadataElement(array $bundleComponents, $name, array $data, $reverseMerge = false)
{
    if (isset($bundleComponents[$name])) {
        $bundleComponents[$name] = $reverseMerge
            ? array_replace_recursive($data, $bundleComponents[$name])
            : array_replace_recursive($bundleComponents[$name], $data);
        return [$bundleComponents, true];
    } else {
        foreach ($bundleComponents as &$childData) {
            if (isset($childData['attributes']['class'])
                && is_a($childData['attributes']['class'], MagentoUiComponentContainer::class, true)
                && isset($childData['children']) && is_array($childData['children'])
            ) {
                list($childData['children'], $isMerged) = $this->mergeMetadataElement(
                    $childData['children'],
                    $name,
                    $data,
                    $reverseMerge
                );
                if ($isMerged) {
                    return [$bundleComponents, true];
                }
            }
        }
    }
    return [$bundleComponents, false];
}

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Magento 2.3 – After Migrated from magento 1.9 Fatal error: Uncaught TypeError: Argum…

Bounty: 50

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

UiComponentFactory::mergeMetadataElement() must be of the type array,
null given

protected function mergeMetadataElement(array $bundleComponents, $name, array $data, $reverseMerge = false)
{
    if (isset($bundleComponents[$name])) {
        $bundleComponents[$name] = $reverseMerge
            ? array_replace_recursive($data, $bundleComponents[$name])
            : array_replace_recursive($bundleComponents[$name], $data);
        return [$bundleComponents, true];
    } else {
        foreach ($bundleComponents as &$childData) {
            if (isset($childData['attributes']['class'])
                && is_a($childData['attributes']['class'], MagentoUiComponentContainer::class, true)
                && isset($childData['children']) && is_array($childData['children'])
            ) {
                list($childData['children'], $isMerged) = $this->mergeMetadataElement(
                    $childData['children'],
                    $name,
                    $data,
                    $reverseMerge
                );
                if ($isMerged) {
                    return [$bundleComponents, true];
                }
            }
        }
    }
    return [$bundleComponents, false];
}

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Magento 2.3 – After Migration Fatal error: Uncaught TypeError: Argument 3 passed Err…

Bounty: 50

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

UiComponentFactory::mergeMetadataElement() must be of the type array,
null given

protected function mergeMetadataElement(array $bundleComponents, $name, array $data, $reverseMerge = false)
{
    if (isset($bundleComponents[$name])) {
        $bundleComponents[$name] = $reverseMerge
            ? array_replace_recursive($data, $bundleComponents[$name])
            : array_replace_recursive($bundleComponents[$name], $data);
        return [$bundleComponents, true];
    } else {
        foreach ($bundleComponents as &$childData) {
            if (isset($childData['attributes']['class'])
                && is_a($childData['attributes']['class'], MagentoUiComponentContainer::class, true)
                && isset($childData['children']) && is_array($childData['children'])
            ) {
                list($childData['children'], $isMerged) = $this->mergeMetadataElement(
                    $childData['children'],
                    $name,
                    $data,
                    $reverseMerge
                );
                if ($isMerged) {
                    return [$bundleComponents, true];
                }
            }
        }
    }
    return [$bundleComponents, false];
}

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Magento 2.3 – Can't able to add new product – Error: Uncaught TypeError: Argumen…

Bounty: 50

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337

Attribute Set Error:

enter image description here

enter image description here


Get this bounty!!!

#StackBounty: #product #magento2.3.4 #product-edit Magento 2.3 – Can't able to add new product – Error: Uncaught TypeError: Argumen…

Bounty: 50

I am getting following error if i try to edit product from backend,

Fatal error: Uncaught TypeError: Argument 3 passed to
MagentoFrameworkViewElementUiComponentFactory::mergeMetadataElement()
must be of the type array, null given, called in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 384 and defined in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php:337
Stack trace: #0
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(384):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataElement(Array,
‘configurableExi…’, NULL, false) #1
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #2
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php(412):
MagentoFrameworkViewElementUiComponentFactory->mergeMetadataItem(Array,
Array, false) #3 /var/www/html/test/lib/internal/Magento/Fram in
/var/www/html/test/lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
on line 337


Get this bounty!!!