View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04977Bug reportsSurvey takingpublic2011-04-11 11:30
Reporteruser12312Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.91RC6 
Summary04977: GSoC: variable $debug does not exist
Description

When the survey is submitted and cannot be saved in the DB, the answers are emailed to the survey's manager by function index.php::submitfailed($errormsg=''). However, It fails because on line 2033 It try to use $debug variable which was never declared.

Just add on index.php
[code]
//...
function submitfailed($errormsg='')
{
global $debug;
//...
[/code]

Additional Information

Version 1.90+ Build 9642

TagsNo tags attached.
Attached Files
04977-stable.patch (322 bytes)   
Index: index.php
===================================================================
--- index.php	(revision 9887)
+++ index.php	(working copy)
@@ -2214,6 +2214,7 @@
 
 function submitfailed($errormsg='')
 {
+    global $debug;
     global $thissurvey, $clang;
     global $thistpl, $subquery, $surveyid, $connect;
 
04977-stable.patch (322 bytes)   
04977-dev.patch (322 bytes)   
Index: index.php
===================================================================
--- index.php	(revision 9887)
+++ index.php	(working copy)
@@ -2213,6 +2213,7 @@
 
 function submitfailed($errormsg='')
 {
+    global $debug;
     global $thissurvey, $clang;
     global $thistpl, $subquery, $surveyid, $connect;
 
04977-dev.patch (322 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)9642
I will donate to the project if issue is resolvedNo
BrowserNA
Database type & versionNA
Server OS (if known)NA
Webserver software & version (if known)NA
PHP VersionNA

Users monitoring this issue

There are no users monitoring this issue.

Activities

nehiljain

nehiljain

2011-03-11 18:27

reporter   ~14410

I have submitted the patch file. 04977-stable and dev. I have added
global $debug;

to index.php, this has rectified the problem.

c_schmitz

c_schmitz

2011-03-21 23:03

administrator   ~14501

Thank you!

c_schmitz

c_schmitz

2011-04-11 11:30

administrator   ~14767

1.91RC6 released.

Issue History

Date Modified Username Field Change
2011-02-23 00:27 user12312 New Issue
2011-02-23 16:46 Mazi Assigned To => c_schmitz
2011-02-23 16:46 Mazi Status new => assigned
2011-02-23 16:47 Mazi Summary variable $debug does not exist => GSoC: variable $debug does not exist
2011-03-07 22:09 nehiljain Issue Monitored: nehiljain
2011-03-11 18:24 nehiljain File Added: 04977-stable.patch
2011-03-11 18:27 nehiljain Note Added: 14410
2011-03-11 19:31 nehiljain File Added: 04977-dev.patch
2011-03-12 23:49 nehiljain Issue End Monitor: nehiljain
2011-03-21 23:03 c_schmitz Note Added: 14501
2011-03-21 23:03 c_schmitz Status assigned => resolved
2011-03-21 23:03 c_schmitz Fixed in Version => 1.91RC6
2011-03-21 23:03 c_schmitz Resolution open => fixed
2011-04-11 11:30 c_schmitz Note Added: 14767
2011-04-11 11:30 c_schmitz Status resolved => closed