View Single Post
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