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

TOPIC: "Undefined variable" TOKEN:LANGUAGE

"Undefined variable" TOKEN:LANGUAGE 3 years 2 months ago #100463

  • jonsen
  • jonsen's Avatar
  • Offline
  • Expert Lime
  • Posts: 83
  • Thank you received: 8
  • Karma: 1
Hello everyone!

I get an "undefined variable" error for the variable TOKEN:LANGUAGE, which I selected using the condition manager. I totally don't understand this error, as this is a closed survey and the language-field is standard in all token tables.... Can anyone shine a light?

Trying to use {TOKEN:LANGUAGE} within a text element also produces an "undefined variable" error.

Best
Jonsen
The administrator has disabled public write access.

"Undefined variable" TOKEN:LANGUAGE 3 years 1 month ago #100566

  • jonsen
  • jonsen's Avatar
  • Offline
  • Expert Lime
  • Posts: 83
  • Thank you received: 8
  • Karma: 1
This is not actually an error, rather a very minor bug.

The variables are not set until the query is executed once, so entering the test survey will get rid of the "undefined" error.

Maybe the syntax check should check the token table for the existence of a TOKEN:... variable, rather then being dependent on the execution of the survey... But yeah, rather unimportant. A little confusing though. (Hey, everybody hates red stuff in their survey logic file!)

Best
Jonsen
The administrator has disabled public write access.

"Undefined variable" TOKEN:LANGUAGE 3 years 1 month ago #100575

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1374
  • Karma: 390
Hi,

Please : time to fill a bug report :)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
Last Edit: 3 years 1 month ago by DenisChenu. Reason: not big, bug ....
The administrator has disabled public write access.

"Undefined variable" TOKEN:LANGUAGE 3 years 1 month ago #100583

  • jonsen
  • jonsen's Avatar
  • Offline
  • Expert Lime
  • Posts: 83
  • Thank you received: 8
  • Karma: 1
The administrator has disabled public write access.
Time to create page: 0.484 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form