TDbException

Description

TDbConnection failed to establish DB connection: SQLSTATE[08006] [7] could not translate host name "nabsql01.northamericanbancard.com" to address: Name or service not known

Source File

/var/www/www2/html/landing/p314/framework/Data/TDbConnection.php (180)

0169:                 $this->_pdo=new PDO($this->getConnectionString(),$this->getUsername(),
0170:                                     $this->getPassword(),$this->_attributes);
0171:                 // This attribute is only useful for PDO::MySql driver. 
0172:                 // Ignore the warning if a driver doesn't understand this.
0173:                 @$this->_pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
0174:                 $this->_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
0175:                 $this->_active=true;
0176:                 $this->setConnectionCharset();
0177:             }
0178:             catch(PDOException $e)
0179:             {
0180: throw new TDbException('dbconnection_open_failed',$e->getMessage());
0181: } 0182: } 0183: } 0184: 0185: /** 0186: * Closes the currently active DB connection. 0187: * It does nothing if the connection is already closed. 0188: */ 0189: protected function close() 0190: { 0191: $this->_pdo=null; 0192: $this->_active=false;

Stack Trace

#0 /var/www/www2/html/landing/p314/framework/Data/TDbConnection.php(153): TDbConnection->open()
#1 /var/www/www2/html/landing/protected/common/DB_NAB_prod.php(10): TDbConnection->setActive(true)
#2 /var/www/www2/html/landing/protected/common/STemplate.php(222): DB_NAB->__construct()
#3 /var/www/www2/html/landing/p314/framework/PradoBase.php(242): STemplate->__construct()
#4 /var/www/www2/html/landing/p314/framework/Web/UI/TTemplateControl.php(228): PradoBase::createComponent('Application.lay...')
#5 /var/www/www2/html/landing/p314/framework/Web/UI/TPage.php(202): TTemplateControl->initRecursive()
#6 /var/www/www2/html/landing/p314/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#7 /var/www/www2/html/landing/p314/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#8 /var/www/www2/html/landing/p314/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#9 /var/www/www2/html/landing/p314/framework/TApplication.php(1095): TPageService->run()
#10 /var/www/www2/html/landing/p314/framework/TApplication.php(382): TApplication->runService()
#11 /var/www/www2/html/landing/index.php(40): TApplication->run()
#12 {main}
2019-06-18 07:05 Apache/2.4.7 (Ubuntu) PRADO/3.1.4