View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
20222Bug reportsSurvey participants (Tokens)public2025-08-19 15:31
Reportergreiling Assigned To 
PrioritynoneSeverityblock 
Status newResolutionopen 
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 heat0
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

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-08-19 15:31 greiling New Issue