CDbException

CDbConnection failed to open the DB connection: SQLSTATE[28000] [1045] Access denied for user 'gbua_jacobdel'@'195.234.4.60' (using password: YES)

/home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/vendor/yiisoft/yii/framework/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

#7
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/protected/components/LayoutController.php(44): CActiveRecord->findByPk(array("section" => "site", "key" => "cart"))
39     }
40 
41     public function getPageData($key)
42     {
43         $this->identifier = $key;
44         $page = StaticPage::model()->findByPk(array('section' => 'site', 'key' => $key));
45         if ($page) {
46             $this->setSEOParams($page->title, $page->keywords, $page->description);
47             return $page->getDataAttributes();
48         } else {
49             $this->setSEOParams();
#8
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/protected/controllers/CartController.php(38): LayoutController->getPageData("cart")
33 
34 
35 
36     public function actionIndex()
37     {
38         $data = $this->getPageData('cart');
39         $params = $this->getCartParams();
40         $criteria = self::getBaseCriteria();
41         $criteria->addInCondition('id',$params['products']);
42         $products = Product::model()->findAll($criteria);
43         $criteria = self::getBaseCriteria();
#16
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/www/index.php(19): CApplication->run()
14 
15 Yii::setPathOfAlias('vendor', '../vendor');
16 
17 require_once(dirname(__FILE__).'/../protected/components/Application.php');
18 
19 Yii::createApplication('Application',$config)->run();
2024-03-19 12:34:07 Apache/2.2.17 (Unix) PHP/5.4.45 Yii Framework/1.1.14