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

#8
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/vendor/garando/yii-image-attachment/ImageAttachmentBehavior.php(226): CActiveRecord->getPrimaryKey()
221     }
222 
223 
224     private function getImageId()
225     {
226         $pk = $this->owner->getPrimaryKey();
227         if (is_array($pk)) {
228             return implode('_', $pk);
229         } else {
230             return $pk;
231         }
#9
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/vendor/garando/yii-image-attachment/ImageAttachmentBehavior.php(91): ImageAttachmentBehavior->getImageId()
86         parent::attach($owner);
87         if (!isset($this->versions['original']))
88             $this->versions['original'] = array();
89         if (!isset($this->versions['preview']))
90             $this->versions['preview'] = array('fit' => array($this->previewWidth, $this->previewHeight));
91         $this->_imageId = $this->getImageId();
92     }
93 
94     public function beforeDelete($event)
95     {
96         $this->removeImages();
#13
+
 /home/virtwww/w_jacobdelafon-inf-ua_ed658f1a/http/protected/models/gii/GiiCategoryCatalog.php(138): CActiveRecord::model("CategoryCatalog")
133      * @param string $className active record class name.
134      * @return CategoryCatalog the static model class
135      */
136     public static function model($className=__CLASS__)
137     {
138         return parent::model($className);
139     }
140 }
2024-03-19 11:09:42 Apache/2.2.17 (Unix) PHP/5.4.45 Yii Framework/1.1.14