View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
20587Bug reportsSurvey participants (Tokens)public2026-07-22 10:16
Reportertademo Assigned Totibor.pacalat  
PrioritynoneSeverityminor 
Status closedResolutionunable to reproduce 
Product Version6.17.x 
Summary20587: Error participant token while editing
Description

Error participant token while editing
Empty token value after editing survey participant

Steps To Reproduce

Steps to reproduce

open survey
click patritipants
click edit this survey participant
edit field Access code:
click save

Expected result

new token value

Actual result

empty value

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 6.17.10+260622
I will donate to the project if issue is resolvedNo
Story point estimate
Browser
Database type & versionmysql 8.2
Server OS (if known)
Webserver software & version (if known)
PHP Version8.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

tademo

tademo

2026-07-06 13:58

reporter   ~85154

Will someone be able to handle my case? Is something wrong with my submissions?

tademo

tademo

2026-07-06 13:58

reporter   ~85155

Will someone be able to handle my case?
Is something wrong with my submissions?

tademo

tademo

2026-07-17 12:34

reporter   ~85209

I have applied a temporary fix for the participants token import/editing error.
In the file application/models/Token.php, I commented out lines 318 and 319 and added an entry.
My code now looks like this:

    // According to Yii doc : http://www.yiiframework.com/doc/api/1.1/CSecurityManager#generateRandomString-detail

$pattern = Yii::app()->getConfig("allowedcharacters_pattern_token");

return preg_replace($pattern, '', $token);

    return preg_replace('/[^A-Za-z0-9_]/', '', (string)$token);

I am awaiting the official fix.

tibor.pacalat

tibor.pacalat

2026-07-21 18:41

administrator   ~85231

Hi, sorry for the late response. I have tested this in production and locally and can not reproduce the issue as described in this ticket.
On production Limesurvey version 6.17.12 I had a participant with token "123" and successfully edited to "xyz".
Can you provide me with some more details?

tademo

tademo

2026-07-22 09:28

reporter   ~85237

Hi.
I’ve just upgraded to version 6.17.12. The problem persists for me. I’m attaching screenshots showing the process of adding a new participant.
The token field clears every time I edit it manually. I can generate tokens automatically, but I need to use my own specific ones.

1-add.jpg (133,714 bytes)
2 result.jpg (148,065 bytes)
Haythem

Haythem

2026-07-22 09:57

developer   ~85238

Hi,
Most likely you're missing a config in your application/config/config-defaults.php

$config['allowedcharacters_pattern_token'] = '/[^0-9a-zA-Z_\-~]/';

If it's not there, just add it, that's most likely what's causing the empty token issue. Let us know how it goes !

Issue History

Date Modified Username Field Change
2026-07-01 10:13 tademo New Issue
2026-07-06 13:58 tademo Note Added: 85154
2026-07-06 13:58 tademo Bug heat 0 => 2
2026-07-06 13:58 tademo Note Added: 85155
2026-07-17 12:34 tademo Note Added: 85209
2026-07-21 18:41 tibor.pacalat Note Added: 85231
2026-07-21 18:41 tibor.pacalat Bug heat 2 => 4
2026-07-21 18:41 tibor.pacalat Assigned To => tibor.pacalat
2026-07-21 18:41 tibor.pacalat Status new => feedback
2026-07-22 09:28 tademo Note Added: 85237
2026-07-22 09:28 tademo File Added: 1-add.jpg
2026-07-22 09:28 tademo File Added: 2 result.jpg
2026-07-22 09:28 tademo Status feedback => assigned
2026-07-22 09:57 Haythem Note Added: 85238
2026-07-22 09:57 Haythem Bug heat 4 => 6
2026-07-22 10:16 tibor.pacalat Status assigned => closed
2026-07-22 10:16 tibor.pacalat Resolution open => unable to reproduce