Error during delta migration after changing servers.
Please let me know how to fix this.
Thanks!
..PHP Error[2]: Invalid argument supplied for foreach()
in file /home/ballewtest/public_html/pub/ub-tool/protected/controllers/Step7Controller.php at line 1559
#0 /home/ballewtest/public_html/pub/ub-tool/protected/controllers/Step7Controller.php(1457): Step7Controller->_migrateSalesQuote()
#1 /home/ballewtest/public_html/pub/ub-tool/protected/controllers/Step7Controller.php(254): Step7Controller->_migrateSalesOrders()
#2 /home/ballewtest/public_html/pub/ub-tool/protected/commands/RunCommand.php(74): Step7Controller->actionRun()
#3 /home/ballewtest/public_html/pub/ub-tool/protected/commands/RunCommand.php(33): RunCommand->_migrateData()
#4 unknown(0): RunCommand->actionIndex()
#5 /home/ballewtest/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommand.php(172): ReflectionMethod->invokeArgs()
#6 /home/ballewtest/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleCommandRunner.php(71): RunCommand->run()
#7 /home/ballewtest/public_html/pub/ub-tool/yii-1.1.19/console/CConsoleApplication.php(92): CConsoleCommandRunner->run()
#8 /home/ballewtest/public_html/pub/ub-tool/yii-1.1.19/base/CApplication.php(185): CConsoleApplication->processRequest()
#9 /home/ballewtest/public_html/pub/ub-tool/yii-1.1.19/yiic.php(33): CConsoleApplication->run()
#10 /home/ballewtest/public_html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#11 /home/ballewtest/public_html/bin/ubdatamigration(4): require_once()
1 answer
Hi there,
..PHP Error[2]: Invalid argument supplied for foreach()
in file /home/ballewtest/public_html/pub/ub-tool/protected/controllers/Step7Controller.php at line 1559
To solve that issue, you can try with these steps:
- Download the PHP file here
- Then upload it to overwrite the same PHP file at pub/ub-tool/protected/commands/CleanCommand.php
- Next, run the CLI command:
php -f bin/ubdatamigration clean --step=7
Once done, you continue with the data migration in step #7 as normal.
Regards,
Mall.