AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Bug Report Installing latest SourceBans from the Github (https://forums.alliedmods.net/showthread.php?t=225353)

404UserNotFound 09-03-2013 14:55

Installing latest SourceBans from the Github
 
So I'm installing the latest SourceBans from the GitHub, and the installation screen's height is a tad off, which cuts off the last two items in the checklist ("Runtime Folder Writable (/application/runtime)" and "Database Config Writable (/application/config/sourcebans.php)" checks)

Here's the CSS fix:

Change this:
Code:

.step, .slider {
    height: 400px;
    overflow: hidden;
    width: 714px;
}

.buttons {
    bottom: 83px;
}


To this:
Code:

.step, .slider {
    height: 445px;
    overflow: hidden;
    width: 714px;
}

.buttons {
    bottom: 54px;
}




As well, it's looking to check the "/assets" and "/demos" folder to see if they're writable.....except they don't seem to exist.

Was I supposed to keep the old SourceBans install? I can't go forward in the installation because of the missing folders from the old installation.

I did manage to go forward by manually creating both folders and CHMOD'ing them to 777.

DJ Tsunami 09-03-2013 14:59

Re: Installing latest SourceBans from the Github
 
The installation tries to create the folders. If it fails, then of course you have to create them yourself and make them writable.

404UserNotFound 09-03-2013 15:02

Re: Installing latest SourceBans from the Github
 
Quote:

Originally Posted by DJ Tsunami (Post 2027774)
The installation tries to create the folders. If it fails, then of course you have to create them yourself and make them writable.

Weird because in the 1.4 sourcebans, the folders came with the ZIP file containing everything else.

Well I finished installation, now I've got a nice big error page for my index.php:

Code:

      CException

              Property "CAttributeCollection.enable_smtp" is not defined.   
              /var/www/sourcebans/framework/collections/CAttributeCollection.php(51)
        39      * Returns a property value or an event handler list by property or event name. 40      * This method overrides the parent implementation by returning 41      * a key value if the key exists in the collection. 42      * @param string $name the property name or the event name 43      * @return mixed the property value or the event handler list 44      * @throws CException if the property/event is not defined. 45      */ 46    public function __get($name) 47    { 48        if($this->contains($name)) 49            return $this->itemAt($name); 50        else 51            return parent::__get($name); 52    } 53  54    /** 55      * Sets value of a component property. 56      * This method overrides the parent implementation by adding a new key value 57      * to the collection. 58      * @param string $name the property name or event name 59      * @param mixed $value the property value or event handler 60      * @throws CException If the property is not defined or read-only. 61      */ 62    public function __set($name,$value) 63    {
   
              Stack Trace

                                                                        #0                                                                                                                –
                                          /var/www/sourcebans/framework/collections/CAttributeCollection.php(51): CComponent->__get("enable_smtp")               
                  46    public function __get($name) 47    { 48        if($this->contains($name)) 49            return $this->itemAt($name); 50        else 51            return parent::__get($name); 52    } 53  54    /** 55      * Sets value of a component property. 56      * This method overrides the parent implementation by adding a new key value
                                                                            #1                                                                                                                –
                                          /var/www/sourcebans/application/components/SourceBans.php(354): CAttributeCollection->__get("enable_smtp")               
                  349            Yii::app()->setTheme(Yii::app()->user->data->theme); 350        else if(!empty(SourceBans::app()->settings->theme)) 351            Yii::app()->setTheme(SourceBans::app()->settings->theme); 352          353        // Set mailer 354        if(SourceBans::app()->settings->enable_smtp) 355        { 356            Yii::app()->mailer->mailer  = 'smtp'; 357            Yii::app()->mailer->host    = SourceBans::app()->settings->smtp_host; 358            Yii::app()->mailer->port    = SourceBans::app()->settings->smtp_port; 359            Yii::app()->mailer->username = SourceBans::app()->settings->smtp_username;
                                                                            #2                                                                                    unknown(0): SourceBans::onBeginRequest(CEvent)               
                                                                                              #3                                                                                                                –
                                          /var/www/sourcebans/framework/base/CComponent.php(559): call_user_func(array("SourceBans", "onBeginRequest"), CEvent)               
                  554                    if(is_array($handler)) 555                    { 556                        // an array: 0 - object, 1 - method name 557                        list($object,$method)=$handler; 558                        if(is_string($object))    // static method call 559                            call_user_func($handler,$event); 560                        elseif(method_exists($object,$method)) 561                            $object->$method($event); 562                        else 563                            throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".', 564                                array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1])));
                                                                            #4                                                                                                                –
                                          /var/www/sourcebans/framework/base/CApplication.php(207): CComponent->raiseEvent("onBeginRequest", CEvent)               
                  202      * Raised right BEFORE the application processes the request. 203      * @param CEvent $event the event parameter 204      */ 205    public function onBeginRequest($event) 206    { 207        $this->raiseEvent('onBeginRequest',$event); 208    } 209  210    /** 211      * Raised right AFTER the application processes the request. 212      * @param CEvent $event the event parameter
                                                                            #5                                                                                                                –
                                          /var/www/sourcebans/framework/base/CApplication.php(178): CApplication->onBeginRequest(CEvent)               
                  173      * Remember to call the parent implementation so that static application components are loaded. 174      */ 175    public function run() 176    { 177        if($this->hasEventHandler('onBeginRequest')) 178            $this->onBeginRequest(new CEvent($this)); 179        register_shutdown_function(array($this,'end'),0,false); 180        $this->processRequest(); 181        if($this->hasEventHandler('onEndRequest')) 182            $this->onEndRequest(new CEvent($this)); 183    }
                                                                            #6                                                                                                                –
                                          /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 20:01:08 Apache/2.2.22 (Ubuntu) Yii Framework/1.1.14

Index-test.php gives me a different error:

Code:

          CException

                          Property "CAttributeCollection.default_page" is not defined.       
                          /var/www/sourcebans/framework/collections/CAttributeCollection.php(51)
                39      * Returns a property value or an event handler list by property or event name. 40      * This method overrides the parent implementation by returning 41      * a key value if the key exists in the collection. 42      * @param string $name the property name or the event name 43      * @return mixed the property value or the event handler list 44      * @throws CException if the property/event is not defined. 45      */ 46    public function __get($name) 47    { 48        if($this->contains($name)) 49            return $this->itemAt($name); 50        else 51            return parent::__get($name); 52    } 53  54    /** 55      * Sets value of a component property. 56      * This method overrides the parent implementation by adding a new key value 57      * to the collection. 58      * @param string $name the property name or event name 59      * @param mixed $value the property value or event handler 60      * @throws CException If the property is not defined or read-only. 61      */ 62    public function __set($name,$value) 63    {
       
                          Stack Trace

                                                                                                                                            #0                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/collections/CAttributeCollection.php(51): CComponent->__get("default_page")                               
                                                                                                                                                                                      #1                                                                                                                                                                                                                            –
                                                                                  /var/www/sourcebans/application/controllers/SiteController.php(75): CAttributeCollection->__get("default_page")                               
                                  70      * This is the default 'index' action that is invoked 71      * when an action is not explicitly requested by users. 72      */ 73    public function actionIndex() 74    { 75        $defaultAction = 'action' . ucfirst(SourceBans::app()->settings->default_page); 76          77        $this->$defaultAction(); 78    } 79  80    /**
                                                                                                                                                    #2                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/actions/CInlineAction.php(49): SiteController->actionIndex()                               
                                                                                                                                                                                      #3                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/CController.php(308): CInlineAction->runWithParams(array())                               
                                                                                                                                                                                      #4                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/filters/CFilterChain.php(133): CController->runAction(CInlineAction)                               
                                                                                                                                                                                      #5                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/filters/CFilter.php(40): CFilterChain->run()                               
                                                                                                                                                                                      #6                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/CController.php(1145): CFilter->filter(CFilterChain)                               
                                                                                                                                                                                      #7                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain)                               
                                                                                                                                                                                      #8                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(CFilterChain)                               
                                                                                                                                                                                      #9                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/CController.php(291): CFilterChain->run()                               
                                                                                                                                                                                      #10                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("accessControl"))                               
                                                                                                                                                                                      #11                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/CWebApplication.php(282): CController->run("")                               
                                                                                                                                                                                      #12                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/web/CWebApplication.php(141): CWebApplication->runController("")                               
                                                                                                                                                                                      #13                                                                                                                                                                          +
                                                                                                                                  /var/www/sourcebans/framework/base/CApplication.php(180): CWebApplication->processRequest()                               
                                                                                                                                                                                      #14                                                                                                                                                                                                                            –
                                                                                  /var/www/sourcebans/index-test.php(15): CApplication->run()                               
                                  10  11 // remove the following line when in production mode 12 defined('YII_DEBUG') or define('YII_DEBUG',true); 13  14 require_once($yii); 15 Yii::createWebApplication($config)->run();
                                                                                 
                          2013-09-03 20:03:21 Apache/2.2.22 (Ubuntu) Yii Framework/1.1.14


404UserNotFound 09-03-2013 15:38

Re: Installing latest SourceBans from the Github
 
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


FlyingMongoose 09-04-2013 12:40

Re: Installing latest SourceBans from the Github
 
Sounds to me like the settings table isn't in your database.

Can you log into a panel and check?

Also, apparently tsunami has updated the repository to include for error checking on the installer.

404UserNotFound 09-04-2013 14:20

Re: Installing latest SourceBans from the Github
 
Quote:

Originally Posted by FlyingMongoose (Post 2028330)
Sounds to me like the settings table isn't in your database.

Can you log into a panel and check?

Also, apparently tsunami has updated the repository to include for error checking on the installer.

What am I looking for exactly? sb_settings?

DJ Tsunami 09-04-2013 15:13

Re: Installing latest SourceBans from the Github
 
Yes, most likely the installation failed and the tables don't exist. I added a basic alert to the installer today for when an error occurs, so at least you know something went wrong.

FlyingMongoose 09-04-2013 18:35

Re: Installing latest SourceBans from the Github
 
To doubly confirm Tsunami's statement, before this error checking occurred, there was an improperly formatted SQL file for the install (references to fields as null when those fields couldn't be null). I had to manually edit the install.sql until I got it to work (then submitted my changes to the github repository)

I was having the same issue as you.

404UserNotFound 09-04-2013 22:59

Re: Installing latest SourceBans from the Github
 
Everything seems to work now. Web panel finally got set up correctly, though I had to delete the original database (which I forgot to backup, so there go all the original bans I had submitted ages ago) in order to finalize the installation.

It was detecting that the sb_ databases already existed, so I'd drop them, hit finish again....and it would detect the databases again after it created them, thus stopping installation.

FlyingMongoose 09-04-2013 23:21

Re: Installing latest SourceBans from the Github
 
If you're working on the same db you probably should have used a different prefix.

But hind sight is 20/20 right?


All times are GMT -4. The time now is 06:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.