View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05286Bug reportsSurvey takingpublic2011-06-21 14:31
Reporteruser14558Assigned ToTMSWhite  
PriorityhighSeverityblock 
Status closedResolutionfixed 
Product Version1.91+ 
Summary05286: cannot save survey because no files were uploaded
Description

got the error at the end, so when saving.

got the save.php patch from today, to no avail

Steps To Reproduce

fill in the survey, at the end
"Moeten er administratieve gegevens van uw huidig admistratiepakket overgezet worden?"

select Yes
Select Superdent
continue
when saving: got the error
DE SQL CODE WAAROP HET MISLIEP:
UPDATE lime_survey_88847 SET lastpage = '7',88847X7X73 = 'Y',88847X7X111other = '',88847X7X111 = '1',88847X7X112 = '',88847X7X112_filecount = '/' WHERE id=2

FOUTMELDING:
Incorrect integer value: '/' for column '88847X7X112_filecount' at row 1

TagsNo tags attached.
Attached Files
bug_05286_fix.patch (1,026 bytes)   
# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\xampp\htdocs\limesurvey
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: qanda.php
--- qanda.php Base (BASE)
+++ qanda.php Locally Modified (Based On LOCAL)
@@ -3790,9 +3790,20 @@
     $answer .= "<input type='hidden' id='".$ia[1]."_filecount' name='".$ia[1]."_filecount' value=";
 
     if (array_key_exists($ia[1]."_filecount", $_SESSION))
-        $answer .= $_SESSION[$ia[1]."_filecount"]." />";
+    {
+        $tempval = $_SESSION[$ia[1]."_filecount"];
+        if (is_numeric($tempval))
+        {
+            $answer .= $tempval . " />";
+        }
     else
+        {
         $answer .= "0 />";
+        }
+    }
+    else {
+        $answer .= "0 />";
+    }
 
     $answer .= "<div id='".$ia[1]."_uploadedfiles'></div>";
 
bug_05286_fix.patch (1,026 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)10267
I will donate to the project if issue is resolvedYes
Browseropera
Database type & versionmysql 5
Server OS (if known)Windows 2008
Webserver software & version (if known)IIS7
PHP Version5

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2011-06-18 20:58

updater   ~15497

I get the following error message when filling out the survey as mentioned above:
Notice: Trying to get property of non-object in C:\xampp\htdocs\limeSOURCE\limesurvey_current\save.php on line 503

Niet bewaard

Door een onverwachte fout is uw respons niet bewaard.

Uw respons is niet verloren. Het is doorgestuurd naar de beheerder van de enquête. Uw respons zal op een later tijdstip worden ingevoerd.

Error message: Incorrect integer value: '/' for column '88847X407X3623_filecount' at row 1

Mazi

Mazi

2011-06-18 20:58

updater   ~15498

Tom, I'm assigning this ticket to you because I saw that you just fixed a similar issue.

TMSWhite

TMSWhite

2011-06-18 23:13

reporter   ~15499

A patch to fix the problem is attached. The problem was in qanda.php.

TMSWhite

TMSWhite

2011-06-18 23:15

reporter   ~15500

Fixed via the attached patch. Should be available in next 1.91+ release

c_schmitz

c_schmitz

2011-06-21 14:31

administrator   ~15539

New version released.

Issue History

Date Modified Username Field Change
2011-06-18 20:46 user14558 New Issue
2011-06-18 20:46 user14558 File Added: limesurvey_survey_88847.lss
2011-06-18 20:58 Mazi Note Added: 15497
2011-06-18 20:58 user14558 Issue Monitored: user14558
2011-06-18 20:58 Mazi Assigned To => TMSWhite
2011-06-18 20:58 Mazi Status new => assigned
2011-06-18 20:58 Mazi Note Added: 15498
2011-06-18 23:12 TMSWhite File Added: bug_05286_fix.patch
2011-06-18 23:13 TMSWhite Note Added: 15499
2011-06-18 23:15 TMSWhite Note Added: 15500
2011-06-18 23:15 TMSWhite Status assigned => resolved
2011-06-18 23:15 TMSWhite Resolution open => fixed
2011-06-21 14:31 c_schmitz Note Added: 15539
2011-06-21 14:31 c_schmitz Status resolved => closed