CDbException

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

/var/www/vhosts/vsaunu.com/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
+
 /var/www/vhosts/vsaunu.com/protected/models/City.php(43): CActiveRecord::model("City")
38      * @param string $className active record class name.
39      * @return City the static model class
40      */
41     public static function model($className=__CLASS__)
42     {
43         return parent::model($className);
44     }
45 
46     /**
47      * @return string the associated database table name
48      */
#8
+
 /var/www/vhosts/vsaunu.com/protected/components/CheckCity.php(22): City::model()
17         $session->open();
18 
19         if (empty($pathInfo[0]))
20             $pathInfo[0] = 'moscow';
21 
22         $city = City::model()->find(array(
23             'condition' => 'name = LOWER(:city) OR alias = LOWER(:city)',
24             'params' => array('city' => mb_strtolower($pathInfo[0], 'UTF-8')),
25         ));
26 
27         if (!$city)
#10
+
 /var/www/vhosts/vsaunu.com/protected/components/UrlManager.php(76): CUrlManager->parseUrl(CHttpRequest)
71             return $secureRoute ? $this->secureHostInfo . $url : $url;
72     }
73 
74     public function parseUrl($request)
75     {
76         $route = parent::parseUrl($request);
77 
78         if(strpos($route, "min/serve") !== false)
79             return $route;
80 
81         // для перенаправления на мобилы
2024-03-19 07:59:10 nginx/1.15.5 Yii Framework/1.1.12