Welcome to the LimeSurvey Community Forum

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

Can't regenerate question codes

  • msuelzer
  • msuelzer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks 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?
The topic has been locked.
More
7 years 2 weeks ago #149918 by jelo
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
  • msuelzer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks ago - 7 years 2 weeks 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 2 weeks ago by msuelzer.
The topic has been locked.
More
7 years 2 weeks ago #149922 by jelo
Replied by jelo on topic Can't regenerate question codes

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.
  • msuelzer
  • msuelzer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks 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.
More
7 years 2 weeks ago #149928 by jelo
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
  • msuelzer's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 weeks 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
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 2 weeks 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
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 2 weeks ago #149957 by ollehar
The following user(s) said Thank You: msuelzer
The topic has been locked.
More
7 years 2 weeks ago #149959 by jelo
Replied by jelo on 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?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • ollehar
  • ollehar's Avatar
  • Offline
  • LimeSurvey GmbH Employee
  • LimeSurvey GmbH Employee
More
7 years 2 weeks 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.
More
7 years 2 weeks ago #149970 by jelo
Replied by jelo on 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.
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.

Lime-years ahead

Online-surveys for every purse and purpose