CDbException

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

/home/y/yarenat/0.7kzn.ru/public_html/newmap/framework/db/CDbConnection.php(381)

369                 throw new CDbException('CDbConnection.connectionString cannot be empty.');
370             try
371             {
372                 Yii::trace('Opening DB connection','system.db.CDbConnection');
373                 $this->_pdo=$this->createPdoInstance();
374                 $this->initConnection($this->_pdo);
375                 $this->_active=true;
376             }
377             catch(PDOException $e)
378             {
379                 if(YII_DEBUG)
380                 {
381                     throw new CDbException('CDbConnection failed to open the DB connection: '.
382                         $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
383                 }
384                 else
385                 {
386                     Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
387                     throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
388                 }
389             }
390         }
391     }
392 
393     /**

Stack Trace

#8
+
 /home/y/yarenat/0.7kzn.ru/public_html/newmap/protected/controllers/PolygonsController.php(173): CActiveDataProvider->__construct("Polygons", array("pagination" => array("pageSize" => 5000)))
168         $this->layout='//layouts/empty';
169 
170         $dataProvider=new CActiveDataProvider('Polygons', array(
171                 'pagination'=>array('pageSize' => 5000),
172             )
173         );
174         $this->render('index2',array(
175             'dataProvider'=>$dataProvider,
176             'isAdmin'=>Yii::app()->user->getName(),
177         ));
178     }
#21
+
 /home/y/yarenat/0.7kzn.ru/public_html/newmap/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 01:06:38 Apache/2.4.29 Yii Framework/1.1.13