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/sandbox/index.php(44): CBaseController->widget("zii.widgets.CListView", array("dataProvider" => CActiveDataProvider, "itemView" => "/story/_indexview", "enableHistory" => true, "ajaxUpdate" => true, ...))
39                 $.getScript ("http://" + disqus_shortname + ".disqus.com/count.js");
40             });
41 
42             $("html, body").animate({scrollTop: $(".cttop").position().top }, 100);}',
43         //'template'=>"{pager}{items}{pager}",
44     )); ?>
45 </div></td></tr>
46 <tr><td class="ctbot"></td></tr>
47 <script type="text/javascript">
48 var disqus_shortname = 'kripipasta';
49 (function () {
#16
+
 /var/www/admin/www/kripipasta.com/protected/controllers/SandboxController.php(42): CController->render("index", array("dataProvider" => CActiveDataProvider))
37         $this->render('index',array(
38             'dataProvider'=>$dataProvider,
39             //'lastVideo'=>$lastVideo,
40             //'likes'=>$likes,
41             //'dislikes'=>$dislikes,
42         ));
43     }
44     
45     public function actionTop()
46     {
47         $criteria = new CDbCriteria();
#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();
2017-02-28 12:51:28 Apache/2.2.22 (Debian) Yii Framework/1.1.16