View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12073 | Bug reports | Other | public | 2017-01-20 12:35 | 2017-02-03 14:07 |
Reporter | rleuthold | Assigned To | c_schmitz | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | no change required | ||
Product Version | 2.59.x | ||||
Summary | 12073: Invalid argument supplied for foreach() warning SurveyRuntimeHelper.php line 1057 | ||||
Description | I'm getting a warning saying Invalid argument supplied for foreach() in SurveyRuntimeHelper.php line 1057. The code on this line reads: foreach ($_SESSION[$LEMsessid]['fieldarray'] as $key => $ia) So I guess I'm running into a problem with the session. If I set debug to 0 in the config, the page loads, shows the question but not the possible answers. | ||||
Steps To Reproduce | Unfortunately I don't know how to "force" / reproduce the problem. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 2.59.1 with last commit from github (64d7240f92fc68cbd83fed30d384c15e1f433b06) | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | all | ||||
Database type & version | Ver 15.1 Distrib 10.1.14-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 | ||||
Server OS (if known) | Ubuntu 16.04 LTS | ||||
Webserver software & version (if known) | nginx/1.11.1 | ||||
PHP Version | HP 7.0.8-3+deb.sury.org~xenial+1 | ||||
Can you attach a 1-question sample survey, please? |
|
Back-end or front-end? |
|
Front-End only. |
|
I cannot see any error when I import and run that survey. Also I cannot see an error when I run the survey from the link you provided. Please check and let me know. |
|
Yes I know, just sent you the 1 question survey since you asked for it :-) Anyway, this is why I wrote that I don't know how to reproduce / force the issue. But there is an issue, and I guess it has to do with session variables which get lost (since $_SESSION[$LEMsessid]['fieldarray'] is suddenly undefined, see description). Can you think of a situation, where this value is unset, but the session still alive? |
|
Usually this happens if you change the survey in the adminstration and try to continue to test the old survey in the frontend. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-01-20 12:35 | rleuthold | New Issue | |
2017-01-20 12:45 | c_schmitz | Assigned To | => c_schmitz |
2017-01-20 12:45 | c_schmitz | Status | new => feedback |
2017-01-20 12:45 | c_schmitz | Note Added: 42787 | |
2017-01-20 12:49 | ollehar | Note Added: 42788 | |
2017-01-20 13:30 | rleuthold | Note Added: 42789 | |
2017-01-20 13:30 | rleuthold | Status | feedback => assigned |
2017-01-20 19:50 | rleuthold | File Added: survey_archive_381928.lsa | |
2017-01-23 12:41 | c_schmitz | Status | assigned => feedback |
2017-01-23 12:41 | c_schmitz | Note Added: 42792 | |
2017-01-25 18:42 | rleuthold | Note Added: 42838 | |
2017-01-25 18:42 | rleuthold | Status | feedback => assigned |
2017-02-03 14:07 | c_schmitz | Status | assigned => closed |
2017-02-03 14:07 | c_schmitz | Resolution | open => no change required |
2017-02-03 14:07 | c_schmitz | Note Added: 42950 |