CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [1275] Server is running in --secure-auth mode, but 'diaesportivo1'@'187.45.240.106' has a password in the old format; please change the password to the new format

/home/storage/e/91/08/diaesportivo/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/storage/e/91/08/diaesportivo/public_html/heulerandrey/protected/controllers/front/SiteController.php(105): CActiveRecord->findAllBySql("SELECT * FROM cobertura WHERE data >= '2024-03-18'")
100 
101     public function carregaCobertura() {
102 
103         $today = date("Y-m-d");
104 //print_r($today);
105         $cobertura = cobertura::model()->findAllBySql("SELECT * FROM cobertura WHERE data >= '$today'");
106 
107 
108         $contaCobertura = count($cobertura);
109         $arrayRetorno = array();
110 
#8
+
 /home/storage/e/91/08/diaesportivo/public_html/heulerandrey/protected/views/front/site/cobertura.php(12): SiteController->carregaCobertura()
07 
08 echo '
09 <h1>Coberturas</h1>
10 <script src="http://'.$endmaps.'/maps?file=api&amp;v=2&amp;key='.$geokey.'" type="text/javascript"></script>
11 ';
12 $varcobertura = $this->carregaCobertura();
13 $cobertura = CJSON::encode($varcobertura);
14 
15 /*
16 echo '<pre>';
17 print_r($varcobertura);
#13
+
 /home/storage/e/91/08/diaesportivo/public_html/heulerandrey/protected/controllers/front/SiteController.php(71): CController->render("cobertura")
66         $this->render('clipping',array(
67                 'dataProvider'=>$dataProvider,
68         ));
69     }
70     public function actionCobertura() {
71         $this->render('cobertura');
72     }
73     public function actionPortfolio() {
74         $dataProvider=new CActiveDataProvider('album', array(
75                         'pagination'=>array(
76                                 'pageSize'=>12,
2024-03-18 23:06:03 Apache Yii Framework/1.1.14