View Issue Details

This bug affects 1 person(s).
 16
IDProjectCategoryView StatusLast Update
20222Bug reportsSurvey participants (Tokens)public2025-08-20 16:19
Reportergreiling Assigned Toc_schmitz  
PrioritynoneSeverityblock 
Status closedResolutionfixed 
Product Version6.6.x 
Summary20222: token based access ends in error
Description

CException

Eigenschaft "SurveyDynamic.token ist nicht definiert.

/var/www/limesurvey6/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(162)

150 This method is overridden so that AR attributes can be accessed like properties.
151
@param string $name property name
152 @param mixed $value property value
153
@throws CException
154 */
155 public function __set($name,$value)
156 {
157 if($this->setAttribute($name,$value)===false)
158 {
159 if(isset($this->getMetaData()->relations[$name]))
160 $this->_related[$name]=$value;
161 else
162 parent::set($name,$value);
163 }
164 }
165
166 /*
167
Checks if a property value is null.
168 This method overrides the parent implementation by checking
169
if the named attribute is null or not.
170 @param string $name the property name or the event name
171
@return boolean whether the property value is null
172 */
173 public function
isset($name)
174 {
Stack Trace
#0

  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php(162): CComponent->set()
    #1
    – /var/www/limesurvey6/application/helpers/SurveyRuntimeHelper.php(223): CActiveRecord->
    set()
    218 $this->saveAllIfNeeded();
    219 $this->saveSubmitIfNeeded();
    220 $tokenValue = ($_SESSION[$this->LEMsessid]['filltoken'] ?? ($_SESSION[$this->LEMsessid]['token'] ?? ''));
    221 if ($tokenValue && isset($_SESSION[$this->LEMsessid]['srid'])) {
    222 $oSurveyResponse = SurveyDynamic::model($this->iSurveyid)->findByAttributes(['id' => $_SESSION[$this->LEMsessid]['srid']]);
    223 $oSurveyResponse->token = $tokenValue;
    224 if (isset($_SESSION[$this->LEMsessid]['filltoken'])) {
    225 unset($_SESSION[$this->LEMsessid]['filltoken']);
    226 }
    227 if (isset($_SESSION[$this->LEMsessid]['token'])) {
    228 unset($_SESSION[$this->LEMsessid]['token']);
    #2
    – /var/www/limesurvey6/application/controllers/survey/SurveyIndex.php(668): SurveyRuntimeHelper->run()
    663 unset($redata);
    664 $redata = compact(array_keys(get_defined_vars()));
    665 Yii::import('application.helpers.SurveyRuntimeHelper');
    666 $tmp = new SurveyRuntimeHelper();
    667 // try {
    668 $tmp->run($surveyid, $redata);
    669 // } catch (WrongTemplateVersionException $ex) {
    670 // echo $ex->getMessage();
    671 // }
    672 }
    673
    #3
    – /var/www/limesurvey6/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action()
    17 public $oTemplate;
    18
    19 public function run()
    20 {
    21 useFirebug();
    22 $this->action();
    23 }
    24
    25 /*
    26

    27 * todo: this function is toooo long, to many things happening here. Should be refactored asap!
    #4
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->run()
    #5
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams()
    #6
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction()
    #7
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters()
    #8
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): CController->run()
    #9
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController()
    #10
  • /var/www/limesurvey6/vendor/yiisoft/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
    #11
  • /var/www/limesurvey6/index.php(161): CApplication->run()
    2025-08-19 13:16:35 Apache Yii Framework/1.1.31
Steps To Reproduce

activate survey, use user token, check data protection, get error
500: Interner Serverfehler - Eigenschaft "SurveyDynamic.token ist nicht definiert.

TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 6.15.6+250818
I will donate to the project if issue is resolvedNo
Browser
Database type & versionmysqlnd 8.3.22
Server OS (if known)
Webserver software & version (if known)
PHP Version 8.3.22

Relationships

has duplicate 20225 closedc_schmitz Error: "500: internal server error - property "SurveyDynamic.token" is not defined" using token based survey and anonymous answe 

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2025-08-20 12:57

updater   ~83249

@greiling, I can NOT reproduce this issue at the latest 6.x version. I can start my test survey with a test token without issues.
Please provide a sample survey as LSA file.
Please also let us know your exact Limesurvey version.

greiling

greiling

2025-08-20 13:08

reporter   ~83252

"LimeSurvey Community Edition Version 6.15.6+250818" is not exact enough?

this .lsa is taken at 6.15.5 - i downgraded yesterday - and it works fine again.

Mazi

Mazi

2025-08-20 13:15

updater   ~83253

@tibor.pacalat, @c_schmitz, I can safely reproduce this issue when using the provided test survey, creating a token and running the survey. You can test at https://ls6dev.my-survey.host/index.php/286152?token=123456789&newtest=Y. Just agree to the privacy details and then you get the mentioned "500: Internal Server Error - Eigenschaft "SurveyDynamic.token ist nicht definiert." error.
This definitely is a blocker and was also reported at 20225.

@greiling, thanks a lot for reporting this.

greiling

greiling

2025-08-20 13:17

reporter   ~83254

used comfort update to update

kury25

kury25

2025-08-20 15:32

reporter   ~83258

Hello,
I have the same problem on all my current polls.
If it can help, by adding a 'token' column in <<survey#idsurvey>>, it allowed to temporarily solve the problem for urgent questionnaires.

c_schmitz

c_schmitz

2025-08-20 15:59

administrator   ~83259

We will release a new version in the next few hours which fixes this problem.

LimeBot

LimeBot

2025-08-20 16:19

administrator   ~83261

Fixed in Release 6.15.7+250820

Related Changesets

LimeSurvey: master 2b1f8385

2025-08-20 12:53

mohabmes

Committer: GitHub


Details Diff
Fixed Issue: Tokens were not stored Affected Issues
20222
mod - application/helpers/SurveyRuntimeHelper.php Diff File

Issue History

Date Modified Username Field Change
2025-08-19 15:31 greiling New Issue
2025-08-20 12:57 Mazi Note Added: 83249
2025-08-20 12:57 Mazi Bug heat 0 => 2
2025-08-20 13:08 greiling Note Added: 83252
2025-08-20 13:08 greiling File Added: survey_archive_286152.lsa
2025-08-20 13:08 greiling Bug heat 2 => 4
2025-08-20 13:09 Mazi Relationship added parent of 20225
2025-08-20 13:15 Mazi Note Added: 83253
2025-08-20 13:17 greiling Note Added: 83254
2025-08-20 15:32 kury25 Note Added: 83258
2025-08-20 15:32 kury25 Bug heat 4 => 6
2025-08-20 15:58 c_schmitz Relationship replaced has duplicate 20225
2025-08-20 15:58 c_schmitz Bug heat 6 => 12
2025-08-20 15:59 c_schmitz Note Added: 83259
2025-08-20 15:59 c_schmitz Bug heat 12 => 14
2025-08-20 16:02 c_schmitz Changeset attached => LimeSurvey master 2b1f8385
2025-08-20 16:02 c_schmitz Assigned To => c_schmitz
2025-08-20 16:02 c_schmitz Status new => resolved
2025-08-20 16:02 c_schmitz Resolution open => fixed
2025-08-20 16:19 LimeBot Note Added: 83261
2025-08-20 16:19 LimeBot Status resolved => closed
2025-08-20 16:19 LimeBot Bug heat 14 => 16