Can't regenerate question codes

More
7 months 1 week ago #149917 by msuelzer
msuelzer created the topic: Can't regenerate question codes
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?

Please Log in to join the conversation.

More
7 months 1 week ago #149918 by jelo
jelo replied the topic: Can't regenerate question codes
What version/build of LimeSurvey is used?

Please Log in to join the conversation.

More
7 months 1 week ago - 7 months 1 week ago #149920 by msuelzer
msuelzer replied the 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 months 1 week ago by msuelzer.

Please Log in to join the conversation.

More
7 months 1 week ago #149922 by jelo
jelo replied the topic: Can't regenerate question codes

msuelzer wrote: due to the announced fix for 2.64.

What announced fix?

Please Log in to join the conversation.

More
7 months 1 week ago #149925 by msuelzer
msuelzer replied the topic: Can't regenerate question codes
Nevermind, I misread it. It was an announcement for the 2.63 release two weeks ago.

Please Log in to join the conversation.

More
7 months 1 week ago #149928 by jelo
jelo replied the 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?

Please Log in to join the conversation.

More
7 months 1 week ago #149930 by msuelzer
msuelzer replied the 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.

Please Log in to join the conversation.

More
7 months 1 week ago #149955 by olle
olle replied the 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

Please Log in to join the conversation.

More
7 months 1 week ago #149957 by olle
olle replied the topic: Can't regenerate question codes
The following user(s) said Thank You: msuelzer

Please Log in to join the conversation.

More
7 months 1 week ago #149959 by jelo
jelo replied the topic: Can't regenerate question codes

msuelzer wrote: The hosted installation runs on Version 2.63.1 as well.

How it is possible that the same version is having different code (one with the bug, one without the bug).
Is the hosted installation not the same as the downloaded version when it comes to version/build?

Please Log in to join the conversation.

More
7 months 1 week ago #149964 by olle
olle replied the 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

Please Log in to join the conversation.

More
7 months 6 days ago #149970 by jelo
jelo replied the topic: Can't regenerate question codes

olle wrote: How Yii constructs the URLs depends on the config, which might explain the problem.

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.

The fix contains just adding sa in a path.
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?

Please Log in to join the conversation.

More
7 months 4 days ago - 7 months 4 days ago #150023 by msuelzer
msuelzer replied the topic: Can't regenerate question codes

jelo wrote: 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.

I can confirm that it has been fixed by upgrading to Version 2.64.1; editing the config file manually wasn't necessary (though as you wrote, fixing it manually would've been trivial as well).
Last Edit: 7 months 4 days ago by msuelzer.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now