View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05814Bug reportsSurvey takingpublic2012-03-14 21:08
ReporterMazi Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00a2 
Target Version2.00a2Fixed in Version2.00a2 
Summary05814: Can't activate a survey when enabling timings
Description

When I want to activate a survey and enable the timings feature, I get the following error:
langcode param is undefined

C:\xampp\htdocs\limesurvey_yii\application\libraries\Limesurvey_lang.php(32)

20 $locale = new limesurvey_lang('en'); // Char code
21 print $locale->getTranslation("Hello World!");
22 */
23
24
25 class Limesurvey_lang {
26
27 var $gettextclass;
28 var $langcode;
29
30 function limesurvey_lang($sLanguageCode){
31 if(empty($sLanguageCode))
32 trigger_error('langcode param is undefined ', E_USER_WARNING);
33
34 Yii::app()->loadHelper('sanitize');
35 $sLanguageCode[0]=sanitize_languagecode($sLanguageCode);
36 $streamer = new FileReader(getcwd().'/locale/'.$sLanguageCode.'/LC_MESSAGES/'.$sLanguageCode.'.mo');
37 $this->gettextclass = new gettext_reader($streamer);
38 $this->langcode = $sLanguageCode;
39 }
40
41 function getlangcode()
42 {
43 return $this->langcode;
44 }

Steps To Reproduce
  1. Import the attached survey.
  2. Go to activation screen and enable timings
  3. -> error
TagsNo tags attached.
Attached Files
Assessments.lss (25,509 bytes)
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

Users monitoring this issue

There are no users monitoring this issue.

Activities

magiclko

magiclko

2012-02-18 22:33

reporter   ~17513

Fixed in rev r1dce333.

c_schmitz

c_schmitz

2012-03-11 16:32

administrator   ~17848

2.00alpha 2 Build 120212 released

Related Changesets

LimeSurvey: Yii 1dce333d

2012-02-18 13:32:19

magiclko

Details Diff
Fixed issue 05814: Can't activate a survey when enabling timings Affected Issues
05814
mod - application/helpers/admin/activate_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-02-13 10:38 Mazi New Issue
2012-02-13 10:38 Mazi Status new => assigned
2012-02-13 10:38 Mazi Assigned To => c_schmitz
2012-02-13 10:38 Mazi File Added: Assessments.lss
2012-02-18 22:33 magiclko Note Added: 17513
2012-02-18 22:33 magiclko Status assigned => resolved
2012-02-18 22:33 magiclko Fixed in Version => 2.00a2
2012-02-18 22:33 magiclko Resolution open => fixed
2012-03-11 16:32 c_schmitz Note Added: 17848
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 1dce333d