Step8 delta default object from empty val migrateC

Hi
My deltas are failing on step 8 with the following 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 946
#0 /var/www/vhosts/mysite.com/htdocs/pub/ub-tool/protected/controllers/Step8Controller.php(214): Step8Controller->_migrateCMSPages()
#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

3 answers

Profile photo of Mall Staff 136830.00 $tone May 22, 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 946

That issue occurred because you did delete at least one CMS Page in M2 after the first migration. To solve that issue, you can do steps as follows:
+ Run the SQL query below in your M2 database:

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

+ Clean the cache of our module by running the command: rm -rf pub/ub-tool/protected/runtime/cache/
+ And then, you can continue with the delta migration in step #8 as normal.

Regards,
Mall.

#1
Profile photo of ubdev Staff 60660.00 $tone May 24, 2020
Public

Hi there, 
We’re glad that it helps. 
Our team has just replied to your other tickets as well, please check and follow up with us via those tickets. 
Regards,
Ubertheme team

#3

Please login or Register to Submit Answer

Written By

Comments