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/views/front/site/index.php(2): CActiveRecord->findAllBySql("SELECT * FROM foto WHERE capa = 1 ORDER BY RAND() LIMIT 10")
1 <?php
2 $pegaFoto = foto::model()->findAllBySql('SELECT * FROM foto WHERE capa = 1 ORDER BY RAND() LIMIT 10');
3 
4 $contaFotos = count($pegaFoto);
5 /*
6 if ($contaFotos>0){
7 
#12
+
 /home/storage/e/91/08/diaesportivo/public_html/heulerandrey/protected/controllers/front/SiteController.php(29): CController->render("index")
24     /**
25      * This is the default 'index' action that is invoked
26      * when an action is not explicitly requested by users.
27      */
28     public function actionIndex() {
29         $this->render('index');
30     }
31     public function actionBiografia() {
32         $this->render('biografia');
33     }
34     public function actionServico() {
#20
+
 /home/storage/e/91/08/diaesportivo/public_html/heulerandrey/protected/components/WebApplicationEndBehavior.php(25): CApplication->run()
20         // Attach the changeModulePaths event handler
21         // and raise it.
22         $this->onModuleCreate = array($this, 'changeModulePaths');
23         $this->onModuleCreate(new CEvent($this->owner));
24  
25         $this->owner->run(); // Run application.
26     }
27  
28     // This event should be raised when CWebApplication
29     // or CWebModule instances are being initialized.
30     public function onModuleCreate($event)
2024-03-19 04:21:22 Apache Yii Framework/1.1.14