- Posts: 73
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
"SettingGlobal" cannot be found -Error while restoring 2.50+ version.
- arunicbe
- Topic Author
- Offline
- Senior Member
Less
More
3 years 4 months ago #209731
by arunicbe
"SettingGlobal" cannot be found -Error while restoring 2.50+ version. was created by arunicbe
I am trying restoring verion 2.50+. The database is completely restored through phpmyadmin. I see all the tables.
When I try to access the website, it throws the error.
The table "{{settings_global}}" for active record class "SettingGlobal" cannot be found in the database.
\wamp\www\test\framework\db\ar\CActiveRecord.php(2387)
2375
2376 /**
2377 * Constructor.
2378 * @param CActiveRecord $model the model instance
2379 * @throws CDbException if specified table for active record class cannot be found in the database
2380 */
2381 public function __construct($model)
2382 {
2383 $this->_modelClassName=get_class($model);
2384
2385 $tableName=$model->tableName();
2386 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2387 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2388 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2389
2390 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null)
2391 {
2392 $table->primaryKey=$modelPk;
2393 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2394 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2395 elseif(is_array($table->primaryKey))
2396 {
2397 foreach($table->primaryKey as $name)
2398 {
2399 if(isset($table->columns[$name]))
When I try to access the website, it throws the error.
The table "{{settings_global}}" for active record class "SettingGlobal" cannot be found in the database.
\wamp\www\test\framework\db\ar\CActiveRecord.php(2387)
2375
2376 /**
2377 * Constructor.
2378 * @param CActiveRecord $model the model instance
2379 * @throws CDbException if specified table for active record class cannot be found in the database
2380 */
2381 public function __construct($model)
2382 {
2383 $this->_modelClassName=get_class($model);
2384
2385 $tableName=$model->tableName();
2386 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2387 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2388 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2389
2390 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null)
2391 {
2392 $table->primaryKey=$modelPk;
2393 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey]))
2394 $table->columns[$table->primaryKey]->isPrimaryKey=true;
2395 elseif(is_array($table->primaryKey))
2396 {
2397 foreach($table->primaryKey as $name)
2398 {
2399 if(isset($table->columns[$name]))
Attachments:
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13677
- Thank you received: 2496
3 years 4 months ago #209743
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic "SettingGlobal" cannot be found -Error while restoring 2.50+ version.
bad DB name ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- arunicbe
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 73
- Thank you received: 0
3 years 4 months ago #209760
by arunicbe
Replied by arunicbe on topic "SettingGlobal" cannot be found -Error while restoring 2.50+ version.
db name and credentials are correct
The topic has been locked.