Invalid argument supplied for foreach()

Plus d'informations
il y a 1 mois 4 semaines #186887 par 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)

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 4 semaines #186990 par 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.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 4 semaines #186991 par 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?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 4 semaines #186992 par 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?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #187012 par LouisGac
known problem, it doesn't happen in all environment. We will solve it today.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #187015 par cdorin
Hello blocka, for CU-related issues, please open a ticket since we are not always available on the forum. Thanks for your report!

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 3 semaines #187055 par 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?

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!