Ranking question causing system hang...

More
6 months 1 week ago #179015 by edit4ever
I have a ranking question with an array filter from a previous multiple choice question. The answer codes match the subquestion codes and the results will load during the survey...but the system then hangs. You can't rank or move on from there.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
6 months 1 week ago #179018 by DenisChenu
LimeSurveyt version and build number ?
Browser used ?
Number of ranking answers ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179029 by tpartner
...and please attach a small sample survey (.lss) containing only the relevant questions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179053 by edit4ever
Lime Survey version: 3.15.6
Browser: both Chrome and Edge tested
# of answers to rank: up to 5 out of previous list of 60 options

Sample survey attached.

Thanks!
Attachments:

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179058 by DenisChenu
Ok,

Have the issue , you can make some optimisation set Maximum columns for answers to 5, but still some time.

Must check if it's better in 2.73 (then it's clearly a new issue) or if it's an old issue.

I don't really have better solution quickly.

@tpartner : do you have some idea to improve speed ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179059 by edit4ever
Thanks for the update - I have a lot of other sections to build...so I'll stand by to see if a solution evolves.

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago - 6 months 1 week ago #179060 by DenisChenu
OK,

Have the solution :
1. Disable Same choice height + same list height
2. Replace this file github.com/LimeSurvey/LimeSurvey/blob/ma...g/scripts/ranking.js in your install (the previous one have an issue : github.com/LimeSurvey/LimeSurvey/commit/...9cdb2f9775074bcc80dc )
3. Test : it's really quickest

PS : 2nd fix : github.com/LimeSurvey/LimeSurvey/commit/...362520f2766898ebf51a

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Last edit: 6 months 1 week ago by DenisChenu.

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago - 6 months 1 week ago #179061 by edit4ever
OK - I replaced that file and disabled the choice and list heights...but I'm still getting the same issue. When the rankings load (first you see the whole list and then the filtered array loads a second or two later) but I can't select and rank those choice. There is no response in that area.

--- hold on - just saw you posted a second fix...

added second fix - still same issue.
Last edit: 6 months 1 week ago by edit4ever.

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179071 by DenisChenu
Remind to "reset assets" cache in Global settings, else it's still the old javascript

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179126 by edit4ever
No luck. Made the changes and cleared the cache. Same issue.

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179140 by DenisChenu
Can you give a sample link ?
Their still some time to load, but really less

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179203 by edit4ever
Thanbk you for looking into this. Here is the sample:

survey.makemomentum.net/index.php/261618?lang=en

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179210 by DenisChenu
There are another issue here …



And i don't found ranking.css and ranking.js in source … can you deactivate ajax mode ?

Else : there are aghon some improvment (with your test file) on javascript :
github.com/LimeSurvey/LimeSurvey/commit/...e032e53bb2ef5de9f246
and
github.com/LimeSurvey/LimeSurvey/commit/...146d9fcbd63937f028e4

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179212 by edit4ever
I've added the two commits and disabled ajax.

When it gets to the ranking question - it loads the filtered answers but does not allow the ranking options to be selected and sorted. You can move on to the next question group, but cannot interact with the ranking question.
Attachments:

Please Log in or Create an account to join the conversation.

More
6 months 1 week ago #179214 by DenisChenu

edit4ever wrote: selected and sorted. You can move on to the next question group, but cannot interact with the ranking question.

ranking.js seems not loaded

This is really strange

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand .
An error happen ? Before make a new topic : remind the Debug mode .
Attachments:

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!