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
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #209731 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.

D:\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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #209743 by DenisChenu
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
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 years 4 months ago #209760 by arunicbe
db name and credentials are correct
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose