Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Invalid argument supplied for foreach()

More
6 years 1 month ago #186887 by blocka
When using the ComfortUpdate to update from Version 3.17.0+190402 to 3.17.8+190722, I receive this error:

Code:
 
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)
The topic has been locked.
More
6 years 1 month ago #186990 by 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.
The topic has been locked.
More
6 years 1 month ago #186991 by 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?
The topic has been locked.
More
6 years 1 month ago #186992 by 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?
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • New Member
  • New Member
More
6 years 1 month ago #187012 by LouisGac
Replied by LouisGac on topic Invalid argument supplied for foreach()
known problem, it doesn't happen in all environment. We will solve it today.
The topic has been locked.
More
6 years 1 month ago #187015 by cdorin
Hello blocka, for CU-related issues, please open a ticket since we are not always available on the forum. Thanks for your report!

Manual: manual.limesurvey.org/LimeSurvey_Manual
Bugs tracker: bugs.limesurvey.org/my_view_page.php
If you self-host and need help, contact one of our partners: limesurvey.com
Please do not contact me via PM - thank you.
The topic has been locked.
More
6 years 1 month ago #187055 by 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?
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose