View Single Post
404UserNotFound
BANNED
Join Date: Dec 2011
Old 09-03-2013 , 15:38   Re: Installing latest SourceBans from the Github
Reply With Quote #4

Tried to install Sourcebans 2.0. Got a new error upon going to the dashboard after installation:

Code:
  	CDbException

  	 		The table "{{settings}}" for active record class "SBSetting" cannot be found in the database.	
  	 		/var/www/sourcebans/application/components/SourceBans.php(334)
 		322     /** 323      * Raised right BEFORE the application processes the request. 324      * @param CEvent $event the event parameter 325      */ 326     public static function onBeginRequest($event) 327     { 328         if(!YII_DEBUG && file_exists(Yii::getPathOfAlias('webroot.install'))) 329             throw new CHttpException(403, 'Please delete the /install folder.'); 330          331         // Set timezone 332         if(!Yii::app()->user->isGuest && !empty(Yii::app()->user->data->timezone)) 333             date_default_timezone_set(Yii::app()->user->data->timezone); 334         else if(!empty(SourceBans::app()->settings->timezone)) 335             date_default_timezone_set(SourceBans::app()->settings->timezone); 336         else 337             date_default_timezone_set('Europe/London'); 338          339         // Set date/time format 340         if(!empty(SourceBans::app()->settings->date_format)) 341             Yii::app()->format->datetimeFormat = SourceBans::app()->settings->date_format; 342          343         // Set language 344         if(!Yii::app()->user->isGuest && !empty(Yii::app()->user->data->language)) 345             Yii::app()->setLanguage(Yii::app()->user->data->language); 346         else if(!empty(SourceBans::app()->settings->language)) 
	
  	 		Stack Trace

 				 						 			 				#0			 			 				 											+
 						 										 /var/www/sourcebans/framework/db/ar/CActiveRecord.php(411): CActiveRecordMetaData->__construct(SBSetting)				
  							 		 						 			 				#1			 			 				 											+
 						 										 /var/www/sourcebans/framework/db/ar/CActiveRecord.php(658): CActiveRecord->getMetaData()				
  							 		 						 			 				#2			 			 				 											+
 						 										 /var/www/sourcebans/framework/db/ar/CActiveRecord.php(1350): CActiveRecord->getTableSchema()				
  							 		 						 			 				#3			 			 				 											+
 						 										 /var/www/sourcebans/framework/db/ar/CActiveRecord.php(1470): CActiveRecord->query(CDbCriteria, true)				
  							 		 						 			 				#4			 			 				 											 						–
 										 /var/www/sourcebans/application/components/SourceBans.php(164): CActiveRecord->findAll()				
  				159     public function getSettings() 160     { 161         static $_data; 162         if(!isset($_data)) 163         { 164             $_data = new CAttributeCollection(CHtml::listData(SBSetting::model()->findAll(), 'name', 'value'), true); 165         } 166          167         return $_data; 168     } 169      
			 		 						 			 				#5			 			 				 											+
 						 										 /var/www/sourcebans/framework/base/CComponent.php(111): SourceBans->getSettings()				
  							 		 						 			 				#6			 			 				 											 						–
 										 /var/www/sourcebans/application/components/SourceBans.php(334): CComponent->__get("settings")				
  				329             throw new CHttpException(403, 'Please delete the /install folder.'); 330          331         // Set timezone 332         if(!Yii::app()->user->isGuest && !empty(Yii::app()->user->data->timezone)) 333             date_default_timezone_set(Yii::app()->user->data->timezone); 334         else if(!empty(SourceBans::app()->settings->timezone)) 335             date_default_timezone_set(SourceBans::app()->settings->timezone); 336         else 337             date_default_timezone_set('Europe/London'); 338          339         // Set date/time format 
			 		 						 			 				#7			 			 				 										 unknown(0): SourceBans::onBeginRequest(CEvent)				
  							 		 						 			 				#8			 			 				 											+
 						 										 /var/www/sourcebans/framework/base/CComponent.php(559): call_user_func(array("SourceBans", "onBeginRequest"), CEvent)				
  							 		 						 			 				#9			 			 				 											+
 						 										 /var/www/sourcebans/framework/base/CApplication.php(207): CComponent->raiseEvent("onBeginRequest", CEvent)				
  							 		 						 			 				#10			 			 				 											+
 						 										 /var/www/sourcebans/framework/base/CApplication.php(178): CApplication->onBeginRequest(CEvent)				
  							 		 						 			 				#11			 			 				 											 						–
 										 /var/www/sourcebans/index.php(16): CApplication->run()				
  				11 defined('YII_DEBUG') or define('YII_DEBUG',true); 12 // specify how many levels of call stack should be shown in each log message 13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 14  15 require_once($yii); 16 Yii::createWebApplication($config)->run(); 
			 		 				 	
  	 		2013-09-03 15:37:17 Apache/2.2.22 (Ubuntu) Yii Framework/1.1.14
404UserNotFound is offline