Stuck On Step 7

 
Step #7 migration completed with 16 record(s) in the ‘sales_order_status’ table.
….PHP Error[2]: Invalid argument supplied for foreach()
in file /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/controllers/Step7Controller.php at line 3668
#0 /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/controllers/Step7Controller.php(1635): Step7Controller->_migrateSalesOrderItem()
#1 /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/controllers/Step7Controller.php(314): Step7Controller->_migrateSalesOrders()
#2 /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/commands/RunCommand.php(80): Step7Controller->actionRun()
#3 /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/commands/RunCommand.php(36): RunCommand->_migrateData()
#4 unknown(0): RunCommand->actionIndex()
#5 /home/sprgroup/public_html/m2dev/pub/ub-tool/yii-1.1.22/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#6 /home/sprgroup/public_html/m2dev/pub/ub-tool/yii-1.1.22/console/CConsoleCommandRunner.php(71): RunCommand->run()
#7 /home/sprgroup/public_html/m2dev/pub/ub-tool/yii-1.1.22/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#8 /home/sprgroup/public_html/m2dev/pub/ub-tool/yii-1.1.22/base/CApplication.php(185): CConsoleApplication->processRequest()
#9 /home/sprgroup/public_html/m2dev/pub/ub-tool/yii-1.1.22/yiic.php(33): CConsoleApplication->run()
#10 /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#11 /home/sprgroup/public_html/m2dev/bin/ubdatamigration(4): require_once()

1 answer

Profile photo of Mall Staff 184060.00 $tone February 1, 2022
Public

Hi there,

.PHP Error[2]: Invalid argument supplied for foreach()
in file /home/sprgroup/public_html/m2dev/pub/ub-tool/protected/controllers/Step7Controller.php at line 3668

To solve that issue, you can try to run the following CLI command:

php -f bin/ubdatamigration clean --step=7

And then, you continue with data migration in step #7 by running the CLI command:
 

php -f bin/ubdatamigration run --step=7

Regards,
Mall.

#1

Please login or Register to Submit Answer

Written By

Comments