CException

Property "Questions.class" is not defined.

/home/sondages.pro/htdocs/limesurvey_GIT/dev/framework/db/ar/CActiveRecord.php(160)

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

Stack Trace

#1
+
–
 /home/sondages.pro/htdocs/limesurvey_GIT/dev/application/models/Questions.php(232): CActiveRecord->__set("class", "List")
227         */
228         function insertRecords($data)
229         {
230             $questions = new self;
231             foreach ($data as $k => $v){
232                 $questions->$k = $v;
233                 }
234             try
235             {
236                 $questions->save();
237                 return $questions->qid;
#2
+
–
 /home/sondages.pro/htdocs/limesurvey_GIT/dev/application/helpers/admin/import_helper.php(3659): Questions->insertRecords(array("parent_qid" => "0", "sid" => "452179", "gid" => "38", "tid" => "3", ...))
3654                 $insertdata['tid'] = Question_types::model()->findByAttributes(array('class' => $insertdata['class']))->getAttribute('tid');
3655                 unset($insertdata['class']);
3656             }
3657             if ($insertdata)
3658                 XSSFilterArray($insertdata);
3659             $newqid = Questions::model()->insertRecords($insertdata) or safeDie($clang->gT("Error").": Failed to insert data [4]<br />");
3660             if (!isset($aQIDReplacements[$oldqid]))
3661             {
3662                 $aQIDReplacements[$oldqid]=$newqid;
3663                 $results['questions']++;
3664             }
#3
+
–
 /home/sondages.pro/htdocs/limesurvey_GIT/dev/application/controllers/admin/surveyadmin.php(956): XMLImportSurvey("", "<?xml version="1.0" encoding="UTF-8"?> <document> <LimeSurveyDo...", "sddsqd")
951                 $aImportResults=importSurveyFile($sFullFilepath,(isset($_POST['translinksfields'])));
952                 if (is_null($aImportResults)) $importerror = true;
953             }
954             elseif ($action == 'copysurvey' && (empty($importerror) || !$importerror))
955             {
956                 $aImportResults = XMLImportSurvey('', $copysurveydata, $sNewSurveyName);
957                 if (!isset($exclude['permissions']))
958                 {
959                     Survey_permissions::model()->copySurveyPermissions($iSurveyID,$aImportResults['newsid']);
960                 }
961             }
2012-12-06 12:18:55 Apache/2.2.16 (Debian) Yii Framework/1.1.12