CDbException

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

/home/mir-kerama/web/mir-kerama.ru/public_html/framework/db/ar/CActiveRecord.php(2362)

2350 
2351     /**
2352      * Constructor.
2353      * @param CActiveRecord $model the model instance
2354      * @throws CDbException if specified table for active record class cannot be found in the database
2355      */
2356     public function __construct($model)
2357     {
2358         $this->_modelClassName=get_class($model);
2359 
2360         $tableName=$model->tableName();
2361         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2362             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2363                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2364         if($table->primaryKey===null)
2365         {
2366             $table->primaryKey=$model->primaryKey();
2367             if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2368                 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2369             elseif(is_array($table->primaryKey))
2370             {
2371                 foreach($table->primaryKey as $name)
2372                 {
2373                     if(isset($table->columns[$name]))
2374                         $table->columns[$name]->isPrimaryKey=true;

Stack Trace

#2
+
 /home/mir-kerama/web/mir-kerama.ru/public_html/protected/modules/core/models/SystemModules.php(110): CActiveRecord->__call("enabled", array())
105 
106         $cr = new CDbCriteria;
107         $cr->select = 'name';
108 
109         self::$cache = SystemModules::model()
110             ->enabled()
111             ->findAll($cr);
112 
113         return self::$cache;
114     }
115 
#3
+
 /home/mir-kerama/web/mir-kerama.ru/public_html/protected/components/SWebApplication.php(41): SystemModules::getEnabled()
36      * Set enabled system modules to enable url access.
37      */
38     protected function setSystemModules()
39     {
40         // Enable installed modules
41         $modules = SystemModules::getEnabled();
42 
43         if($modules)
44         {
45             foreach($modules as $module)
46                 $this->setModules(array($module->name));
#4
+
 /home/mir-kerama/web/mir-kerama.ru/public_html/protected/components/SWebApplication.php(31): SWebApplication->setSystemModules()
26     /**
27      * Initialize component
28      */
29     public function init()
30     {
31         $this->setSystemModules();
32         parent::init();
33     }
34 
35     /**
36      * Set enabled system modules to enable url access.
2024-03-19 03:07:05 Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/7.2.16 Yii Framework/1.1.14