Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Survey Response Fields not being created

Survey Response Fields not being created 4 years 7 months ago #74710

  • tacman1123
  • tacman1123's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 125
  • Thank you received: 1
  • Karma: 1
I'm in the middle of a Limesurvey training, and suddenly activating a survey is creating a survey table lacking all the SGQA fields, it only has the basic id, start time, token, etc., but none of my fields.

I'm using the latest beta, but I'm not sure it's a bug. It's a trivial survey, I'm going to try it on another machine, but can someone point me to the code that actually does the CREATE statement for the survey responses. My guess is that it's not looping through the fields for some reason, a bad code, something. Driving me crazy.

Thx,

Tac
The administrator has disabled public write access.

Survey Response Fields not being created 4 years 7 months ago #74711

  • tacman1123
  • tacman1123's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 125
  • Thank you received: 1
  • Karma: 1
Hmm, it might be a bug. A survey with the base language of Vietnamese isn't creating the SGQA fields. I think it's looking for something in English. Still trying to replicate enough to add to the bug list.
The administrator has disabled public write access.

Survey Response Fields not being created 4 years 7 months ago #74712

  • tacman1123
  • tacman1123's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 125
  • Thank you received: 1
  • Karma: 1
Getting closer. In common_functions.php, around line 2443, the query uses $s_lang, which has previously been set to $clang->langcode.

But that is set to 'en', and our survey only has 'vi', so it has no answer columns.

Not sure how to get around this right now.
The administrator has disabled public write access.
Time to create page: 0.245 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form