After migrate products from m1 and try to open product i have 500 error.
Uncaught TypeError: Argument 3 passed to Magento\Framework\View\Element\UiComponentFactory::mergeMetadataElement() must be of the type array, null given
and STEP 3
if try to run get this error
php bin/ubdatamigration run --step=3
Processing in step #3…………Error: Call to a member function getErrors() on null in /home/antonio/webroot/es100/magento2/pub/ub-tool/protected/controllers/Step3Controller.php:533
Stack trace:
#0 /home/antonio/webroot/es100/magento2/pub/ub-tool/protected/controllers/Step3Controller.php(201): Step3Controller->_migrateAttributeGroups(Array)
#1 /home/antonio/webroot/es100/magento2/pub/ub-tool/protected/commands/RunCommand.php(58): Step3Controller->actionRun()
#2 /home/antonio/webroot/es100/magento2/pub/ub-tool/protected/commands/RunCommand.php(28): RunCommand->_migrateData(Object(Step3Controller))
#3 [internal function]: RunCommand->actionIndex(Object(Step3Controller), false, ‘run’)
#4 /home/antonio/webroot/es100/magento2/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs(Object(RunCommand), Array)
#5 /home/antonio/webroot/es100/magento2/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): CConsoleCommand->run(Array)
#6 /home/antonio/webroot/es100/magento2/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#7 /home/antonio/webroot/es100/magento2/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#8 /home/antonio/webroot/es100/magento2/pub/ub-tool/yii-1.1.19/yiic.php(33): CApplication->run()
#9 /home/antonio/webroot/es100/magento2/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once(‘/home/antonio/w…’)
#10 /home/antonio/webroot/es100/magento2/bin/ubdatamigration(4): require_once(‘/home/antonio/w…’)
Can you help me please?
5 answers
Hi there,
Uncaught TypeError: Argument 3 passed to Magento\Framework\View\Element\UiComponentFactory::mergeMetadataElement() must be of the type array, null given
That is strange. It seem you have some issue with custom product attributes.
php bin/ubdatamigration run --step=3
Processing in step #3…………Error: Call to a member function getErrors() on null in /home/antonio/webroot/es100/magento2/pub/ub-tool/protected/controllers/Step3Controller.php:533
Stack trace:
Did you have deleted any product attribute groups after the first migration?
Let’s provide me information about your instance:
+ Admin credentials and back-end URL
+ SSH credentials and path to magento2 folder
I will help to check further and reply you more later.
Regards,
Mall.
i have installed all in local :(.
Hi Asnep,
Please consider setting up a live staging instance where we can debug directly. Due to the complex nature of migration, it’s hard for us to provide you efficient help if you proceed migration in your local environment.
Thanks for your understanding.
PS. Our office is about to close soon, please accept our apology for certain delay in following up with your question. We will work closely with you throughout the weekend though.
Regards,
Ubertheme team
i have think to find the problem.
All product in attribute set is empty.
https://ibb.co/e865S8 this is a screen shot
Hi there,
From the screenshot you provided, below are two possible root of the issue:
- You have not completed Step 3 (in our migration dashboard) successfully.
- Or, you had imported incorrect M1 clone db instance (Admin store ID = 0 might be set to a different ID). You can check further in the ‘core_store’ table at your end -- https://prnt.sc/jxz3dp
Anyway, as explained in our previous reply, you should deploy a live instance where we can debug and confirm on the root of issue.
Thanks,
Ubertheme team