/var/www/web/sites/193.107.237.32/Yii/current/db/CDbCommand.php(357)
345 { 346 if($this->_connection->enableProfiling) 347 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 348 349 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 350 $message=$e->getMessage(); 351 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 352 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 353 354 if(YII_DEBUG) 355 $message.='. The SQL statement executed was: '.$this->getText().$par; 356 357 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 358 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 359 } 360 } 361 362 /** 363 * Executes the SQL statement and returns query result. 364 * This method is for executing an SQL query that returns result set. 365 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 366 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 367 * them in this way can improve the performance. Note that if you pass parameters in this way, 368 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 369 * Please also note that all values are treated as strings in this case, if you need them to be handled as
#0 |
+
–
/var/www/web/sites/193.107.237.32/protected/modules/itexcms/extensions/iCDbLogRoute.php(29): CDbCommand->execute() 24 category VARCHAR(128), 25 user_name VARCHAR(128), 26 logtime INTEGER, 27 message TEXT 28 ) ENGINE=InnoDB DEFAULT CHARSET=utf8"; 29 $db->createCommand($sql)->execute(); 30 31 } 32 33 protected function processLogs($logs) 34 { |
#1 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/logging/CDbLogRoute.php(78): iCDbLogRoute->createLogTable(CDbConnection, "tbl_log") 73 { 74 $db->createCommand()->delete($this->logTableName,'0=1'); 75 } 76 catch(Exception $e) 77 { 78 $this->createLogTable($db,$this->logTableName); 79 } 80 } 81 } 82 83 /** |
#2 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/logging/CLogRouter.php(66): CDbLogRoute->init() 61 { 62 parent::init(); 63 foreach($this->_routes as $name=>$route) 64 { 65 $route=Yii::createComponent($route); 66 $route->init(); 67 $this->_routes[$name]=$route; 68 } 69 Yii::getLogger()->attachEventHandler('onFlush',array($this,'collectLogs')); 70 Yii::app()->attachEventHandler('onEndRequest',array($this,'processLogs')); 71 } |
#3 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CModule.php(387): CLogRouter->init() 382 if(!isset($config['enabled']) || $config['enabled']) 383 { 384 Yii::trace("Loading \"$id\" application component",'system.CModule'); 385 unset($config['enabled']); 386 $component=Yii::createComponent($config); 387 $component->init(); 388 return $this->_components[$id]=$component; 389 } 390 } 391 } 392 |
#4 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CModule.php(523): CModule->getComponent("log") 518 * Loads static application components. 519 */ 520 protected function preloadComponents() 521 { 522 foreach($this->preload as $id) 523 $this->getComponent($id); 524 } 525 526 /** 527 * Preinitializes the module. 528 * This method is called at the beginning of the module constructor. |
#5 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/base/CApplication.php(152): CModule->preloadComponents() 147 $this->initSystemHandlers(); 148 $this->registerCoreComponents(); 149 150 $this->configure($config); 151 $this->attachBehaviors($this->behaviors); 152 $this->preloadComponents(); 153 154 $this->init(); 155 } 156 157 |
#6 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/YiiBase.php(125): CApplication->__construct("/var/www/web/sites/193.107.237.32/protected/config/main.php") 120 * to the constructor of the application class. 121 * @return mixed the application instance 122 */ 123 public static function createApplication($class,$config=null) 124 { 125 return new $class($config); 126 } 127 128 /** 129 * Returns the application singleton or null if the singleton has not been created yet. 130 * @return CApplication the application singleton, null if the singleton has not been created yet. |
#7 |
+
–
/var/www/web/sites/193.107.237.32/Yii/current/YiiBase.php(98): YiiBase::createApplication("CWebApplication", "/var/www/web/sites/193.107.237.32/protected/config/main.php") 093 * If not, the directory will be defaulted to 'protected'. 094 * @return CWebApplication 095 */ 096 public static function createWebApplication($config=null) 097 { 098 return self::createApplication('CWebApplication',$config); 099 } 100 101 /** 102 * Creates a console application instance. 103 * @param mixed $config application configuration. |
#8 |
+
–
/var/www/web/sites/193.107.237.32/index.php(23): YiiBase::createWebApplication("/var/www/web/sites/193.107.237.32/protected/config/main.php") 18 } 19 20 require_once 'Yii/current/YiiBase.php'; 21 require_once 'protected/yii.php'; 22 23 Yii::createWebApplication($config)->run(); |