View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20640 | Bug reports | Database design | public | 2026-08-06 20:53 | 2026-08-31 20:49 |
| Reporter | thegcat | Assigned To | c_schmitz | ||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 7.0.x | ||||
| Summary | 20640: "error saving results" on surveys active before update to LS 7 on PostgreSQL | ||||
| Description | Trying to take a survey that was already active before the update to LimeSurvey 7 and that has already received answers is currently not possible with PostgreSQL. Trying to take the survey shows an "error saving results" error and sends the responses to the administrator via e-mail. This error appears at the very beginning of the flow, not when trying to finish the survey. Furthermore, the following SQL error is recorded:
We have identified a probable cause, see the next comment. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | 7.0.7-260729 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Story point estimate | 0 | ||||
| Browser | |||||
| Database type & version | PostgreSQL 18.4 | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 8.5.9 | ||||
|
During the update from LimeSurvey 6.x to 7.0 it seems the tables |
|
|
So the easiest path out of this is setting the
This requires calculating the next free ID beforehand and would probably need to be wrapped in a lock to guarantee no insertions in the table between reading the next free ID and altering the sequence. The other solution could be to use an "all in one" query like:
|
|
|
I am also not sure if other tables might be affected by this issue, I hope the core developers can assess this. |
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40128 |
|
|
Fixed in Release 7.0.9+260812 |
|
|
Fixed in Release 7.0.9+260812 |
|
|
LimeSurvey: master ec53b4bb 2026-08-10 10:24 Committer: GitHub Details Diff |
Fixed issue 20640: "Error saving results" on surveys active before update to version 7 on PostgreSQL (05214) |
Affected Issues 20640 |
|
| mod - application/config/version.php | Diff File | ||
| mod - application/helpers/update/updatedb_helper.php | Diff File | ||
| mod - application/helpers/update/updates/Update_700.php | Diff File | ||
| add - application/helpers/update/updates/Update_710.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-08-06 20:53 | thegcat | New Issue | |
| 2026-08-06 21:00 | thegcat | Note Added: 85384 | |
| 2026-08-06 21:00 | thegcat | Bug heat | 0 => 2 |
| 2026-08-06 23:56 | thegcat | Note Added: 85385 | |
| 2026-08-06 23:58 | thegcat | Note Added: 85386 | |
| 2026-08-07 10:21 | c_schmitz | Assigned To | => c_schmitz |
| 2026-08-07 10:21 | c_schmitz | Status | new => ready for code review |
| 2026-08-10 10:24 | c_schmitz | Changeset attached | => LimeSurvey master ec53b4bb |
| 2026-08-10 10:24 | c_schmitz | Note Added: 85410 | |
| 2026-08-10 10:24 | c_schmitz | Status | ready for code review => resolved |
| 2026-08-10 10:24 | c_schmitz | Resolution | open => fixed |
| 2026-08-10 10:24 | c_schmitz | Bug heat | 2 => 4 |
| 2026-08-11 16:01 | LimeBot | Note Added: 85427 | |
| 2026-08-11 16:01 | LimeBot | Status | resolved => closed |
| 2026-08-11 16:01 | LimeBot | Bug heat | 4 => 6 |
| 2026-08-11 16:01 | LimeBot | Note Added: 85436 | |
| 2026-08-31 20:49 | lavamind | Issue Monitored: lavamind | |
| 2026-08-31 20:49 | lavamind | Bug heat | 6 => 8 |