when I running the step7 like this php -f bin/ubdatamigration run --step=7 --mode=update, after excuting a few time. it shows the following error:
[Processing] Step #7 migration completed with 100 Sales Orders;
Processing in step #7…………………………………………………………………….. ……………………………………………………………………………………….. ……………………………………………………………………………………….. ……………………………………………………………………………………….. …………………………[Processing] Step #7 migration completed with 100 Sales Orders;
Processing in step #7………………………………………………….PHP Error[8]: Trying t o get property ‘attributes’ of non-object
in file /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php at line 1521
#0 /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php(1453): Step7Controller->_migra teSalesQuoteItem()
#1 /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php(1310): Step7Controller->_migra teSalesQuote()
#2 /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php(246): Step7Controller->_migrat eSalesOrders()
#3 /var/www/back/pub/ub-tool/protected/commands/RunCommand.php(58): Step7Controller->actionRun()
#4 /var/www/back/pub/ub-tool/protected/commands/RunCommand.php(28): RunCommand->_migrateData()
#5 unknown(0): RunCommand->actionIndex()
#6 /var/www/back/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArg s()
#7 /var/www/back/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#8 /var/www/back/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->r un()
#9 /var/www/back/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processReque st()
#10 /var/www/back/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#11 /var/www/back/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#12 /var/www/back/bin/ubdatamigration(4): require_once()
-
php -f bin/ubdatamigration run --step=7Processing in step #7........PHP Error[8]: Trying to get property 'attributes' of non-object in file /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php at line 1412#0 /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php(1310): Step7Controller->_migrateSalesQuote()#1 /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php(246): Step7Controller->_migrateSalesOrders()#2 /var/www/back/pub/ub-tool/protected/commands/RunCommand.php(58): Step7Controller->actionRun()#3 /var/www/back/pub/ub-tool/protected/commands/RunCommand.php(28): RunCommand->_migrateData()#4 unknown(0): RunCommand->actionIndex()#5 /var/www/back/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()#6 /var/www/back/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()#7 /var/www/back/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()#8 /var/www/back/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()#9 /var/www/back/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()#10 /var/www/back/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()#11 /var/www/back/bin/ubdatamigration(4): require_once()when I truncate the order tables and run step7 again, it shows this error.
2 answers
Hi there,
Processing in step #7………………………………………………….PHP Error[8]: Trying t o get property ‘attributes’ of non-object
Lets try do steps below to solve that issue:
+ Run below SQL in your M2 database:
DELETE FROM ub_migrate_map_step_7_quote WHERE entity_name = 'sales_flat_quote' AND m2_id NOT IN (Select entity_id From quote);
DELETE FROM ub_migrate_map_step_7_quote_item WHERE entity_name = 'sales_flat_quote_item' AND m2_id NOT IN (Select item_id From quote_item);
DELETE FROM ub_migrate_map_step_7_quote_address WHERE entity_name = 'sales_flat_quote_address' AND m2_id NOT IN (Select address_id From quote_address);
+ Clean cache of our module by run command:
rm -rf pub/ub-tool/protected/runtime/cache/
+ And then, you could continue with data migration in the step #7 by run CLI command:
php -f bin/ubdatamigration run --step=7;
Regards,
Mall.
Hi David,
php -f bin/ubdatamigration run --step=7Processing in step #7……..PHP Error[8]: Trying to get property ‘attributes’ of non-object in file /var/www/back/pub/ub-tool/protected/controllers/Step7Controller.php at line 1412
That refers to a similar issue that you already posted but it happened in another context.
If you already followed all steps as suggested in my reply #1 and the issue still persists, please provide me information of your instance:
- URL and admin credentials of your M2 site
- SSH credentials of your M2 instance
- Let me know the path to your M2 folder
I will help to check further and get back to you then.
PS1. Please add a new reply instead of leaving a comment under your original question. It’s easier for us to follow up your new questions.
PS2. Please mark your reply private, or simply switch this ticket to private mode, then it’s safe to share your site info here. Only you and our technical team can access.
Regards,
Mall.