CException

Property "Quota.defaultlanguage" is not defined.

/home/sondages.pro/htdocs/limesurvey_GIT/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      */
154     public function __set($name,$value)
155     {
156         if($this->setAttribute($name,$value)===false)
157         {

Stack Trace

#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/common_helper.php(6128): CActiveRecord->__get("defaultlanguage")
6123         //while ($survey_quotas = $result->FetchRow())
6124         foreach ($result as $_survey_quotas)
6125         {
6126             $survey_quotas = $_survey_quotas->attributes;
6127             // !!! Doubting this
6128             foreach ($_survey_quotas->defaultlanguage as $k => $v)
6129                 $survey_quotas[$k] = $v;
6130 
6131             array_push($quota_info,array('Name' => $survey_quotas['name'],
6132             'Limit' => $survey_quotas['qlimit'],
6133             'Action' => $survey_quotas['action'],
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/common_helper.php(5935): getQuotaInformation("151331", "en", "14")
5930 * @return mixed - Integer of matching entries in the result DB or 'N/A'
5931 */
5932 function getQuotaCompletedCount($iSurveyId, $quotaid)
5933 {
5934     $result = "N/A";
5935     $quota_info = getQuotaInformation($iSurveyId, Survey::model()->findByPk($iSurveyId)->language, $quotaid);
5936     $quota = $quota_info[0];
5937 
5938     if (Yii::app()->db->schema->getTable('{{survey_' . $iSurveyId . '}}') &&
5939     count($quota['members']) > 0)
5940     {
#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/quotas.php(118): getQuotaCompletedCount("151331", "14")
113             $aViewUrls['output'] = '';
114             //loop through all quotas
115             foreach ($aResult as $aQuotaListing)
116             {
117                 $totalquotas += $aQuotaListing['qlimit'];
118                 $completed = getQuotaCompletedCount($iSurveyId, $aQuotaListing['id']);
119                 $highlight = ($completed >= $aQuotaListing['qlimit']) ? '' : "style='color: orange'"; //Incomplete quotas displayed in red
120                 $totalcompleted = $totalcompleted + $completed;
121                 $csvoutput[] = $aQuotaListing['name'] . "," . $aQuotaListing['qlimit'] . "," . $completed . "," . ($aQuotaListing['qlimit'] - $completed) . "\r\n";
122 
123                 if ($quickreport != false)
2014-01-09 16:48:47 Apache/2.2.16 (Debian) Yii Framework/1.1.14