/home/buathaicom/domains/buathai.com.vn/public_html/lib/db/CDbConnection.php(382)
370 throw new CDbException('CDbConnection.connectionString cannot be empty.'); 371 try 372 { 373 Yii::trace('Opening DB connection','system.db.CDbConnection'); 374 $this->_pdo=$this->createPdoInstance(); 375 $this->initConnection($this->_pdo); 376 $this->_active=true; 377 } 378 catch(PDOException $e) 379 { 380 if(YII_DEBUG) 381 { 382 throw new CDbException('CDbConnection failed to open the DB connection: '. 383 $e->getMessage(),(int)$e->getCode(),$e->errorInfo); 384 } 385 else 386 { 387 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException'); 388 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo); 389 } 390 } 391 } 392 } 393 394 /**
#0 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/db/CDbConnection.php(330): CDbConnection->open() 325 public function setActive($value) 326 { 327 if($value!=$this->_active) 328 { 329 if($value) 330 $this->open(); 331 else 332 $this->close(); 333 } 334 } 335 |
#1 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/db/CDbConnection.php(308): CDbConnection->setActive(true) 303 */ 304 public function init() 305 { 306 parent::init(); 307 if($this->autoConnect) 308 $this->setActive(true); 309 } 310 311 /** 312 * Returns whether the DB connection is established. 313 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/base/CModule.php(387): CDbConnection->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#3 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/caching/CDbCache.php(152): CModule->getComponent("db") 147 { 148 if($this->_db!==null) 149 return $this->_db; 150 elseif(($id=$this->connectionID)!==null) 151 { 152 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 153 return $this->_db; 154 else 155 throw new CException(Yii::t('yii','CDbCache.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 156 array('{id}'=>$id))); 157 } |
#4 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/caching/CDbCache.php(77): CDbCache->getDbConnection() 72 */ 73 public function init() 74 { 75 parent::init(); 76 77 $db=$this->getDbConnection(); 78 $db->setActive(true); 79 if($this->autoCreateCacheTable) 80 { 81 $sql="DELETE FROM {$this->cacheTableName} WHERE expire>0 AND expire<".time(); 82 try |
#5 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/base/CModule.php(387): CDbCache->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#6 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/web/CUrlManager.php(216): CModule->getComponent("cache") 211 */ 212 protected function processRules() 213 { 214 if(empty($this->rules) || $this->getUrlFormat()===self::GET_FORMAT) 215 return; 216 if($this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) 217 { 218 $hash=md5(serialize($this->rules)); 219 if(($data=$cache->get(self::CACHE_KEY))!==false && isset($data[1]) && $data[1]===$hash) 220 { 221 $this->_rules=$data[0]; |
#7 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/web/CUrlManager.php(206): CUrlManager->processRules() 201 * Initializes the application component. 202 */ 203 public function init() 204 { 205 parent::init(); 206 $this->processRules(); 207 } 208 209 /** 210 * Processes the URL rules. 211 */ |
#8 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/base/CModule.php(387): CUrlManager->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#9 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/base/CApplication.php(522): CModule->getComponent("urlManager") 517 * Returns the URL manager component. 518 * @return CUrlManager the URL manager component 519 */ 520 public function getUrlManager() 521 { 522 return $this->getComponent('urlManager'); 523 } 524 525 /** 526 * @return CController the currently active controller. Null is returned in this base class. 527 * @since 1.1.8 |
#10 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/web/CWebApplication.php(140): CApplication->getUrlManager() 135 $route=$this->catchAllRequest[0]; 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. |
#11 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/base/CApplication.php(180): CWebApplication->processRequest() 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 } 184 185 /** |
#12 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/protected/components/WebApplication.php(18): CApplication->run() 13 14 public function runEnd($name) { 15 $this->__name = $name; 16 $this->onRunEnd = array(&$this, 'changePath'); 17 $this->onRunEnd(new CEvent($this->owner)); 18 $this->owner->run(); 19 } 20 21 public function onRunEnd(CEvent $event) { 22 $this->raiseEvent('onRunEnd', $event); 23 } |
#13 |
unknown(0): WebApplication->runEnd("user")
|
#14 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/lib/base/CComponent.php(261): call_user_func_array(array(WebApplication, "runEnd"), array("user")) 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#15 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/index.php(10): CComponent->__call("runEnd", array("user")) 05 // remove the following lines when in production mode 06 defined('YII_DEBUG') or define('YII_DEBUG', true); 07 // specify how many levels of call stack should be shown in each log message 08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 09 require_once($yii); 10 Yii::createWebApplication($config)->runEnd('user'); 11 |
#16 |
+
–
/home/buathaicom/domains/buathai.com.vn/public_html/index.php(10): CWebApplication->runEnd("user") 05 // remove the following lines when in production mode 06 defined('YII_DEBUG') or define('YII_DEBUG', true); 07 // specify how many levels of call stack should be shown in each log message 08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 09 require_once($yii); 10 Yii::createWebApplication($config)->runEnd('user'); 11 |