View Issue Details

IDProjectCategoryView StatusLast Update
14990Bug reports[All Projects] Survey designpublic2019-08-08 17:22
ReporterMarvinLipinskiAssigned Tocdorin 
PrioritynormalSeveritymajor 
Status assignedResolutionopen 
Product Version3.17.x 
Target VersionFixed in Version 
Summary14990: Problem with question type: Array
Description

Hello everybody,

I've made a survey with Limesurvey and encountered a problem when setting the subquestions for an array question.

When I add the subquestions using the "Quick add" button (including the subquestions code) it happens occasionally that some of the subquestions are deleted as soon as I save the question. Basically one (or sometimes more) of the subquestions changes its position after saving the question and kind of overwrites another subquestion. I've encountered this problem only, when I add more than 60 subquestions to a question. Unfortunately, I can't see an obvious criteria that determines which subquestion is overwritten by which subquestion and it also does not happen all the time. But if you add more than 100 subquestion, the bug is very likely to occur.

I hope someone can solve this mystery.

Greetings

Steps To Reproduce

Create an array question, add more than 60 subquestions to a question by using the "Quick add" function and save the question. I think the more subquestions you add, the higher is the likelihood of this bug to occur.

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.17.5 & 190604
I will donate to the project if issue is resolvedNo
Browser
Database & DB-VersionDatabase: mysql & DB-Version: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $
Server OS (if known)
Webserver software & version (if known)nginx/1.10.3
PHP Version7.2.3-1+ubuntu16.04.1+deb.sury.org+1

Activities

cdorin

cdorin

2019-06-24 16:43

manager   ~52513

Hello, could you please attach a working example? Is it a multilingual survey?

cdorin

cdorin

2019-06-24 16:48

manager   ~52514

Last edited: 2019-06-24 17:00

View 2 revisions

Nvm, I reproduced it following the instructions.

I have created 56 entries (using the quick add... button) . When I clicked on the Save button, SQ05 and SQ06 vanished (in their place being SQ046 and SQ044).

@p_teichmann, I will assign it to you.

DenisChenu

DenisChenu

2019-06-26 19:07

developer   ~52573

Last edited: 2019-06-26 19:08

View 2 revisions

https://manual.limesurvey.org/Troubleshooting#After_submitting_a_page.2C_you_end_up_on_the_general_index_page.2Fon_a_404_page_or_you_get_the_message_.27The_CSRF_token_could_not_be_verified.27

Check you max_input_vars

60 * 4 (or 5) * language number for each subquestion

cdorin

cdorin

2019-06-27 14:59

manager   ~52589

Last edited: 2019-06-27 15:00

View 4 revisions

Thanks, totally forgot about that wiki subsection. Good link and explanation.

@MarvinLipinski, could you please give it a try?

DenisChenu

DenisChenu

2019-06-27 16:19

developer   ~52592

@cdorin : on your test with 56 entries : what is you input_var and language number ?

cdorin

cdorin

2019-06-27 17:37

manager   ~52594

@DenisChenu: 1000
Only English

DenisChenu

DenisChenu

2019-06-27 17:44

developer   ~52595

8-o , really strange … 56 x 6 = 336 … 1000 is the default (and in general, it broke at ~ 250 answers)

PS: still a good idea to add a 'max_input_vars' controls , something like

  1. Adding a allInputSend hidden input value 1
  2. When save : subquestion or answer or label : check this input
  3. If this input is not here : show a big alert box
cdorin

cdorin

2019-06-27 17:47

manager   ~52597

Hmm, it happened only once. Tried to reproduce it with Patrick and couldn't.

MarvinLipinski

MarvinLipinski

2019-07-05 17:53

reporter   ~52774

Hey guys,

thanks for looking into this issue. I've spoken to my admin and we looked into our settings and the max_input_var is 2000. It looks like that might not be the problem. Can you think of another reason. Why this kind of problem happens occassionaly when adding to many subquestions at once?

DenisChenu

DenisChenu

2019-07-05 18:04

developer   ~52775

@MarvinLipinski :

  1. Maybe try wiyh 10 000 ;)
  2. Can you send a sample of your Copy/paste ? What tool did you use (personally : always done with LibreOffice : rarely have issue, i do a 300 lines this month : take JS time, but it work)
cdorin

cdorin

2019-08-08 17:22

manager   ~53154

@MarvinLipinski, could you please update us on the issue :) ? (see Denis' questions)

Issue History

Date Modified Username Field Change
2019-06-18 15:11 MarvinLipinski New Issue
2019-06-24 16:43 cdorin Assigned To => cdorin
2019-06-24 16:43 cdorin Status new => feedback
2019-06-24 16:43 cdorin Note Added: 52513
2019-06-24 16:48 cdorin Assigned To cdorin => p_teichmann
2019-06-24 16:48 cdorin Priority none => normal
2019-06-24 16:48 cdorin Status feedback => assigned
2019-06-24 16:48 cdorin Note Added: 52514
2019-06-24 17:00 cdorin Note Edited: 52514 View Revisions
2019-06-26 16:21 p_teichmann Assigned To p_teichmann => cdorin
2019-06-26 19:07 DenisChenu Note Added: 52573
2019-06-26 19:08 DenisChenu Note Edited: 52573 View Revisions
2019-06-27 14:59 cdorin Note Added: 52589
2019-06-27 15:00 cdorin Note Edited: 52589 View Revisions
2019-06-27 15:00 cdorin Note Edited: 52589 View Revisions
2019-06-27 15:00 cdorin Note Edited: 52589 View Revisions
2019-06-27 16:19 DenisChenu Note Added: 52592
2019-06-27 17:37 cdorin Note Added: 52594
2019-06-27 17:44 DenisChenu Note Added: 52595
2019-06-27 17:47 cdorin Note Added: 52597
2019-07-05 17:53 MarvinLipinski Note Added: 52774
2019-07-05 18:04 DenisChenu Note Added: 52775
2019-08-08 17:22 cdorin Note Added: 53154