Exception

Could not add optional settings: exception 'CDbException' with message 'The table "{{users}}" for active record class "User" cannot be found in the database.' in /var/www/html/limesurvey/framework/db/ar/CActiveRecord.php:2387
Stack trace:
#0 /var/www/html/limesurvey/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(Object(User))
#1 /var/www/html/limesurvey/framework/db/ar/CActiveRecord.php(680): CActiveRecord->getMetaData()
#2 /var/www/html/limesurvey/application/models/LSActiveRecord.php(29): CActiveRecord->hasAttribute('created')
#3 /var/www/html/limesurvey/framework/db/ar/CActiveRecord.php(396): LSActiveRecord->behaviors()
#4 /var/www/html/limesurvey/application/models/User.php(33): CActiveRecord::model('User')
#5 /var/www/html/limesurvey/application/controllers/InstallerController.php(659): User::model()
#6 /var/www/html/limesurvey/application/controllers/InstallerController.php(83): InstallerController->stepOptionalConfiguration()
#7 /var/www/html/limesurvey/framework/web/CWebApplication.php(282): InstallerController->run('optional')
#8 /var/www/html/limesurvey/framework/web/CWebApplication.php(141): CWebApplication->runController('installer/optio...')
#9 /var/www/html/limesurvey/framework/base/CApplication.php(185): CWebApplication->processRequest()
#10 /var/www/html/limesurvey/index.php(214): CApplication->run()
#11 {main}.

/var/www/html/limesurvey/application/controllers/InstallerController.php(692)

680                         $permission->permission='superadmin';
681                         $permission->read_p=1;
682                         $permission->save();
683                         // Save  global settings
684                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'SessionName', 'stg_value' => self::_getRandomString()));
685                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'sitename', 'stg_value' => $sSiteName));
686                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'siteadminname', 'stg_value' => $sAdminRealName));
687                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'siteadminemail', 'stg_value' => $sAdminEmail));
688                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'siteadminbounce', 'stg_value' => $sAdminEmail));
689                         $this->connection->createCommand()->insert("{{settings_global}}", array('stg_name' => 'defaultlang', 'stg_value' => $sSiteLanguage));
690                         // only continue if we're error free otherwise setup is broken.
691                     } catch (Exception $e) {
692                         throw new Exception(sprintf('Could not add optional settings: %s.', $e));
693                     }
694 
695                     Yii::app()->session['deletedirectories'] = true;
696 
697                     $aData['title'] = gT("Success!");
698                     $aData['descp'] = gT("LimeSurvey has been installed successfully.");
699                     $aData['classesForStep'] = array('off','off','off','off','off','off');
700                     $aData['progressValue'] = 100;
701                     $aData['user'] = $sAdminUserName;
702                     if($sDefaultAdminPassword==$sAdminPassword){
703                         $aData['pwd'] = $sAdminPassword;
704                     }else{

Stack Trace

#0
+
 /var/www/html/limesurvey/application/controllers/InstallerController.php(83): InstallerController->stepOptionalConfiguration()
78             case 'populatedb':
79                 $this->stepPopulateDb();
80                 break;
81 
82             case 'optional':
83                 $this->stepOptionalConfiguration();
84                 break;
85 
86             case 'index' :
87             default :
88                 $this->redirect(array('installer/welcome'));
#4
+
 /var/www/html/limesurvey/index.php(214): CApplication->run()
209         die (sprintf('%s should be writable by the webserver (766 or 776).', $sDefaultRuntimePath));
210     }
211 }
212 
213 Yii::$enableIncludePath = false;
214 Yii::createApplication('LSYii_Application', $config)->run();
215 
216 /* End of file index.php */
217 /* Location: ./index.php */
2016-11-22 19:22:45 Apache/2.4.10 (Raspbian) Yii Framework/1.1.17