step 8 delta Creating default object from empty va

Hi
When running step 8 delta I get this error:

PHP Error[2]: Creating default object from empty value
in file /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/controllers/Step8Controller.php at line 1042
#0 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/controllers/Step8Controller.php(245): Step8Controller->_migrateReview()
#1 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/commands/RunCommand.php(74): Step8Controller->actionRun()
#2 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/commands/RunCommand.php(33): RunCommand->_migrateData()
#3 unknown(0): RunCommand->actionIndex()
#4 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#5 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#6 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#7 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#8 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#9 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#10 /var/www/vhosts/mysite.com/htdocs/bin/ubdatamigration(4): require_once()

Any ideas?
Thanks
 
 

1 answer

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

Hi there,

PHP Error[2]: Creating default object from empty value
in file /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/controllers/Step8Controller.php at line 1042

That issue occurred because you did delete at least one migrated review data in your M2 after the first migration. To solve that issue, you can try with these steps:
+ Run the following SQL queries in your M2 database:

DELETE FROM ub_migrate_map_step_8_review WHERE entity_name = 'review' AND m2_id NOT IN (Select review_id From review);
DELETE FROM ub_migrate_map_step_8_subscriber WHERE entity_name = 'newsletter_subscriber' AND m2_id NOT IN (Select subscriber_id From newsletter_subscriber);
DELETE FROM ub_migrate_map_step_8 WHERE entity_name = 'tax_class' AND m2_id NOT IN (SELECT class_id FROM tax_class);
DELETE FROM ub_migrate_map_step_8 WHERE entity_name = 'tax_calculation_rule' AND m2_id NOT IN (SELECT tax_calculation_rule_id FROM tax_calculation_rule);
DELETE FROM ub_migrate_map_step_8_cms WHERE entity_name = 'cms_block' AND m2_id NOT IN (Select block_id From cms_block);
DELETE FROM ub_migrate_map_step_8_cms WHERE entity_name = 'cms_page' AND m2_id NOT IN (Select page_id From cms_page);

+ Once done, clean the cache of our migration tool by running the command: 
rm -rf pub/ub-tool/protected/runtime/cache/
+ And then, you can continue with the delta migration in Step #8.
 
Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments