View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05813Bug reportsStatisticspublic2012-03-14 21:08
ReporterMazi Assigned Tomagiclko 
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00a2 
Target Version2.00a2Fixed in Version2.00a2 
Summary05813: Viewing statistics not possible
Description

When trying to view statistics (URL: http://localhost/limesurvey_yii/admin/statistics/index/surveyid/744984) I receive the following error:
Undefined index: question

C:\xampp\htdocs\limesurvey_yii\application\controllers\admin\browse.php(452)

440 $fnames[] = array("lastname", "Last name", $clang->gT("Last name"), 0);
441 $fnames[] = array("email", "Email", $clang->gT("Email"), 0);
442 }
443
444 $fnames[] = array("submitdate", $clang->gT("Completed"), $clang->gT("Completed"), "0", 'D');
445 $fields = createFieldMap($iSurveyId, 'full', false, false, $aData['language']);
446
447 foreach ($fields as $fielddetails)
448 {
449 if ($fielddetails['fieldname'] == 'lastpage' || $fielddetails['fieldname'] == 'submitdate')
450 continue;
451
452 $question = $fielddetails['question'];
453 if ($fielddetails['type'] != "|")
454 {
455 if ($fielddetails['fieldname'] == 'lastpage' || $fielddetails['fieldname'] == 'submitdate' || $fielddetails['fieldname'] == 'token')
456 continue;
457
458 // no headers for time data
459 if ($fielddetails['type'] == 'interview_time')
460 continue;
461 if ($fielddetails['type'] == 'page_time')
462 continue;
463 if ($fielddetails['type'] == 'answer_time')
464 continue;

Steps To Reproduce
  1. Import the attached survey
  2. Activate it
  3. Go to browse responses -> get statistics
Additional Information

For another survey which I can't attach here (containing all question types) I get this error:
PHP Error

Undefined variable: key

C:\xampp\htdocs\limesurvey_yii\application\views\admin\export\statistics_view.php(896)

884 /
885
when hoovering the speaker symbol we show the whole question
886
887
flt[6] is the label ID
888
889
table "labels" contains
890 - lid
891
- code
892 - title
893
- sortorder
894 - language
895
/
896 $fresult = $fresults[$key1][$key];
897
898 //for debugging only:
899 //echo $fquery;
900
901 //creating form
902 echo "\t\t\t\t<select name='{$surveyid}X{$flt[1]}X{$flt[0]}{$row[0]}[]' multiple='multiple'>\n";
903
904 //loop through all possible answers
905 foreach($fresult as $frow)
906 {
907 echo "\t\t\t\t\t<option value='{$frow['code']}'";

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)12448
I will donate to the project if issue is resolvedNo
BrowserFirefox 9
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Relationships

related to 05697 closedmagiclko Syntax errors at limesurvey_yii branch 

Users monitoring this issue

There are no users monitoring this issue.

Activities

magiclko

magiclko

2012-02-16 20:36

reporter   ~17481

Fixed in rev rc133add .
Mazi : Logout and clear the cache/cookies and login again!

c_schmitz

c_schmitz

2012-03-11 16:32

administrator   ~17851

2.00alpha 2 Build 120212 released

Related Changesets

LimeSurvey: Yii c133add2

2012-02-16 11:35:22

magiclko

Details Diff
Fixed issue 05813: Viewing statistics not possible
createFieldMap should always be called with "full" as second parameter instead of "short".
Affected Issues
05813
mod - application/controllers/admin/browse.php Diff File
mod - application/controllers/admin/dataentry.php Diff File
mod - application/controllers/admin/export.php Diff File

Issue History

Date Modified Username Field Change
2012-02-13 10:34 Mazi New Issue
2012-02-13 10:34 Mazi Status new => assigned
2012-02-13 10:34 Mazi Assigned To => magiclko
2012-02-13 10:34 Mazi File Added: SAMPLE_SURVEY_191_EN_DE_FR.lss
2012-02-13 10:35 Mazi Relationship added related to 05697
2012-02-16 20:36 magiclko Note Added: 17481
2012-02-16 20:36 magiclko Status assigned => resolved
2012-02-16 20:36 magiclko Fixed in Version => 2.00a2
2012-02-16 20:36 magiclko Resolution open => fixed
2012-03-11 16:32 c_schmitz Note Added: 17851
2012-03-11 16:32 c_schmitz Status resolved => closed
2012-03-14 21:08 magiclko Changeset attached => Import 2012-03-09 13:30:34 Yii c133add2