View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
15065Bug reportsSurvey participants (Tokens)public2020-03-09 15:36
ReporterJanE Assigned Todominikvitt 
PrioritynoneSeveritycrash 
Status closedResolutionfixed 
Product Version4.0.0-RC1 
Fixed in Version4.0.0-RC1 
Summary15065: Generatetokens throws exception: Call to a member function decrypt() on array
Description

https://github.com/LimeSurvey/LimeSurvey/commit/bc1a1a290a9f8bc9dca43d82a191eceb8a538769#commitcomment-34390110 causes an error while using Generatetokens()

500: Internal Server Error
Call to a member function decrypt() on array

One should not call 'member' functions on a non-object like an array.

Steps To Reproduce

Add a participant without token and call Generate tokens

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)4.0.0-RC1 Development branch commit e5d1175 Dev: Add DBENGINE to travis script
I will donate to the project if issue is resolvedNo
BrowserNot applicable, but it was Vivaldi
Database type & versionNot applicable, but tested with MySQL (mysqlnd driver in PHP 7.1.30)
Server OS (if known)Not applicable, but tested on Windows 7 Professional Edition Service Pack 1
Webserver software & version (if known)Not applicable: Apache/2.4.39 (Win32) OpenSSL/1.0.2s-fips mod_fcgid/2.3.10
PHP Version7.1.30 (nts, x86)

Users monitoring this issue

There are no users monitoring this issue.

Activities

JanE

JanE

2019-07-22 12:43

reporter   ~52951

The error occurs in findAllAsArray()
https://github.com/LimeSurvey/LimeSurvey/blob/develop/application/models/LSActiveRecord.php#L103
return $records->decrypt();

dominikvitt

dominikvitt

2019-07-22 13:23

developer   ~52952

This issue is fixed.
The patch is available now on GitHub and would be available on next LimeSurvey release.

https://github.com/LimeSurvey/LimeSurvey/commit/6ae6b80a6cb605dc0cf3435b6fdc7367b5322560

Issue History

Date Modified Username Field Change
2019-07-22 12:29 JanE New Issue
2019-07-22 12:31 JanE Issue Monitored: JanE
2019-07-22 12:34 DenisChenu Assigned To => dominikvitt
2019-07-22 12:34 DenisChenu Status new => assigned
2019-07-22 12:42 tammo Assigned To dominikvitt => tammo
2019-07-22 12:42 tammo Assigned To tammo => dominikvitt
2019-07-22 12:43 JanE Note Added: 52951
2019-07-22 13:23 dominikvitt Status assigned => resolved
2019-07-22 13:23 dominikvitt Resolution open => fixed
2019-07-22 13:23 dominikvitt Fixed in Version => 4.0.0-RC1
2019-07-22 13:23 dominikvitt Note Added: 52952
2019-07-22 19:03 JanE Issue End Monitor: JanE
2020-03-09 15:36 c_schmitz Status resolved => closed