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

18 answers

Profile photo of Mall Staff 184060.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 1660.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 184060.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
Profile photo of rufflebutts 1660.00 $tone June 13, 2020
Public

Hello Team, 

Facing below error

[Processing][delta] Step #8 migration completed with 6 TaxClass items;
PHP Error[8]: Trying to get property ‘attributes’ of non-object
in file /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php at line 1564
#0 /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php(406): Step8Controller->_migrateTaxCalculationRate()
#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 this and let us know soon

#4
Profile photo of Mall Staff 184060.00 $tone June 15, 2020
Public

Hi there,

[Processing][delta] Step #8 migration completed with 6 TaxClass items;
PHP Error[8]: Trying to get property ‘attributes’ of non-object
in file /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php at line 1564

That issue occurred because you did delete at least one migrated tax calculation rate in M2, after the first migration.

To solve that you can do step as follows:
+ Run the SQL query below in your M2 database:

DELETE FROM ub_migrate_map_step_8 WHERE entity_name = 'tax_calculation_rate' AND m2_id NOT IN (SELECT tax_calculation_rate_id FROM tax_calculation_rate);

+ Clean 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.

#5
Profile photo of ubdev Staff 98150.00 $tone June 16, 2020
Public

Hi there, 
 
Due to our current high workload, please give us a bit more time to follow up on your question. We will get back to you as soon as possible.
 
Thanks for your patience. 
 
Regards,
Ubertheme team 

#9
Profile photo of Mall Staff 184060.00 $tone June 17, 2020
Public

Hi there,

I have tried above query but did’t worked.

Did you see any error notice? And did you re-perform all steps as suggested in my reply #5?

Regards,
Mall.
 
 

#11
Profile photo of rufflebutts 1660.00 $tone June 17, 2020
Public

Hello team, 

I have followed all the steps but now below error appeared. 

[Processing][delta] Step #8 migration completed with 78 TaxCalculationRate items;
…PHP Error[2]: Creating default object from empty value
in file /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php at line 1639
#0 /srv/public_html/pub/ub-tool/protected/controllers/Step8Controller.php(420): Step8Controller->_migrateTaxCalculationRule()
#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()

Line number changed  : Step8Controller.php at line 1639

Please check above error and give me solution as soon as possible… 
 
Thanks !!

#12
Profile photo of rufflebutts 1660.00 $tone June 17, 2020
Public

Hello Team, 

I have resolved above issue and done delta migration . 

I am facing one more issue of records missing . For customer its shows : 354059 records are migrated ( screen :https://prnt.sc/t1prk9 ) but actual result is : 308728 ( screen :https://prnt.sc/t1ps3p ) .

Same issue for orders as well . Records are missing . 

Please check this and let me know as soon as possible. 

Thanks !!

#13
Profile photo of Mall Staff 184060.00 $tone June 18, 2020
Public

Hi there,

 For customer its shows : 354059 records are migrated ( screen :https://prnt.sc/t1prk9 )

That isn’t the total of customer being migrated, that is the total of customers our tool detected in your M1 database.

Did you finish data migration in step #6? If yes, did you reindex the data successfully after you completed data migration?

Same issue for orders as well . Records are missing . 

Did you finish the data migration in step #7? Did you see any error message in the migration log of our migration tool at pub/ub-tool/protected/runtime/ub_data_migration.log?

Regards,
Mall.
 

#14
Profile photo of rufflebutts 1660.00 $tone June 18, 2020
Public

Hello Team,

Did you finish data migration in step #6? If yes, did you reindex the data successfully after you completed data migration?

Answer : Yes i have finished data migration successfully also did reindex still same issue . 

Did you finish the data migration in step #7? Did you see any error message in the migration log of our migration tool at pub/ub-tool/protected/runtime/ub_data_migration.log?

Answer : Yes finished step 7 . There are no errors in log . I did faced some errors of duplicate entries nothing else. 

 

#15
Profile photo of ubdev Staff 98150.00 $tone June 19, 2020
Public

Hi there, 
We wonder if this refers to the same Magento instance that you submitted another ticket here
We’ve just replied to you there asking for our new IP whitelist. Please follow up with us on a single ticket if it relates to the same instance. 
Regards,
Ubertheme team
 

#16

Please login or Register to Submit Answer

Written By

Comments