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(71): CActiveRecord->find(CDbCriteria)
66         if ($link === null)
67             $this->redirect('');
68         $criteria = new CDbCriteria();
69         $criteria->addCondition('link = :l');
70         $criteria->params = array(':l' => $link);
71         $model = $class_model->find($criteria);
72         if (isset($model))
73             $this->setSEOParams($model->title, $model->keywords, $model->description);
74         else
75             throw new CHttpException(404, 'Страница не найдена');
76         return $model;
#8
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/protected/controllers/CatalogueController.php(58): LayoutController->findByLink(Product, "reve--keramicheskaja-stoleshnica-120-sm")
53             'filterView'));
54     }
55 
56     public function actionProduct($link)
57     {
58         $product = $this->findByLink(Product::model(), $link);
59         $orderForm = new OrderForm();
60         if(isset($_POST['OrderForm']))
61         {
62             $orderForm->setAttributes($_POST['OrderForm']);
63             $this->sessionAdd('vars',$orderForm->getVarIds());
#18
+
 /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 09:21:45 Apache/2.2.17 (Unix) PHP/5.4.45 Yii Framework/1.1.14