CDbException

The table "pg_faq" for active record class "Faq" cannot be found in the database.

/home/suryasukses/yii/framework/db/ar/CActiveRecord.php(2312)

2300     private $_model;
2301 
2302     /**
2303      * Constructor.
2304      * @param CActiveRecord $model the model instance
2305      */
2306     public function __construct($model)
2307     {
2308         $this->_model=$model;
2309 
2310         $tableName=$model->tableName();
2311         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2312             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2313                 array('{class}'=>get_class($model),'{table}'=>$tableName)));
2314         if($table->primaryKey===null)
2315         {
2316             $table->primaryKey=$model->primaryKey();
2317             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2318                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2319             else if(is_array($table->primaryKey))
2320             {
2321                 foreach($table->primaryKey as $name)
2322                 {
2323                     if(isset($table->columns[$name]))
2324                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#2
+
 /home/suryasukses/public_html/protected/controllers/HomeController.php(314): CActiveDataProvider->__construct("Faq", array("criteria" => CDbCriteria, "pagination" => array("pageSize" => 100000)))
309         $pageSize = 100000;
310 
311         $dataFaq = new CActiveDataProvider('Faq', array(
312             'criteria'=>$criteria,
313             'pagination'=>array(
314                 'pageSize'=>$pageSize,
315             ),
316         ));
317 
318         $this->render('faq', array(
319             'dataFaq'=>$dataFaq,
#10
+
 /home/suryasukses/public_html/index.php(36): CApplication->run()
31 // specify how many levels of call stack should be shown in each log message
32 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
33 error_reporting(E_ALL ^ E_NOTICE);
34 date_default_timezone_set('Asia/Jakarta');
35 require_once($yii);
36 Yii::createWebApplication($config)->run();
37 
38 $end_timeeeee = microtime(TRUE);
39 
40 // echo $end_timeeeee - $start_timeeeee;
41 // echo "<br>";
2021-04-11 10:50:34 Apache Yii Framework/1.1.12