/home/agenciaf/public_html/sistemas_oi_v3/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 /**
#0 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/db/CDbConnection.php(331): CDbConnection->open() 326 public function setActive($value) 327 { 328 if($value!=$this->_active) 329 { 330 if($value) 331 $this->open(); 332 else 333 $this->close(); 334 } 335 } 336 |
#1 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/db/CDbConnection.php(309): CDbConnection->setActive(true) 304 */ 305 public function init() 306 { 307 parent::init(); 308 if($this->autoConnect) 309 $this->setActive(true); 310 } 311 312 /** 313 * Returns whether the DB connection is established. 314 * @return boolean whether the DB connection is established |
#2 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/base/CModule.php(388): CDbConnection->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#3 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/logging/CDbLogRoute.php(122): CModule->getComponent("db") 117 { 118 if($this->_db!==null) 119 return $this->_db; 120 else if(($id=$this->connectionID)!==null) 121 { 122 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 123 return $this->_db; 124 else 125 throw new CException(Yii::t('yii','CDbLogRoute.connectionID "{id}" does not point to a valid CDbConnection application component.', 126 array('{id}'=>$id))); 127 } |
#4 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/logging/CDbLogRoute.php(72): CDbLogRoute->getDbConnection() 67 { 68 parent::init(); 69 70 if($this->autoCreateLogTable) 71 { 72 $db=$this->getDbConnection(); 73 $sql="DELETE FROM {$this->logTableName} WHERE 0=1"; 74 try 75 { 76 $db->createCommand($sql)->execute(); 77 } |
#5 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/logging/CLogRouter.php(67): CDbLogRoute->init() 62 { 63 parent::init(); 64 foreach($this->_routes as $name=>$route) 65 { 66 $route=Yii::createComponent($route); 67 $route->init(); 68 $this->_routes[$name]=$route; 69 } 70 Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs')); 71 Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs')); 72 } |
#6 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/base/CModule.php(388): CLogRouter->init() 383 if(!isset($config['enabled']) || $config['enabled']) 384 { 385 Yii::trace("Loading \"$id\" application component",'system.CModule'); 386 unset($config['enabled']); 387 $component=Yii::createComponent($config); 388 $component->init(); 389 return $this->_components[$id]=$component; 390 } 391 } 392 } 393 |
#7 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/base/CModule.php(493): CModule->getComponent("log") 488 * Loads static application components. 489 */ 490 protected function preloadComponents() 491 { 492 foreach($this->preload as $id) 493 $this->getComponent($id); 494 } 495 496 /** 497 * Preinitializes the module. 498 * This method is called at the beginning of the module constructor. |
#8 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/base/CApplication.php(146): CModule->preloadComponents() 141 $this->initSystemHandlers(); 142 $this->registerCoreComponents(); 143 144 $this->configure($config); 145 $this->attachBehaviors($this->behaviors); 146 $this->preloadComponents(); 147 148 $this->init(); 149 } 150 151 |
#9 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/YiiBase.php(127): CApplication->__construct("/home/agenciaf/public_html/sistemas_oi_v3/protected/config/main....") 122 * to the constructor of the application class. 123 * @return mixed the application instance 124 */ 125 public static function createApplication($class,$config=null) 126 { 127 return new $class($config); 128 } 129 130 /** 131 * Returns the application singleton, null if the singleton has not been created yet. 132 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#10 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/framework/YiiBase.php(100): YiiBase::createApplication("CWebApplication", "/home/agenciaf/public_html/sistemas_oi_v3/protected/config/main....") 095 * If not, the directory will be defaulted to 'protected'. 096 * @return CWebApplication 097 */ 098 public static function createWebApplication($config=null) 099 { 100 return self::createApplication('CWebApplication',$config); 101 } 102 103 /** 104 * Creates a console application instance. 105 * @param mixed $config application configuration. |
#11 |
+
–
/home/agenciaf/public_html/sistemas_oi_v3/index.php(14): YiiBase::createWebApplication("/home/agenciaf/public_html/sistemas_oi_v3/protected/config/main....") 09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 10 11 ini_set('memory_limit', '1024M'); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |