View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
08876Bug reportsSurvey takingpublic2014-03-20 14:52
ReporterResearchOnBlogs Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Fixed in Version2.05+ 
Summary08876: Particpant - print answer causes error.
Description

If you try to print out your entries in the end of a survey you get an error.

This 2 variables are not defined

$siteadminname,$siteadminemail

Additional Information

Undefined variable: siteadminname

Websites/limesurvey/limesurvey/application/controllers/PrintanswersController.php(84)

72 }
73 $sTemplate = validateTemplateDir($aSurveyInfo['templatedir']);
74 //Survey is not finished or don't exist
75 if (!isset($SESSION['survey'.$iSurveyID]['finished']) || !isset($SESSION['survey'.$iSurveyID]['srid']))
76 //display "sorry but your session has expired"
77 {
78 sendCacheHeaders();
79 doHeader();
80 echo templatereplace(file_get_contents(getTemplatePath($sTemplate).'/startpage.pstpl'),array());
81 echo "<center><br />\n"
82 ."\t<font color='RED'><strong>".$clang->gT("Error")."</strong></font><br />\n"
83 ."\t".$clang->gT("We are sorry but your session has expired.")."<br />".$clang->gT("Either you have been inactive for too long, you have cookies disabled for your browser, or there were problems with your connection.")."<br />\n"
84 ."\t".sprintf($clang->gT("Please contact %s ( %s ) for further assistance."),$siteadminname,$siteadminemail)."\n"
85 ."</center><br />\n";
86 echo templatereplace(file_get_contents(getTemplatePath($sTemplate).'/endpage.pstpl'),array());
87 doFooter();
88 exit;
89 }
90 //Fin session time out
91 $sSRID = $SESSION['survey'.$iSurveyID]['srid']; //I want to see the answers with this id
92 //Ensure script is not run directly, avoid path disclosure
93 //if (!isset($rootdir) || isset($_REQUEST['$rootdir'])) {die( "browse - Cannot run this script directly");}
94 if ($aSurveyInfo['printanswers'] == 'N')
95 {
96 die(); //Die quietly if print answers is not permitted

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)140317
I will donate to the project if issue is resolvedNo
Browser
Database type & versionxx
Server OS (if known)xx
Webserver software & version (if known)xx
PHP Versionxx

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-03-19 18:39

administrator   ~29424

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=14048

c_schmitz

c_schmitz

2014-03-20 14:52

administrator   ~29446

2.05+ Build 140320 released

Related Changesets

LimeSurvey: master 729bf4c5

2014-03-19 17:39:17

c_schmitz

Details Diff
Fixed issue 08876: Print answers shows fatal error if session expired Affected Issues
08876
mod - application/controllers/PrintanswersController.php Diff File

Issue History

Date Modified Username Field Change
2014-03-19 16:30 ResearchOnBlogs New Issue
2014-03-19 18:36 c_schmitz Assigned To => c_schmitz
2014-03-19 18:36 c_schmitz Status new => assigned
2014-03-19 18:39 c_schmitz Changeset attached => LimeSurvey master 729bf4c5
2014-03-19 18:39 c_schmitz Note Added: 29424
2014-03-19 18:39 c_schmitz Resolution open => fixed
2014-03-19 18:39 c_schmitz Status assigned => resolved
2014-03-19 18:39 c_schmitz Fixed in Version => 2.05+
2014-03-20 14:52 c_schmitz Note Added: 29446
2014-03-20 14:52 c_schmitz Status resolved => closed