CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No route to host

/www/webfam.com.ar/htdocs/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

#7
+
 /www/webfam.com.ar/htdocs/sitio_nuevo/protected/modules/frontend/controllers/ResultadosController.php(31): CActiveRecord->findAll(CDbCriteria)
26         $criteria = new CDbCriteria();
27         $criteria->condition = 'id_calendario = :idcal';
28         $criteria->params = array(':idcal'=>$id);
29         $criteria->order = 'disciplina_discal ASC';
30 
31         $disciplinas = DisciplinasCalendario::model()->findAll($criteria);
32 
33         $evento = Calendario::model()->findByPk($id);
34 
35         $this->render('interna', array('disciplinas'=>$disciplinas, 'evento'=>$evento));
36     }
#17
+
 /www/webfam.com.ar/htdocs/sitio_nuevo/index.php(15): CApplication->run()
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 
15 Yii::createWebApplication($config)->run();
2024-03-28 07:18:02 Apache Yii Framework/1.1.14