Step 7 error Trying to get property of non-object

Hi
We are receiving the error when trying to run step 7:
[Processing][delta] in step #7: ……….PHP Error[8]: Trying to get property of non-object
in file /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/protected/controllers/Step7Controller.php at line 775
#0 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/protected/controllers/Step7Controller.php(184): Step7Controller->_migrateSalesRules()
#1 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/protected/commands/RunCommand.php(74): Step7Controller->actionRun()
#2 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/protected/commands/RunCommand.php(33): RunCommand->_migrateData()
#3 unknown(0): RunCommand->actionIndex()
#4 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#5 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#6 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#7 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#8 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#9 /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#10 /var/www/vhosts/example.co.uk/htdocs/bin/ubdatamigration(4): require_once()
I followed the steps in the below answer but it had no effect.
https://www.ubertheme.com/question/i-still-have-an-problem-with-running-the-step7/#answer-558201
Thanks
 

1 answer

Profile photo of Mall Staff 129610.00 $tone February 4, 2020
Public

Hi there,

[Processing][delta] in step #7: ……….PHP Error[8]: Trying to get property of non-object
in file /var/www/vhosts/example.co.uk/htdocs/pub/ub-tool/protected/controllers/Step7Controller.php at line 775

That because you did deleted at least one salerule in M2 after the first migration with our module. To handle for that case, you can do steps as following:
+ Run CLI command:
php -f bin/ubdatamigration clean --step=7
+ Once done, you can continue with data migration in step #7.
Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments