Raised This Month: $404 Target: $400
 101% 

SourceBans 2.0 Alpha (2013/09/04)


Post New Thread Reply   
 
Thread Tools Display Modes
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 07-14-2013 , 16:56   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #101

Just throwing this out there, but have you considered renaming this project to something more accurate? This has developed into something much more than just bans so it might do well to have a more appropriate name.
__________________
11530 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 07-14-2013 , 18:10   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #102

I have, but I'm not that good at coming up with catchy names. Suggestions are welcome. Also, SourceBans is an established name, so to throw that away and start over would need to be a well-considered decision.
__________________
DJ Tsunami is offline
Evil_Joker
Junior Member
Join Date: May 2012
Location: Germany
Old 07-15-2013 , 14:54   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #103

I have this problem

/usr/www/users/Evil/framework/YiiBase.php(193)
{
182 if(is_string($config))
183 {
184 $type=$config;
185 $config=array();
186 }
187 elseif(isset($config['class']))
188 {
189 $type=$config['class'];
190 unset($config['class']);
191 }
192 else
193 throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.'));
194
195 if(!class_exists($type,false))
196 $type=Yii::import($type,true);
197
198 if(($n=func_num_args())>1)
199 {
200 $args=func_get_args();
201 if($n===2)
202 $object=new $type($args[1]);
203 elseif($n===3)
204 $object=new $type($args[1],$args[2]);
205 elseif($n===4)

/usr/www/users/Evil/index.php(16): YiiBase::createWebApplication("/usr/www/users/kd11856/application/config/web.php")
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();


Can not install
Evil_Joker is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 07-15-2013 , 16:55   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #104

Please use the power of the code tags:

PHP Code:
[code
Rytis is offline
braak0327
AlliedModders Donor
Join Date: Dec 2012
Location: NORT....SOUTH KOREA
Old 07-16-2013 , 06:41   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #105

PHP warning

include(PDO.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

D:\Web\htdocs\sourcebans\framework\YiiBase.ph p(421)

409 {
410 include($classFile);
411 if(YII_DEBUG && basename(realpath($classFile))!==$className.' .php')
412 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
413 '{class}'=>$className,
414 '{file}'=>$classFile,
415 )));
416 break;
417 }
418 }
419 }
420 else
+++this line have a red color+++ 421 include($className.'.php');
422 }
423 else // class name with namespace in PHP 5.3
424 {
425 $namespace=str_replace('\\','.',ltrim($classN ame,'\\'));
426 if(($path=self::getPathOfAlias($namespace))!= =false)
427 include($path.'.php');
428 else
429 return false;
430 }
431 return class_exists($className,false) || interface_exists($className,false);
432 }
433 return true;
Stack Trace
#0
+ D:\Web\htdocs\sourcebans\framework\YiiBase.ph p(421): YiiBase::autoload()
#1
unknown(0): YiiBase::autoload("PDO")
#2
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(422): spl_autoload_call("PDO")
#3
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(373): CDbConnection->createPdoInstance()
#4
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(330): CDbConnection->open()
#5
+ D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php(469): CDbConnection->setActive(true)
#6
+ D:\Web\htdocs\sourcebans\framework\db\schema\ mysql\CMysqlSchema.php(159): CDbConnection->createCommand("SHOW FULL COLUMNS FROM `sb_settings`")
#7
+ D:\Web\htdocs\sourcebans\framework\db\schema\ mysql\CMysqlSchema.php(119): CMysqlSchema->findColumns(CMysqlTableSchema)
#8
+ D:\Web\htdocs\sourcebans\framework\db\schema\ CDbSchema.php(96): CMysqlSchema->loadTable("sb_settings")
#9
+ D:\Web\htdocs\sourcebans\framework\db\ar\CAct iveRecord.php(2309): CDbSchema->getTable("{{settings}}")
#10
+ D:\Web\htdocs\sourcebans\framework\db\ar\CAct iveRecord.php(387): CActiveRecordMetaData->__construct(SBSetting)
#11
– D:\Web\htdocs\sourcebans\application\models\S BSetting.php(32): CActiveRecord::model("SBSetting")
27 * @param string $className active record class name.
28 * @return SBSetting the static model class
29 */
30 public static function model($className=__CLASS__)
31 {
32 return parent::model($className);
33 }
34
35 /**
36 * @return string the associated database table name
37 */
#12
– D:\Web\htdocs\sourcebans\application\componen ts\SourceBans.php(159): SBSetting::model()
154 public function getSettings()
155 {
156 static $_data;
157 if(!isset($_data))
158 {
159 $_data = (object)CHtml::listData(SBSetting::model()->findAll(), 'name', 'value');
160 }
161
162 return $_data;
163 }
164
#13
+ D:\Web\htdocs\sourcebans\framework\base\CComp onent.php(111): SourceBans->getSettings()
#14
– D:\Web\htdocs\sourcebans\application\componen ts\SourceBans.php(257): CComponent->__get("settings")
252 throw new CHttpException(403, 'Please delete the /install folder.');
253
254 // Set timezone
255 if(!Yii::app()->user->isGuest && !empty(Yii::app()->user->data->timezone))
256 date_default_timezone_set(Yii::app()->user->data->timezone);
257 else if(!empty(SourceBans::app()->settings->timezone))
258 date_default_timezone_set(SourceBans::app()->settings->timezone);
259 else
260 date_default_timezone_set('Europe/London');
261
262 // Set date/time format
#15
unknown(0): SourceBans:nBeginRequest(CEvent)
#16
– D:\Web\htdocs\sourcebans\framework\base\CComp onent.php(556): call_user_func(array("SourceBans", "onBeginRequest"), CEvent)
551 if(is_array($handler))
552 {
553 // an array: 0 - object, 1 - method name
554 list($object,$method)=$handler;
555 if(is_string($object)) // static method call
556 call_user_func($handler,$event);
557 elseif(method_exists($object,$method))
558 $object->$method($event);
559 else
560 throw new CException(Yii::t('yii','Event "{class}.{event}" is attached with an invalid handler "{handler}".',
561 array('{class}'=>get_class($this), '{event}'=>$name, '{handler}'=>$handler[1])));
#17
+ D:\Web\htdocs\sourcebans\framework\base\CAppl ication.php(196): CComponent->raiseEvent("onBeginRequest", CEvent)
#18
+ D:\Web\htdocs\sourcebans\framework\base\CAppl ication.php(167): CApplication->onBeginRequest(CEvent)
#19
+ D:\Web\htdocs\sourcebans\index.php(16): CApplication->run()
2013-07-16 19:287 Apache Yii Framework/1.1.13

Fatal error: Class 'PDO' not found in D:\Web\htdocs\sourcebans\framework\db\CDbConn ection.php on line 422

why...why!
__________________
I'M KIMCHI

Last edited by braak0327; 07-16-2013 at 06:42.
braak0327 is offline
Send a message via Skype™ to braak0327
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 07-16-2013 , 06:49   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #106

Quote:
PDO ships with PHP 5.1, and is available as a PECL extension for PHP 5.0; PDO requires the new OO features in the core of PHP 5, and so will not run with earlier versions of PHP.
If you are running a newer version of PHP, ask your webhost why there's no PDO.
__________________

Last edited by DJ Tsunami; 07-16-2013 at 06:50.
DJ Tsunami is offline
Evil_Joker
Junior Member
Join Date: May 2012
Location: Germany
Old 07-19-2013 , 19:52   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #107

This is not running

Yii::createWebApplication($config)->run();
Evil_Joker is offline
Mata Patos
Senior Member
Join Date: Jul 2011
Old 07-24-2013 , 15:01   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #108

Hello,

I tried to install this version but without success.
In the install page filled all the fields and the end said full installation complete please delete the install folder.
Sending the file logs attached.
Attached Files
File Type: txt error_log.txt.txt (46.7 KB, 111 views)

Last edited by Mata Patos; 07-24-2013 at 15:03.
Mata Patos is offline
Dazzuh
Junior Member
Join Date: Aug 2012
Old 07-24-2013 , 15:40   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #109

Okay, having a weird problem with installed on nginx. (Recently changed from apache which it worked fine on)
Basically the index loads fine; http://i.imgur.com/8AAQnUh.png
Though if I click any other button on the page, I'm taken to this.

http://i.imgur.com/ghsFA9Y.png

Which is just a messed up version of my /index.php

Last edited by Dazzuh; 07-24-2013 at 15:40.
Dazzuh is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 07-24-2013 , 15:56   Re: SourceBans 2.0 Public Preview (2013/07/01)
Reply With Quote #110

There was some discussion on how to get it to work with Nginx on page 8 and 9. There's also a sample host configuration on the Yii framework website.
__________________

Last edited by DJ Tsunami; 07-24-2013 at 15:56.
DJ Tsunami is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode