/local/www/club.orsk.ru/yii/db/CDbCommand.php(354)
342 return $n; 343 } 344 catch(Exception $e) 345 { 346 if($this->_connection->enableProfiling) 347 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().')','system.db.CDbCommand.execute'); 348 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 349 $message = $e->getMessage(); 350 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 351 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 352 if(YII_DEBUG) 353 $message .= '. The SQL statement executed was: '.$this->getText().$par; 354 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 355 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 356 } 357 } 358 359 /** 360 * Executes the SQL statement and returns query result. 361 * This method is for executing an SQL query that returns result set. 362 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 363 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 364 * them in this way can improve the performance. Note that if you pass parameters in this way, 365 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 366 * binding methods and the input parameters this way can improve the performance.
#0 |
+
–
/local/www/club.orsk.ru/protected/modules/buildingRepair/controllers/CatalogController.php(37): CDbCommand->execute() 32 Yii::app()->db->createCommand('insert into {{br_catalog_hits}} (`id_catalog`, date) values (' . $id . ', "' . $d . '") ')->execute(); 33 $hitss = 1; 34 } else { 35 $hitss = $ch->hits + 1; 36 } 37 Yii::app()->db->createCommand('UPDATE {{br_catalog_hits}} SET hits=hits+1 WHERE `date`="' . $d . '" and id_catalog=' . $model->id)->execute(); 38 // echo '<div style="display: none">'. $_SERVER['DOCUMENT_ROOT'].'</div>'; 39 /*$fp1 = fopen($_SERVER['DOCUMENT_ROOT'] . "/uploads/logsRB/log.txt", "a"); 40 $arr1 = array('id' => $id, 'date' => date('d.m.Y', time()), 'hits' => $hitss); 41 $test = fwrite($fp1, json_encode($arr1) . ';'); 42 fclose($fp1);*/ |
#1 |
unknown(0): CatalogController->actionView("1142")
|
#2 |
+
–
/local/www/club.orsk.ru/yii/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(CatalogController, array("1142")) 102 else if($param->isDefaultValueAvailable()) 103 $ps[]=$param->getDefaultValue(); 104 else 105 return false; 106 } 107 $method->invokeArgs($object,$ps); 108 return true; 109 } 110 } |
#3 |
+
–
/local/www/club.orsk.ru/yii/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(CatalogController, ReflectionMethod, array("r" => "buildingRepair/catalog/view", "id" => "1142", "catid" => "7")) 43 { 44 $methodName='action'.$this->getId(); 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#4 |
+
–
/local/www/club.orsk.ru/yii/web/CController.php(309): CInlineAction->runWithParams(array("r" => "buildingRepair/catalog/view", "id" => "1142", "catid" => "7")) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#5 |
+
–
/local/www/club.orsk.ru/yii/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#6 |
+
–
/local/www/club.orsk.ru/yii/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#7 |
+
–
/local/www/club.orsk.ru/yii/web/CWebApplication.php(276): CController->run("view") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/local/www/club.orsk.ru/yii/web/CWebApplication.php(135): CWebApplication->runController("buildingRepair/catalog/view") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/local/www/club.orsk.ru/yii/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 /** |
#10 |
+
–
/local/www/club.orsk.ru/index.php(24): CApplication->run() 19 define('YII_DEBUG',true); 20 // specify how many levels of call stack should be shown in each log message 21 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 22 require_once 'Mobile_Detect.php'; 23 require_once($yii); 24 Yii::createWebApplication($config)->run(); |