CDbException

CDbException

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

/home/defaultwebsite/public/extranet/yii/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

#7
+
 /home/defaultwebsite/public/extranet/protected/extensions/giix-components/GxActiveRecord.php(27): CActiveRecord::model()
22      */
23     public static $pkSeparator = '-';
24     public $beforeSaveExecuted = 0;
25 
26     public static function model($className=__CLASS__) {
27         return parent::model($className);
28     }
29 
30     public function afterFind(){
31         return parent::afterFind();
32     }
#8
+
 /home/defaultwebsite/public/extranet/protected/models/_base/BasePatrocinadorCategoria.php(25): GxActiveRecord::model()
20 abstract class BasePatrocinadorCategoria extends GxActiveRecord {
21     
22     
23         
24     public static function model($className=__CLASS__) {
25         return parent::model($className);
26     }
27 
28     public function tableName() {
29         return 'patrocinador_categoria';
30     }
#9
+
 /home/defaultwebsite/public/extranet/protected/models/PatrocinadorCategoria.php(8): BasePatrocinadorCategoria::model()
03 Yii::import('application.models._base.BasePatrocinadorCategoria');
04 
05 class PatrocinadorCategoria extends BasePatrocinadorCategoria
06 {
07     public static function model($className=__CLASS__) {
08         return parent::model($className);
09     }
10     
11     
12     public function init(){
13   
2026-07-15 20:50:40 Apache Yii Framework/1.1.13