Cafe Bản Sonate - Location.vzoneglobal

CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1045] Access denied for user 'chiasedidiem_sql'@'127.0.0.1' (using password: YES)

/HDDold/www/chiasediadiem.net/common/lib/Yii/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 /**

Stack Trace

#0 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/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 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/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 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/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 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/base/CApplication.php(450): CModule->getComponent("db") 445 * Returns the database connection component. 446 * @return CDbConnection the database connection 447 */ 448 public function getDb() 449 { 450 return $this->getComponent('db'); 451 } 452 453 /** 454 * Returns the error handler component. 455 * @return CErrorHandler the error handler application component.
#4 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/db/ar/CActiveRecord.php(634): CApplication->getDb() 629 { 630 if(self::$db!==null) 631 return self::$db; 632 else 633 { 634 self::$db=Yii::app()->getDb(); 635 if(self::$db instanceof CDbConnection) 636 return self::$db; 637 else 638 throw new CDbException(Yii::t('yii','Active Record requires a "db" CDbConnection application component.')); 639 }
#5 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/db/ar/CActiveRecord.php(1428): CActiveRecord->getDbConnection() 1423 { 1424 if($checkScopes && ($criteria=$this->getDbCriteria(false))!==null && $criteria->alias!='') 1425 $alias=$criteria->alias; 1426 else 1427 $alias=$this->_alias; 1428 return $quote ? $this->getDbConnection()->getSchema()->quoteTableName($alias) : $alias; 1429 } 1430 1431 /** 1432 * Sets the table alias to be used in queries. 1433 * @param string $alias the table alias to be used in queries. The alias should NOT be quoted.
#6 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/db/ar/CActiveRecord.php(1484): CActiveRecord->getTableAlias(true) 1479 * @return CActiveRecord the record found. Null if none is found. 1480 */ 1481 public function findByPk($pk,$condition='',$params=array()) 1482 { 1483 Yii::trace(get_class($this).'.findByPk()','system.db.ar.CActiveRecord'); 1484 $prefix=$this->getTableAlias(true).'.'; 1485 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); 1486 return $this->query($criteria); 1487 } 1488 1489 /**
#7 + – /HDDold/www/chiasediadiem.net/common/models/settings/SiteSettings.php(96): CActiveRecord->findByPk(1) 091 /** 092 * get site setting 093 * @return array site info 094 */ 095 public static function getSiteSettings() { 096 $site = self::model()->findByPk(self::SITE_ID); 097 if ($site) 098 return $site->attributes; 099 return array(); 100 } 101
#8 + – /HDDold/www/chiasediadiem.net/public/components/PublicController.php(40): SiteSettings::getSiteSettings() 35 /** 36 * default controller 37 * @var type 38 */ 39 public function init() { 40 $this->siteinfo = SiteSettings::getSiteSettings(); 41 $this->defaultProvince = LibProvinces::getDefaultProvince(); 42 if ($this->siteinfo['site_title'] != '') 43 $this->pageTitle = $this->siteinfo['site_title']; 44 if ($this->siteinfo['meta_keywords'] != '') 45 $this->metakeywords = $this->siteinfo['meta_keywords'];
#9 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/web/CWebApplication.php(281): PublicController->init() 276 if(($ca=$this->createController($route))!==null) 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
#10 + – /HDDold/www/chiasediadiem.net/common/components/WebApplication.php(33): CWebApplication->runController("location/location/detail") 28 * that Apache polls its processes to see if they're alive. This function causes 29 * Yii to respond without logging errors. 30 */ 31 public function runController($route) { 32 try { 33 parent::runController($route); 34 } catch (CHttpException $e) { 35 if (@$_SERVER['REQUEST_METHOD'] == 'OPTIONS' && @$_SERVER['REQUEST_URI'] == '*') { 36 Yii::app()->end('Hello, friend!'); 37 } else 38 throw $e;
#11 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/web/CWebApplication.php(141): WebApplication->runController("location/location/detail") 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. 146 * This method overrides the parent implementation by registering additional core components.
#12 + – /HDDold/www/chiasediadiem.net/common/lib/Yii/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 /**
#13 + – /HDDold/www/chiasediadiem.net/public/www/index.php(34): CApplication->run() 29 require_once('common/lib/Yii/yii.php'); 30 require_once('common/components/WebApplication.php'); 31 require_once('common/lib/global.php'); 32 33 $app = Yii::createApplication('WebApplication', require('public/config/main.php')); 34 $app->run();
2024-12-28 05:59:45 Apache Yii Framework/1.1.15

Từ khóa » Cafe Bản Sonate