TPhpErrorException

Description

[Warning] Bd::__construct(): Couldn't fetch Bd (@line 39 in file /var/www/html/protected/AppCode/Bd.php).

Source File

/var/www/html/protected/AppCode/Bd.php (39)

0028:                 $this->baseDatos = "prometeo";
0029:                 $this->usuario   = "adminliventus";
0030:                 $this->clave     = "96kU9gB1WMj6p3ABRpqk";
0031:                 $this->servidor  = "db-app-tecnica-v2.czbmux5uf0ng.us-east-1.rds.amazonaws.com";
0032:                 $this->puerto    = "3306";
0033:         
0034: 
0035: 
0036:         @parent::__construct($this->servidor, $this->usuario, $this->clave, "",
0037:             (isset($this->puerto))?$this->puerto:"3306");
0038:         if ($this->connect_errno != 0) {
0039: throw new Exception($this->error, $this->errno);
0040: } 0041: } 0042: 0043: private static function get($origenDatos) { 0044: $bd = new Bd($origenDatos); 0045: $bd->select_db($bd->baseDatos); 0046: $bd->query("SET NAMES 'utf8'"); 0047: 0048: return $bd; 0049: } 0050: 0051: /**

Stack Trace

#0 /var/www/html/protected/AppCode/Bd.php(39): PradoBase::phpErrorHandler(2, 'Bd::__construct...', '/var/www/html/p...', 39, Array)
#1 /var/www/html/protected/AppCode/Bd.php(44): Bd->__construct(0)
#2 /var/www/html/protected/AppCode/Bd.php(60): Bd::get(0)
#3 /var/www/html/protected/Dal/SettingsDAL.php(74): Bd::exec('SELECT\n\t\t\tkkey,...')
#4 /var/www/html/protected/Negocio/SettingsBLL.php(31): SettingsDAL::obtenerPorId('EMAIL_EXCEPTION')
#5 /var/www/html/protected/AppCode/Email.php(31): SettingsBLL::obtenerPorId('EMAIL_EXCEPTION')
#6 /var/www/html/protected/AppCode/Util.php(661): Email->iniciar()
#7 /var/www/html/protected/Pages/Home.php(31): Util::error(Object(Exception), Object(Home))
#8 /var/www/prado/framework/Web/UI/TControl.php(1295): Home->onLoad(NULL)
#9 /var/www/prado/framework/Web/UI/TPage.php(222): TControl->loadRecursive()
#10 /var/www/prado/framework/Web/UI/TPage.php(203): TPage->processNormalRequest(Object(THtmlWriter))
#11 /var/www/prado/framework/Web/Services/TPageService.php(524): TPage->run(Object(THtmlWriter))
#12 /var/www/prado/framework/Web/Services/TPageService.php(470): TPageService->runPage(Object(Home), Array)
#13 /var/www/prado/framework/TApplication.php(1189): TPageService->run()
#14 /var/www/prado/framework/TApplication.php(406): TApplication->runService()
#15 /var/www/html/index.php(26): TApplication->run()
#16 {main}
2024-06-25 00:13 Apache/2.4.6 (CentOS) PHP/5.4.45 mod_jk/1.2.42 PRADO/3.2.1