CDbException

Таблица "{{forum}}", упомянутая в записи active record класса "Forum", не найдена в базе данных.

/var/www/admin/www/kripipasta.com/framework-1-1-15/db/ar/CActiveRecord.php(2385)

2373 
2374     /**
2375      * Constructor.
2376      * @param CActiveRecord $model the model instance
2377      * @throws CDbException if specified table for active record class cannot be found in the database
2378      */
2379     public function __construct($model)
2380     {
2381         $this->_modelClassName=get_class($model);
2382 
2383         $tableName=$model->tableName();
2384         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2385             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2386                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2387                 
2388         if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null)
2389         {
2390             $table->primaryKey=$modelPk;
2391             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2392                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2393             elseif(is_array($table->primaryKey))
2394             {
2395                 foreach($table->primaryKey as $name)
2396                 {
2397                     if(isset($table->columns[$name]))

Stack Trace

#11
+
 /var/www/admin/www/kripipasta.com/themes/creepy/views/forum/index.php(35): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "_topic", "enableHistory" => true, "ajaxUpdate" => true, ...))
30                 $.getScript ("http://" + disqus_shortname + ".disqus.com/count.js");
31             });
32 
33             $("html, body").animate({scrollTop: $(".cttop").position().top }, 100);}',
34         //'template' => '{sorter} {items} {sorter} {pager}',
35     )); ?>
36     </div>
37 </div></td></tr>
38 <tr><td class="ctbot"></td></tr>
39 <script type="text/javascript">
40 var disqus_shortname = 'kripipasta';
#16
+
 /var/www/admin/www/kripipasta.com/protected/controllers/ForumController.php(194): CController->render("index", array("dataProvider" => CActiveDataProvider))
189         $pagination = new ReverseCPagination;
190         $pagination->pageSize = 50;
191         $dataProvider=new CActiveDataProvider('Forum', array('criteria' => $criteria, 'pagination'=> $pagination));
192         $this->render('index', array(
193             'dataProvider'=>$dataProvider,
194         ));
195     }
196 
197     /**
198      * Manages all models.
199      */
#29
+
 /var/www/admin/www/kripipasta.com/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2018-04-26 08:47:07 Apache/2.2.22 (Debian) Yii Framework/1.1.16