Stuck on Step 5

Hi there,
 
I saw another similar question and so I tried running…

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

… and this is what I get….

PHP Error[8192]: Return type of CList::getIterator() should either be compatible with IteratorAggregate::g etIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppres s the notice
in file /var/www/html/pub/ub-tool/yii-1.1.25/collections/CList.php at line 88
#0 /var/www/html/pub/ub-tool/yii-1.1.25/base/CApplication.php(832): CErrorHandler->handle()
#1 /var/www/html/pub/ub-tool/yii-1.1.25/collections/CList.php(38): CConsoleApplication->handleError()
#2 /var/www/html/pub/ub-tool/yii-1.1.25/YiiBase.php(437): include()
#3 /var/www/html/pub/ub-tool/yii-1.1.25/base/CComponent.php(474): autoload()
#4 /var/www/html/pub/ub-tool/yii-1.1.25/base/CComponent.php(516): CLogger->getEventHandlers()
#5 /var/www/html/pub/ub-tool/yii-1.1.25/logging/CLogRouter.php(69): CLogger->attachEventHandler()
#6 /var/www/html/pub/ub-tool/yii-1.1.25/base/CModule.php(394): CLogRouter->init()
#7 /var/www/html/pub/ub-tool/yii-1.1.25/base/CModule.php(530): CConsoleApplication->getComponent()
#8 /var/www/html/pub/ub-tool/yii-1.1.25/base/CApplication.php(168): CConsoleApplication->preloadComponents ()
#9 /var/www/html/pub/ub-tool/yii-1.1.25/YiiBase.php(132): CConsoleApplication->__construct()
#10 /var/www/html/pub/ub-tool/yii-1.1.25/YiiBase.php(120): createApplication()
#11 /var/www/html/pub/ub-tool/yii-1.1.25/yiic.php(23): createConsoleApplication()
#12 /var/www/html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once()
#13 /var/www/html/bin/ubdatamigration(4): require_once()

Warning: Uncaught Error: Object of class UnwindExit could not be converted to string in /var/www/html/pub/ ub-tool/yii-1.1.25/collections/CList.php:38
Stack trace:
#0 /var/www/html/pub/ub-tool/yii-1.1.25/YiiBase.php(437): include()
#1 /var/www/html/pub/ub-tool/yii-1.1.25/base/CComponent.php(474): YiiBase::autoload('CList')
#2 /var/www/html/pub/ub-tool/yii-1.1.25/base/CComponent.php(516): CComponent->getEventHandlers('onflush')
#3 /var/www/html/pub/ub-tool/yii-1.1.25/logging/CLogRouter.php(69): CComponent->attachEventHandler('onFlus h', Array)
#4 /var/www/html/pub/ub-tool/yii-1.1.25/base/CModule.php(394): CLogRouter->init()
#5 /var/www/html/pub/ub-tool/yii-1.1.25/base/CModule.php(530): CModule->getComponent('log')
#6 /var/www/html/pub/ub-tool/yii-1.1.25/base/CApplication.php(168): CModule->preloadComponents()
#7 /var/www/html/pub/ub-tool/yii-1.1.25/YiiBase.php(132): CApplication->__construct(Array)
#8 /var/www/html/pub/ub-tool/yii-1.1.25/YiiBase.php(120): YiiBase::createApplication('CConsoleApplica...', '/var/www/html/p...')
#9 /var/www/html/pub/ub-tool/yii-1.1.25/yiic.php(23): YiiBase::createConsoleApplication('/var/www/html/p.. .')
#10 /var/www/html/pub/ub-tool/protected/ubdatamigration_cli.php(5): require_once('/var/www/html/p...')
#11 /var/www/html/bin/ubdatamigration(4): require_once('/var/www/html/p...')
#12 {main}
thrown in /var/www/html/pub/ub-tool/yii-1.1.25/collections/CList.php on line 38

Fatal error: During inheritance of IteratorAggregate: Uncaught in /var/www/html/pub/ub-tool/yii-1.1.25/co llections/CList.php on line 38

 

3 answers

Profile photo of Mall Staff 180840.00 $tone July 17, 2022
Public

Hi there,

PHP Error[8192]: Return type of CList::getIterator() should either be compatible with IteratorAggregate::g etIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppres s the notice
in file /var/www/html/pub/ub-tool/yii-1.1.25/collections/CList.php at line 88

To handle that case, I have added more tweak code in the PHP file at the path: pub/ub-tool/protected/ubdatamigration_cli.php
Please continue with data migration in step #5 by running the CLI command:

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

And tell me how it goes.
Regards,
Mall.

#1
Profile photo of igna 190.00 $tone July 17, 2022
Public

Perfect. Now it works! Thank you very much.
Since there are a lot of “code tweaks” I will do a fresh installation to confirm that now everything works.

#2
Profile photo of ubdev Staff 92480.00 $tone July 18, 2022
Public

Hi,

Since there are a lot of “code tweaks” I will do a fresh installation to confirm that now everything works.

Please continue at your end and let us know if you require further support. We’d be glad to assist anytime.

#3

Please login or Register to Submit Answer

Written By

Comments