/home/agenciaf/public_html/oivende/merchan_v2/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/oivende/merchan_v2/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/oivende/merchan_v2/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/oivende/merchan_v2/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/oivende/merchan_v2/framework/caching/CDbCache.php(153): CModule->getComponent("db") 148 { 149 if($this->_db!==null) 150 return $this->_db; 151 else if(($id=$this->connectionID)!==null) 152 { 153 if(($this->_db=Yii::app()->getComponent($id)) instanceof CDbConnection) 154 return $this->_db; 155 else 156 throw new CException(Yii::t('yii','CDbCache.connectionID "{id}" is invalid. Please make sure it refers to the ID of a CDbConnection application component.', 157 array('{id}'=>$id))); 158 } |
#4 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/caching/CDbCache.php(78): CDbCache->getDbConnection() 73 */ 74 public function init() 75 { 76 parent::init(); 77 78 $db=$this->getDbConnection(); 79 $db->setActive(true); 80 if($this->autoCreateCacheTable) 81 { 82 $sql="DELETE FROM {$this->cacheTableName} WHERE expire>0 AND expire<".time(); 83 try |
#5 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/base/CModule.php(388): CDbCache->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 |
#6 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/web/CUrlManager.php(217): CModule->getComponent("cache") 212 */ 213 protected function processRules() 214 { 215 if(empty($this->rules) || $this->getUrlFormat()===self::GET_FORMAT) 216 return; 217 if($this->cacheID!==false && ($cache=Yii::app()->getComponent($this->cacheID))!==null) 218 { 219 $hash=md5(serialize($this->rules)); 220 if(($data=$cache->get(self::CACHE_KEY))!==false && isset($data[1]) && $data[1]===$hash) 221 { 222 $this->_rules=$data[0]; |
#7 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/web/CUrlManager.php(207): CUrlManager->processRules() 202 * Initializes the application component. 203 */ 204 public function init() 205 { 206 parent::init(); 207 $this->processRules(); 208 } 209 210 /** 211 * Processes the URL rules. 212 */ |
#8 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/base/CModule.php(388): CUrlManager->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 |
#9 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/base/CApplication.php(503): CModule->getComponent("urlManager") 498 * Returns the URL manager component. 499 * @return CUrlManager the URL manager component 500 */ 501 public function getUrlManager() 502 { 503 return $this->getComponent('urlManager'); 504 } 505 506 /** 507 * @return CController the currently active controller. Null is returned in this base class. 508 * @since 1.1.8 |
#10 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/web/CWebApplication.php(135): CApplication->getUrlManager() 130 $route=$this->catchAllRequest[0]; 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. |
#11 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#12 |
+
–
/home/agenciaf/public_html/oivende/merchan_v2/index.php(15): CApplication->run() 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 11 12 ini_set('memory_limit', '1024M'); 13 14 require_once($yii); 15 Yii::createWebApplication($config)->run(); |