CDbException

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

/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/top/index.php(38): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "/story/_indexview", "enableHistory" => true, "ajaxUpdate" => true, ...))
33                 $.getScript ("http://" + disqus_shortname + ".disqus.com/count.js");
34             });
35 
36             $("html, body").animate({scrollTop: $(".cttop").position().top }, 100);}',
37         //'template'=>"{pager}{items}{pager}",
38     )); ?>
39 </div></td></tr>
40 <tr><td class="ctbot"></td></tr>
41 <script type="text/javascript">
42 var disqus_shortname = 'kripipasta';
43 (function () {
#16
+
 /var/www/admin/www/kripipasta.com/protected/controllers/TopController.php(15): CController->render("index", array("dataProvider" => CActiveDataProvider))
10         $criteria->condition = 'approved <> 2';
11         $pagination = new ReverseCPagination;
12         $dataProvider=new CActiveDataProvider('Story', array('criteria' => $criteria, 'pagination'=> $pagination,));
13         $this->render('index',array(
14             'dataProvider'=>$dataProvider,
15         ));
16     }
17 }
#24
+
 /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();
2017-02-28 12:53:48 Apache/2.2.22 (Debian) Yii Framework/1.1.16