Step 8 issue Creating default object from empty va

Hello Team, 

On step 8 we are facing below error 

[Processing][delta] in step #8: PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php at line 860
#0 /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php(194): Step8Controller->_migrateCMSBlocks()
#1 /srv/public_html/pub/ub-tool/protected/commands/RunCommand.php(74): Step8Controller->actionRun()
#2 /srv/public_html/pub/ub-tool/protected/commands/RunCommand.php(33): RunCommand->_migrateData()
#3 unknown(0): RunCommand->actionIndex()
#4 /srv/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#5 /srv/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#6 /srv/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#7 /srv/public_html/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#8 /srv/public_html/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#9 /srv/public_html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#10 /srv/public_html/bin/ubdatamigration(4): require_once();
Please check and let me know as soon as possible. 
Thanks

3 answers

Profile photo of Mall Staff 136830.00 $tone May 17, 2020
Public

Hi there,

[Processing][delta] in step #8: PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php at line 860
#0 /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php(194): Step8Controller->_migrateCMSBlocks()

That issue because you deleted at least one cms block in M2 after the first migration. To solve that issue you can do steps as following:
+ Run following SQL in your M2 database:

DELETE FROM ub_migrate_map_step_8_cms WHERE entity_name = 'cms_block' AND m2_id NOT IN (Select block_id From cms_block);

+ Clean cache of our module by run command:
rm -rf pub/ub-tool/protected/runtime/cache/
+ And then, you continue with data migration in step #8.
Regards,
Mall.

#1
Profile photo of rufflebutts 680.00 $tone May 17, 2020
Public

Thanks for the help . 
Now again facing one issue in reviews migration : 

Status: fail
Message: Mage2ReviewDetail: Title cannot be blank.

Please check and let me know as soon as possible.

#2
Profile photo of Mall Staff 136830.00 $tone May 17, 2020
Public

Hi there,

Status: fail
Message: Mage2ReviewDetail: Title cannot be blank.

That issue occurred because your M1 database had at least on data record which had the bad data in the review_detail.title field.
 
To solve that issue, you have to delete that data record in your M1 database. You can run the following SQL query in your M1 database to delete:

Delete From review_detail where title = '' OR title IS NULL;

+ Once done, you can continue with the data migration in step #8.

Regards,
Mall.

#3

Please login or Register to Submit Answer

Written By

Comments