- Posts: 5
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can't regenerate question codes
- msuelzer
- Topic Author
- Offline
- New Member
Less
More
7 years 1 month ago #149917
by msuelzer
Can't regenerate question codes was created by msuelzer
Hello LimeSurvey community,
we have a problem with the Regenerate question codes feature. Whenever we try to use it on an inactive survey (doesn't matter if straight or by question group), we are being redirected to the survey index and the question codes remain unchanged. The problem likely lies in our installation and/or server configuration, seeing as the feature in question works flawlessly on a separate LimeSurvey installation hosted by LS.
One of our devs tried to figure out where it went wrong and discovered that the regeneratequestioncodes action isn't called at all when using the regenerate feature (no difference between running it normally and using die() at the top of the action). The index action is called instead which then redirects us to the survey index.
Do you have an idea how this issue could be solved or where we should look next to find the cause of it?
we have a problem with the Regenerate question codes feature. Whenever we try to use it on an inactive survey (doesn't matter if straight or by question group), we are being redirected to the survey index and the question codes remain unchanged. The problem likely lies in our installation and/or server configuration, seeing as the feature in question works flawlessly on a separate LimeSurvey installation hosted by LS.
One of our devs tried to figure out where it went wrong and discovered that the regeneratequestioncodes action isn't called at all when using the regenerate feature (no difference between running it normally and using die() at the top of the action). The index action is called instead which then redirects us to the survey index.
Do you have an idea how this issue could be solved or where we should look next to find the cause of it?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 1 month ago #149918
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Can't regenerate question codes
What version/build of LimeSurvey is used?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- msuelzer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 1 month ago - 7 years 1 month ago #149920
by msuelzer
Replied by msuelzer on topic Can't regenerate question codes
Version 2.63.1. We haven't updated yet due to the announced fix for 2.64.
Last edit: 7 years 1 month ago by msuelzer.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 1 month ago #149922
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Can't regenerate question codes
What announced fix?msuelzer wrote: due to the announced fix for 2.64.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- msuelzer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 1 month ago #149925
by msuelzer
Replied by msuelzer on topic Can't regenerate question codes
Nevermind, I misread it. It was an announcement for the 2.63 release two weeks ago.
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 1 month ago #149928
by jelo
The demo.limesurvey.org Version 2.64.0 is showing the same behavior as you described. Redirection to the survey list.
What version/build is used with your LimeSurvey hosting with LimeSurvey GmbH?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Can't regenerate question codes
msuelzer wrote: Do you have an idea how this issue could be solved or where we should look next to find the cause of it?
The demo.limesurvey.org Version 2.64.0 is showing the same behavior as you described. Redirection to the survey list.
What version/build is used with your LimeSurvey hosting with LimeSurvey GmbH?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- msuelzer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
7 years 1 month ago #149930
by msuelzer
Replied by msuelzer on topic Can't regenerate question codes
The hosted installation runs on Version 2.63.1 as well. Really interesting that the demo LS has the same issue.
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
7 years 1 month ago #149955
by ollehar
Replied by ollehar on topic Can't regenerate question codes
It works locally on my machine, but yes, not on demo. Will check.
The following user(s) said Thank You: msuelzer
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
7 years 1 month ago #149957
by ollehar
Replied by ollehar on topic Can't regenerate question codes
This commit fixes the issue:
github.com/LimeSurvey/LimeSurvey/commit/...da89e40111905ab18ed7
The following user(s) said Thank You: msuelzer
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 1 month ago #149959
by jelo
Is the hosted installation not the same as the downloaded version when it comes to version/build?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Can't regenerate question codes
How it is possible that the same version is having different code (one with the bug, one without the bug).msuelzer wrote: The hosted installation runs on Version 2.63.1 as well.
Is the hosted installation not the same as the downloaded version when it comes to version/build?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
7 years 1 month ago #149964
by ollehar
Replied by ollehar on topic Can't regenerate question codes
How Yii constructs the URLs depends on the config, which might explain the problem. The hosted version is not exactly the same, but in this case it shouldn't matter.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
7 years 1 month ago #149970
by jelo
The fix contains just adding sa in a path.
Or the versioning is getting more confusing.
The demo.limesurvey.org is stating version 2.64.0 and the regeneration of questioncodes is now working.
The release 2.64.0 Build 170307 is three days old.
What was changed at the demo installation then?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Can't regenerate question codes
Which would mean that msuelzers issue won't necessarily be fixed since the Yii config isn't changed on the selfhosted installation with your fix.olle wrote: How Yii constructs the URLs depends on the config, which might explain the problem.
The fix contains just adding sa in a path.
Code:
createUrl("/admin/survey/regenquestioncodes/surveyid/ createUrl("/admin/survey/sa/regenquestioncodes/surveyid/
Or the versioning is getting more confusing.
The demo.limesurvey.org is stating version 2.64.0 and the regeneration of questioncodes is now working.
The release 2.64.0 Build 170307 is three days old.
What was changed at the demo installation then?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.