View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20578 | Bug reports | Survey editing | public | 2026-06-27 12:48 | 2026-06-30 12:09 |
| Reporter | OMdev | Assigned To | |||
| Priority | none | Severity | block | ||
| Status | new | Resolution | open | ||
| Product Version | 7.0.x | ||||
| Summary | 20578: Survey activation fails when a survey contains a Ranking question due to a consistency check error indicating missing answer opt | ||||
| Description | Activating a survey containing a Ranking question triggers a consistency check error stating that the question has missing answer options, preventing the survey from being activated. | ||||
| Steps To Reproduce | Steps to reproduce The survey should be activated successfully without any validation errors. Actual result The survey activation fails and the following error message is displayed: Survey does not pass consistency check As a result, the survey cannot be activated. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 7.0.1+260611 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Chrome | ||||
| Database type & version | NA | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | NA | ||||
|
@tibor.pacalat: I can NOT reproduce this on our test system A using 7.0.5 which was set up from scratch. |
|
|
This is happening at application/helpers/admin/activate_helper.php due to this part:
It seems that script 703 was not executed at your end which has its purpose of updating question theme to expect subquestions to exist rather than answers because from now on ranking questions will have subquestions rather than answers to choose from. The error message clearly expected to have at least one answer whereas the correct expectation would be to have at least 1 subquestion. If you run
in your database you should find ranking and ranking_advanced and in the settings you should have something like this: {"subquestions":"1","answerscales":"0","hasdefaultvalues":"0","assessable":"1","class":"ranking"} where subquestions being 1 means we expect at least a subquestion to exist, whilst answerscales needs to be 0. Since you had it not being 0, you've got the validation issue you reported. |
|
|
@lajosarpad thanks a lot for this detailed analysis. That explains the problem very well. Is there any way to execute script 703 to deal with the inconsistent database structure? |
|
|
A way to do that is to:
Explanation:
|
|
|
@lajosarpad, thanks for this very helpful step-by-step list. This solved the problem. I think we can close the ticket. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-06-27 12:48 | OMdev | New Issue | |
| 2026-06-27 12:48 | OMdev | File Added: issue.PNG | |
| 2026-06-29 13:04 | Mazi | Note Added: 85099 | |
| 2026-06-29 13:04 | Mazi | Bug heat | 0 => 2 |
| 2026-06-29 14:02 | lajosarpad | Note Added: 85101 | |
| 2026-06-29 14:02 | lajosarpad | Bug heat | 2 => 4 |
| 2026-06-29 14:14 | Mazi | Note Added: 85102 | |
| 2026-06-30 10:01 | lajosarpad | Note Added: 85119 | |
| 2026-06-30 12:09 | Mazi | Note Added: 85129 |