Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

duplicate qid's

  • bara2cls
  • bara2cls's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126090 by bara2cls
duplicate qid's was created by bara2cls
Hello,

So I have been using limesurvey and have loved it so far. However I am now getting reports that questions are linking to other peoples surveys. (the action: select Q group, select Question -> redirects to another survey not by that user). After some investigation it looks like limesurvey has been reusing ID's twice (please see screenshot below of qid table).

Is this something I have let happen from MySQL's side of things or is this a problem with the way limesurvey handles its id's?

(FYI I am a noob to this forum and I did have a browse and could not find an issue like this)
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #126091 by Mazi
Replied by Mazi on topic duplicate qid's
Can you please post a screen shot of all columns (SELECT * FROM...)

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • bara2cls
  • bara2cls's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126092 by bara2cls
Replied by bara2cls on topic duplicate qid's
Which specific columns you need to diagnose this problem? I do not want to post all 4000+ rows with question data.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #126093 by Mazi
Replied by Mazi on topic duplicate qid's
10-15 rows like before is fine, I just want to check the values at additional columns.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • bara2cls
  • bara2cls's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126094 by bara2cls
Replied by bara2cls on topic duplicate qid's
Sure I have redacted questions however.
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #126095 by Mazi
Replied by Mazi on topic duplicate qid's
Thanks!

There are no duplicate IDs. The key for that table consists of the qid AND the language because at multilingual surveys there are different question texts for different languages but they are using the same QID.

Your problem sounds like a cache or session issue.
- Do you use a proxy?
- Which Limesurvey version do you use?
- Can you safely reproduce the issue?

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126096 by DenisChenu
Replied by DenisChenu on topic duplicate qid's
And just for original question : referring to the source : github.com/LimeSurvey/LimeSurvey/blob/ma...els/Question.php#L52 ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: bara2cls
The topic has been locked.
  • bara2cls
  • bara2cls's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126098 by bara2cls
Replied by bara2cls on topic duplicate qid's
Very Interesting then.

We don't use a proxy, version is: 2.05, I can reproduce the issue safely.

So in the web interface I select:
sid 319258
select qid 1238
select qid 7
which shows:
sid 734529
gid 87
qid 7

and the two offending lines are (attached)
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 6 months ago #126101 by Mazi
Replied by Mazi on topic duplicate qid's
This indeed looks like a bug. Having the same GID for different surveys (SID) should NOT happen. There once was an issue at older 2.0/2.05 systems.
You may be able to solve this by export the survey, updating to the latest Limesurvey version and then re-importing the files. The IDs should be adjusted then and you can remove the old versions.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • bara2cls
  • bara2cls's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #126103 by bara2cls
Replied by bara2cls on topic duplicate qid's
Okay thanks, I will do that at the next scheduled outage. Thank you for your time and support :) It is greatly appreciated.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 6 months ago #126107 by DenisChenu
Replied by DenisChenu on topic duplicate qid's
Hi,

Did you use TSV export/import system with some of this survey ? Before 2.05 version.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose