Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

The table "{{settings_global}}" for active record class error in admin and surve

  • arunicbe
  • arunicbe's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 1 month ago #181336 by arunicbe
I am getting this error while accessing the survey and admin. The credentials in the config file are correct. The prefix is correct and the table exists in the database.

For some reasons, it keeps throwing this error.


The table "{{settings_global}}" for active record class "SettingGlobal" cannot be found in the database.

/var/www/html/forms/framework/db/ar/CActiveRecord.php(2390)
Code:
2378 
2379     /**
2380      * Constructor.
2381      * @param CActiveRecord $model the model instance
2382      * @throws CDbException if specified table for active record class cannot be found in the database
2383      */
2384     public function __construct($model)
2385     {
2386         $this->_modelClassName=get_class($model);
2387 
2388         $tableName=$model->tableName();
2389         if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null)
2390             throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.',
2391                 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName)));
2392
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose