Invalid argument supplied for foreach()

Mehr
2 Monate 3 Wochen her #186887 von blocka
When using the ComfortUpdate to update from Version 3.17.0+190402 to 3.17.8+190722, I receive this error:

 
PHP Error [500]
Invalid argument supplied for foreach() (/home/lstest/public_html/application/models/UpdateForm.php:889)
 
#0 /home/lstest/public_html/framework/base/CApplication.php(834): CErrorHandler->handle()
#1 /home/lstest/public_html/application/models/UpdateForm.php(889): LSYii_Application->handleError()
#2 /home/lstest/public_html/application/models/UpdateForm.php(175): UpdateForm->_getModuleChecks()
#3 /home/lstest/public_html/application/controllers/admin/update.php(231): UpdateForm->getLocalChecks()
#4 unknown(0): update->checkLocalErrors()
#5 /home/lstest/public_html/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs()
#6 /home/lstest/public_html/application/core/Survey_Common_Action.php(83): update->runWithParamsInternal()
#7 /home/lstest/public_html/framework/web/CController.php(308): update->runWithParams()
#8 /home/lstest/public_html/framework/web/CController.php(286): AdminController->runAction()
#9 /home/lstest/public_html/framework/web/CController.php(265): AdminController->runActionWithFilters()
#10 /home/lstest/public_html/application/controllers/AdminController.php(158): AdminController->run()
#11 /home/lstest/public_html/framework/web/CWebApplication.php(282): AdminController->run()
#12 /home/lstest/public_html/framework/web/CWebApplication.php(141): LSYii_Application->runController()
#13 /home/lstest/public_html/framework/base/CApplication.php(185): LSYii_Application->processRequest()
#14 /home/lstest/public_html/index.php(194): LSYii_Application->run()

No error_log generated by PHP. I'm running php 7.1 (and tried 7.2 and 7.0 as well, with same result)

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LimeSurvey Partners
Mehr
2 Monate 3 Wochen her #186990 von blocka
Any one else experiencing this? I've tested on a few test installs of Version 3.17.7+190627 and I'm getting the same error each time.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Monate 3 Wochen her #186991 von blocka
I found I can work around this by adding :

return($return);

after line 887, so I have:
$return = new stdClass();
return($return);

Thereby circumventing the foreach(), but I wonder what (if anything) this breaks during the upgrade?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Monate 3 Wochen her #186992 von blocka
I thought to run a file compare between build 190627 and 190722 -- wow! There are a lot of changes across a lot of files.

Is this the right release package for 190722?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Monate 3 Wochen her #187012 von LouisGac
known problem, it doesn't happen in all environment. We will solve it today.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Monate 3 Wochen her #187015 von cdorin
Hello blocka, for CU-related issues, please open a ticket since we are not always available on the forum. Thanks for your report!

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
2 Monate 3 Wochen her #187055 von blocka
@louisGac: Thanks, I see today (noon GMT-5) that CU is reporting no updates available. Is this because a patch is in the process of being implemented?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha