CDbException

The table "{{survey_467986_timings}}" for active record class "Survey_timings" cannot be found in the database.

/home/klaster/public_html/ankeet/survey/framework/db/ar/CActiveRecord.php(2264)

2252     private $_model;
2253 
2254     /**
2255      * Constructor.
2256      * @param CActiveRecord $model the model instance
2257      */
2258     public function __construct($model)
2259     {
2260         $this->_model=$model;
2261 
2262         $tableName=$model->tableName();
2263         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2264             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2265                 array('{class}'=>get_class($model),'{table}'=>$tableName)));
2266         if($table->primaryKey===null)
2267         {
2268             $table->primaryKey=$model->primaryKey();
2269             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2270                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2271             else if(is_array($table->primaryKey))
2272             {
2273                 foreach($table->primaryKey as $name)
2274                 {
2275                     if(isset($table->columns[$name]))
2276                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#3
+
 /home/klaster/public_html/ankeet/survey/application/helpers/expressions/em_manager_helper.php(4469): CActiveRecord->__construct()
4464                     $message .= $this->gT("Unable to insert record into survey table"); // TODO - add SQL error?
4465                 }
4466                 //Insert Row for Timings, if needed
4467                 if ($this->surveyOptions['savetimings']) {
4468                     Survey_timings::sid($this->sid);
4469                     $oSurveyTimings = new Survey_timings;
4470                     
4471                     $tdata = array(
4472                     'id'=>$srid,
4473                     'interviewtime'=>0
4474                     );
#4
+
 /home/klaster/public_html/ankeet/survey/application/helpers/expressions/em_manager_helper.php(4299): LimeExpressionManager->_UpdateValuesInDatabase(array(), false)
4294                             continue;
4295                         }
4296                         else
4297                         {
4298                             // display new group
4299                             $message .= $LEM->_UpdateValuesInDatabase($updatedValues,false);
4300                             $LEM->runtimeTimings[] = array(__METHOD__,(microtime(true) - $now));
4301                             $LEM->lastMoveResult = array(
4302                             'finished'=>false,
4303                             'message'=>$message,
4304                             'gseq'=>$LEM->currentGroupSeq,
#5
+
 /home/klaster/public_html/ankeet/survey/application/helpers/SurveyRuntimeHelper.php(190): LimeExpressionManager::NavigateForwards()
185                             unset($moveResult); // so display welcome page again
186                         }
187                 }
188                 if (isset($move) && $move == "movenext")
189                 {
190                     $moveResult = LimeExpressionManager::NavigateForwards();
191                 }
192                 if (isset($move) && ($move == 'movesubmit'))
193                 {
194                     if ($surveyMode == 'survey')
195                     {
2012-12-10 16:41:57 Apache Yii Framework/1.1.10