Step 4: Creating default object from empty ..

Hello 
today, I got this error while I run Delta migration.
 
PHP Error[2]: Creating default object from empt y value in file /var/www/magento/pub/ub-tool/protected/controllers/Step3Controller.php at line 691
#0 /var/www/magento/pub/ub-tool/protected/controllers/Step3Controller.php(627): Step3Controller->_migrateAttributeOptions()
#1 /var/www/magento/pub/ub-tool/protected/controllers/Step3Controller.php(220): Step3Controller->_migrateAttributes()
#2 /var/www/magento/pub/ub-tool/protected/commands/RunCommand.php(74): Step3Controller->actionRun()
#3 /var/www/magento/pub/ub-tool/protected/commands/RunCommand.php(57): RunCommand->_migrateData()
#4 unknown(0): RunCommand->actionIndex()
#5 /var/www/magento/pub/ub-tool/yii-1.1.22/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#6 /var/www/magento/pub/ub-tool/yii-1.1.22/console/CConsoleCommandRunner.php(71): RunCommand->run()
#7 /var/www/magento/pub/ub-tool/yii-1.1.22/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#8 /var/www/magento/pub/ub-tool/yii-1.1.22/base/CApplication.php(185): CConsoleApplication->processRequest()
#9 /var/www/magento/pub/ub-tool/yii-1.1.22/yiic.php(33): CConsoleApplication->run()
#10 /var/www/magento/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#11 /var/www/magento/bin/ubdatamigration(4): require_once()
 
 
 

1 answer

Profile photo of Mall Staff 155990.00 $tone 1 day ago
Public

Hi there,

PHP Error[2]: Creating default object from empt y value in file /var/www/magento/pub/ub-tool/protected/controllers/Step3Controller.php at line 691

That issue occurred because you did delete at least one attribute’s option in M2 after the first migration. To continue with the delta migration in step #3, you can run the following CLI command:

php -f bin/ubdatamigration clean --step=3

And then, you continue with the data migration in step #3 as normal. 

Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments