CException

Property "Question.question" is not defined.

/var/www/lime25/limesurvey/framework/db/ar/CActiveRecord.php(145)

133      */
134     public function __get($name)
135     {
136         if(isset($this->_attributes[$name]))
137             return $this->_attributes[$name];
138         elseif(isset($this->getMetaData()->columns[$name]))
139             return null;
140         elseif(isset($this->_related[$name]))
141             return $this->_related[$name];
142         elseif(isset($this->getMetaData()->relations[$name]))
143             return $this->getRelated($name);
144         else
145             return parent::__get($name);
146     }
147 
148     /**
149      * PHP setter magic method.
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)

Stack Trace

#2
+
 /var/www/lime25/limesurvey/application/views/admin/quotas/newanswer_view.php(26): CModel->offsetGet("question")
21                         <div class='form-group'>
22                             <div class='col-sm-5 col-sm-offset-4'>
23                                 <select class='form-control' name="quota_qid" size="15">
24                                     <?php foreach ($oQuota->survey->quotableQuestions as $questionlisting) { ?>
25                                         <option value="<?php echo $questionlisting['qid'];?>">
26                                             <?php echo $questionlisting['title'];?>: <?php echo strip_tags(substr($questionlisting['question'],0,40));?>
27                                         </option>
28                                         <?php } ?>
29                                 </select>
30                             </div>
31                         </div>
#6
+
 /var/www/lime25/limesurvey/application/core/Survey_Common_Action.php(267): CController->renderPartial("/admin/quotas/newanswer_view", array("surveyid" => "386321", "iSurveyId" => "386321", "sBaseLang" => "en", "aLangs" => array("en", "fr"), ...), true)
262         // Load views
263         $content = "";
264         foreach ($aViewUrls as $sViewKey => $viewUrl) {
265             if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output'))) {
266                 if (is_numeric($sViewKey)) {
267                     $content .= Yii::app()->getController()->renderPartial($sViewPath.$viewUrl, $aData, true);
268                 } elseif (is_array($viewUrl)) {
269                     foreach ($viewUrl as $aSubData) {
270                         $aSubData = array_merge($aData, $aSubData);
271                         $content .= Yii::app()->getController()->renderPartial($sViewPath.$sViewKey, $aSubData, true);
272                     }
#7
+
 /var/www/lime25/limesurvey/application/core/Survey_Common_Action.php(345): Survey_Common_Action->renderCentralContents("quotas", array("newanswer_view"), array("surveyid" => "386321", "iSurveyId" => "386321", "sBaseLang" => "en", "aLangs" => array("en", "fr"), ...))
340             }
341         } else {
342             $renderFile = $basePath.'/'.$sRenderFile;
343         }
344 
345         $content = $this->renderCentralContents($sAction, $aViewUrls, $aData);
346         $out = $this->renderInternal($renderFile, ['content' => $content, 'aData' => $aData], true);
347 
348         App()->getClientScript()->render($out);
349         echo $out;
350     }
2019-04-24 18:06:03 Apache/2.4.10 (Ubuntu) Yii Framework/1.1.21