View Issue Details

IDProjectCategoryView StatusLast Update
16449Bug reportsOtherpublic2020-07-08 18:51
ReporterNickko Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version4.3.2 
Summary16449: Error with CLI password reset
Description

I loose my password, I tryed to rest it by CLI with the command here: https://manual.limesurvey.org/General_FAQ#I_forgot_my_admin_password._How_do_I_reset_it.3F

php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS
or
php application/commands/console.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS

Steps To Reproduce

Connect to your serveur with SSH.
Go to the Limsurvey's folder
Type :
php application/commands/starter.php resetpassword NEW_ADMIN_NAME NEW_ADMIN_PASS
(replace new admin and new password with correct values).

I get this error:
Error: Call to undefined function gT() in /home/usabilit/limesurvey/application/models/User.php:107
Stack trace:
#0 /home/usabilit/limesurvey/framework/db/ar/CActiveRecord.php(604): User->attributeLabels()
#1 /home/usabilit/limesurvey/framework/validators/CValidator.php(250): CActiveRecord->getAttributeLabel('htmleditormode')
#2 /home/usabilit/limesurvey/framework/validators/CRangeValidator.php(84): CValidator->addError(Object(User), 'htmleditormode', '{attribute} is ...')
#3 /home/usabilit/limesurvey/framework/validators/CValidator.php(201): CRangeValidator->validateAttribute(Object(User), 'htmleditormode')
#4 /home/usabilit/limesurvey/framework/base/CModel.php(159): CValidator->validate(Object(User), Array)
#5 /home/usabilit/limesurvey/framework/db/ar/CActiveRecord.php(810): CModel->validate(NULL)
#6 /home/usabilit/limesurvey/application/commands/ResetPasswordCommand.php(24): CActiveRecord->save()
#7 /home/usabilit/limesurvey/framework/console/CConsoleCommandRunner.php(71): ResetPasswordCommand->run(Array)
#8 /home/usabilit/limesurvey/framework/console/CConsoleApplication.php(92): CConsoleCommandRunner->run(Array)
#9 /home/usabilit/limesurvey/framework/base/CApplication.php(185): CConsoleApplication->processRequest()
#10 /home/usabilit/limesurvey/application/commands/console.php(64): CApplication->run()
#11 {main}

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 4.3.2+200629
I will donate to the project if issue is resolvedNo
BrowserEdge (previous Chromium) and Vivaldi (use chromium).
Database & DB-VersionMy SQL / version 426
Server OS (if known)OVH Shared hosting
Webserver software & version (if known)Apache unknown version
PHP Version5.3

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-02 15:47 Nickko New Issue
2020-07-08 18:51 DenisChenu Category _ Unknown => Other