View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
06110Bug reportsOtherpublic2012-05-17 13:39
ReporterFred Assigned Toc_schmitz  
PrioritynormalSeverityblock 
Status closedResolutionfixed 
Product Version2.00RC1 
Fixed in Version2.00RC2 
Summary06110: Crash when login to admin using default language
Description

My site language is set to English. Confirmed this in global settings. Unless I specify a language for admin login, it crashes.

Steps To Reproduce

Go to admin login
Leave language on default
Log in

Additional Information

PHP notice

Undefined variable: sLanguage

/Users/fred/Dropbox/MAMP/htdocs/LimeSurvey/application/controllers/admin/authentication.php(320)

308
309 if (Yii::app()->request->getPost('loginlang') !== 'default')
310 {
311 $user->lang = sanitize_languagecode(Yii::app()->request->getPost('loginlang'));
312 $user->save();
313 $sLanguage=$user->lang;
314 }
315
316 if ($user->lang=='auto')
317 {
318 $sLanguage= getBrowserLanguage();
319 }
320 Yii::app()->session['adminlang'] = $sLanguage;
321 $this->getController()->lang= new limesurvey_lang($sLanguage);
322 }
323
324 /*
325
Checks if the user is using default password
326 */
327 private function _checkForUsageOfDefaultPassword()
328 {
329 $clang = $this->getController()->lang;
330 Yii::app()->session['pw_notify'] = false;
331 if (strtolower($_POST['password']) === 'password')
332 {

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)000000
I will donate to the project if issue is resolvedNo
BrowserChrome, Safari
Database type & versionMySQL 5.5.9
Server OS (if known)Mac OS Lion
Webserver software & version (if known)Apache 2.2.17
PHP Version5.3.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-05-17 13:39

administrator   ~18825

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8505

Related Changesets

LimeSurvey: Yii f43d536f

2012-05-17 04:38:54

c_schmitz

Details Diff
Dev Fixed issue 06110: Crash when login to admin using default language Affected Issues
06110
mod - application/controllers/admin/authentication.php Diff File

Issue History

Date Modified Username Field Change
2012-05-16 22:11 Fred New Issue
2012-05-17 13:37 c_schmitz Status new => closed
2012-05-17 13:37 c_schmitz Assigned To => c_schmitz
2012-05-17 13:37 c_schmitz Resolution open => fixed
2012-05-17 13:37 c_schmitz Fixed in Version => 2.00RC2
2012-05-17 13:39 c_schmitz Changeset attached => LimeSurvey Yii f43d536f
2012-05-17 13:39 c_schmitz Note Added: 18825