View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20506 | Bug reports | Survey participants (Tokens) | public | 2026-05-05 15:49 | 2026-05-07 11:54 |
| Reporter | ginosupport | Assigned To | twilllig | ||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 6.16.x | ||||
| Summary | 20506: Http 500 error with stacktrace when opening participants for survey | ||||
| Description | I'm getting a HTTP 500 response with a stacktrace when opening the participants overview of surveys. I have a feeling it's related to this change from the release notes: | ||||
| Steps To Reproduce | Steps to reproduceThere seems to be some form of environment specific situation, because i can reproduce the error consistently on 1 environment and can't reproduce it at all on another running the same version. We're using a setup where all surveys are activated via the remotecontrol API with a participant table with a bunch of additional attributes. On the environment where it fails, all surveys have this problem. I can just select any survey and click the participants menu item and get an error. Expected resultScreen loads normally Actual resultScreen doesn't load. Logging shows a stacktrace Stacktrace: | ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | 6.17.0+260421 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Postgres 17 | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 8.0.x | ||||
|
Thank you for your message. The problem is that in order to detect whether there is a bug to fix and if so, to fix it, we would need to know how to reproduce it, the exact steps to reproduce it. At this point we only know that your process crashes at application/views/admin/token/attribute_subviews/tokenformAttributesWrapper.php due to not having a type field at
This value is being stored in your {{participant_attribute_names}} table in a field called attribute_type and we know for a fact that some of your tokens have no values there. Possible reasons:
If so, you'll need to create that field, you can inspire from this table definition (in MariaDB/MySQL):
and then run
In this case the field exists for you, but some records have null as a value. If so, you can run the update command shared in the previous point
so it will infer a text type. However, at this point it's unclear why you ended up with an empty type and that needs to be figured out so your future attributes will not have this problem. As about your current attributes, you can just update the attribute_type to the appropriate value. If there are no other missing/broken elements in your attributes, then this update should fix the issue. |
|
|
I will have a look at what my database looks like for these attributes. Will get back to you on that. In the meantime, am i right in assuming that since this change was introduced in 6.17.0, i can safely update other instances to 6.16.17 without running into this? |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=39629 |
|
|
Fixed in Release 6.17.2+260507 |
|
|
LimeSurvey: master 9c352718 2026-05-06 18:18 Committer: GitHub Details Diff |
Fixed issue 20506: Add default 'type' key to participant attribute arrays preventing undefined index errors (04955) |
Affected Issues 20506 |
|
| mod - application/config/version.php | Diff File | ||
| mod - application/controllers/admin/Tokens.php | Diff File | ||
| mod - application/helpers/common_helper.php | Diff File | ||
| add - application/helpers/update/updates/Update_650.php | Diff File | ||
| mod - application/models/Survey.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-05-05 15:49 | ginosupport | New Issue | |
| 2026-05-06 08:33 | twilllig | Assigned To | => twilllig |
| 2026-05-06 08:33 | twilllig | Status | new => assigned |
| 2026-05-06 15:32 | lajosarpad | Note Added: 84799 | |
| 2026-05-06 15:32 | lajosarpad | Bug heat | 0 => 2 |
| 2026-05-06 16:42 | ginosupport | Note Added: 84802 | |
| 2026-05-06 16:42 | ginosupport | Bug heat | 2 => 4 |
| 2026-05-06 18:19 | twilllig | Changeset attached | => LimeSurvey master 9c352718 |
| 2026-05-06 18:19 | twilllig | Note Added: 84805 | |
| 2026-05-06 18:19 | twilllig | Status | assigned => resolved |
| 2026-05-06 18:19 | twilllig | Resolution | open => fixed |
| 2026-05-06 18:19 | twilllig | Bug heat | 4 => 6 |
| 2026-05-07 11:54 | LimeBot | Note Added: 84808 | |
| 2026-05-07 11:54 | LimeBot | Status | resolved => closed |
| 2026-05-07 11:54 | LimeBot | Bug heat | 6 => 8 |