Welcome to the LimeSurvey Community Forum

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

Can't regenerate question codes

More
8 years 5 months ago #149917 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?
The topic has been locked.
More
8 years 5 months ago #149918 by jelo
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.
More
8 years 5 months ago - 8 years 5 months ago #149920 by msuelzer
Version 2.63.1. We haven't updated yet due to the announced fix for 2.64.
Last edit: 8 years 5 months ago by msuelzer.
The topic has been locked.
More
8 years 5 months ago #149922 by jelo

msuelzer wrote: due to the announced fix for 2.64.

What announced fix?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
8 years 5 months ago #149925 by msuelzer
Nevermind, I misread it. It was an announcement for the 2.63 release two weeks ago.
The topic has been locked.
More
8 years 5 months ago #149928 by jelo

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.
More
8 years 5 months ago #149930 by msuelzer
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.
More
8 years 5 months ago #149955 by ollehar
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.
More
8 years 5 months ago #149957 by ollehar
The following user(s) said Thank You: msuelzer
The topic has been locked.
More
8 years 5 months ago #149959 by jelo

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?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
8 years 5 months ago #149964 by ollehar
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.
More
8 years 5 months ago #149970 by jelo

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.
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.
More
8 years 5 months ago - 8 years 5 months ago #150023 by msuelzer

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: 8 years 5 months ago by msuelzer.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose