View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
12073Bug reportsOtherpublic2017-02-03 14:07
Reporterrleuthold Assigned Toc_schmitz  
PrioritynoneSeveritypartial_block 
Status closedResolutionno change required 
Product Version2.59.x 
Summary12073: 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.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)2.59.1 with last commit from github (64d7240f92fc68cbd83fed30d384c15e1f433b06)
I will donate to the project if issue is resolvedNo
Browserall
Database type & versionVer 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 VersionHP 7.0.8-3+deb.sury.org~xenial+1

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2017-01-20 12:45

administrator   ~42787

Can you attach a 1-question sample survey, please?

ollehar

ollehar

2017-01-20 12:49

administrator   ~42788

Back-end or front-end?

rleuthold

rleuthold

2017-01-20 13:30

reporter   ~42789

Front-End only.

c_schmitz

c_schmitz

2017-01-23 12:41

administrator   ~42792

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.

rleuthold

rleuthold

2017-01-25 18:42

reporter   ~42838

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?

c_schmitz

c_schmitz

2017-02-03 14:07

administrator   ~42950

Usually this happens if you change the survey in the adminstration and try to continue to test the old survey in the frontend.

Issue History

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