/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(8626)
8614 return $result; 8615 } 8616 catch(Exception $e) 8617 { 8618 if($this->_connection->enableProfiling) 8619 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 8620 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 8621 $message = $e->getMessage(); 8622 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 8623 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 8624 if(YII_DEBUG) 8625 $message .= '. The SQL statement executed was: '.$this->getText().$par; 8626 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 8627 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 8628 } 8629 } 8630 public function buildQuery($query) 8631 { 8632 $sql=isset($query['distinct']) && $query['distinct'] ? 'SELECT DISTINCT' : 'SELECT'; 8633 $sql.=' '.(isset($query['select']) ? $query['select'] : '*'); 8634 if(isset($query['from'])) 8635 $sql.="\nFROM ".$query['from']; 8636 else 8637 throw new CDbException(Yii::t('yii','The DB query must contain the "from" portion.')); 8638 if(isset($query['join']))
#0 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(8550): CDbCommand->queryInternal("fetchAll", array(2), array()) 8545 { 8546 return $this->queryInternal('',0,$params); 8547 } 8548 public function queryAll($fetchAssociative=true,$params=array()) 8549 { 8550 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 8551 } 8552 public function queryRow($fetchAssociative=true,$params=array()) 8553 { 8554 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 8555 } |
#1 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(7159): CDbCommand->queryAll() 7154 if(empty($criteria->with)) 7155 { 7156 if(!$all) 7157 $criteria->limit=1; 7158 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 7159 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 7160 } 7161 else 7162 { 7163 $finder=new CActiveFinder($this,$criteria->with); 7164 return $finder->query($criteria,$all); |
#2 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(7228): CActiveRecord->query(CDbCriteria, true) 7223 return $this->query($criteria); 7224 } 7225 public function findAll($condition='',$params=array()) 7226 { 7227 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 7228 return $this->query($criteria,true); 7229 } 7230 public function findByPk($pk,$condition='',$params=array()) 7231 { 7232 $prefix=$this->getTableAlias(true).'.'; 7233 $criteria=$this->getCommandBuilder()->createPkCriteria($this->getTableSchema(),$pk,$condition,$params,$prefix); |
#3 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/protected/controllers/frontend/ConversationsController.php(43): CActiveRecord->findAll(CDbCriteria) 38 $u=Yii::app()->user->getId(); 39 $t=$id; 40 $criteria= new CDbCriteria; 41 $criteria->condition="(`user1`={$u} AND `user2`={$t})OR(`user1`={$t} AND `user2`={$u})"; 42 43 $d=Conversation::model()->findAll($criteria); 44 if (isset($d[0])){ 45 $this->redirect("/conversations/{$d[0]->id}"); 46 }else{ 47 $c=new Conversation; 48 $c->user1=$u; |
#4 |
unknown(0): ConversationsController->actionNew("480")
|
#5 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3701): ReflectionMethod->invokeArgs(ConversationsController, array("480")) 3696 else if($param->isDefaultValueAvailable()) 3697 $ps[]=$param->getDefaultValue(); 3698 else 3699 return false; 3700 } 3701 $method->invokeArgs($object,$ps); 3702 return true; 3703 } 3704 } 3705 class CInlineAction extends CAction 3706 { |
#6 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3718): CAction->runWithParamsInternal(ConversationsController, ReflectionMethod, array("id" => "480")) 3713 { 3714 $methodName='action'.$this->getId(); 3715 $controller=$this->getController(); 3716 $method=new ReflectionMethod($controller, $methodName); 3717 if($method->getNumberOfParameters()>0) 3718 return $this->runWithParamsInternal($controller, $method, $params); 3719 else 3720 return $controller->$methodName(); 3721 } 3722 } 3723 class CWebUser extends CApplicationComponent implements IWebUser |
#7 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3223): CInlineAction->runWithParams(array("id" => "480")) 3218 { 3219 $priorAction=$this->_action; 3220 $this->_action=$action; 3221 if($this->beforeAction($action)) 3222 { 3223 if($action->runWithParams($this->getActionParams())===false) 3224 $this->invalidActionParams($action); 3225 else 3226 $this->afterAction($action); 3227 } 3228 $this->_action=$priorAction; |
#8 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3208): CController->runAction(CInlineAction) 3203 $this->missingAction($actionID); 3204 } 3205 public function runActionWithFilters($action,$filters) 3206 { 3207 if(empty($filters)) 3208 $this->runAction($action); 3209 else 3210 { 3211 $priorAction=$this->_action; 3212 $this->_action=$action; 3213 CFilterChain::create($this,$action,$filters)->run(); |
#9 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(3198): CController->runActionWithFilters(CInlineAction, array()) 3193 { 3194 if(($parent=$this->getModule())===null) 3195 $parent=Yii::app(); 3196 if($parent->beforeControllerAction($this,$action)) 3197 { 3198 $this->runActionWithFilters($action,$this->filters()); 3199 $parent->afterControllerAction($this,$action); 3200 } 3201 } 3202 else 3203 $this->missingAction($actionID); |
#10 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(1686): CController->run("new") 1681 { 1682 list($controller,$actionID)=$ca; 1683 $oldController=$this->_controller; 1684 $this->_controller=$controller; 1685 $controller->init(); 1686 $controller->run($actionID); 1687 $this->_controller=$oldController; 1688 } 1689 else 1690 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 1691 array('{route}'=>$route===''?$this->defaultController:$route))); |
#11 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(1606): CWebApplication->runController("conversations/new") 1601 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 1602 $_GET[$name]=$value; 1603 } 1604 else 1605 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 1606 $this->runController($route); 1607 } 1608 protected function registerCoreComponents() 1609 { 1610 parent::registerCoreComponents(); 1611 $components=array( |
#12 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(1135): CWebApplication->processRequest() 1130 } 1131 public function run() 1132 { 1133 if($this->hasEventHandler('onBeginRequest')) 1134 $this->onBeginRequest(new CEvent($this)); 1135 $this->processRequest(); 1136 if($this->hasEventHandler('onEndRequest')) 1137 $this->onEndRequest(new CEvent($this)); 1138 } 1139 public function end($status=0, $exit=true) 1140 { |
#13 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/protected/behaviors/WebApplicationEndBehavior.php(23): CApplication->run() 18 $this->_endName = $name; 19 20 // обрабатываем событие создания модуля 21 $this->onModuleCreate = array($this, 'changeModulePaths'); 22 $this->onModuleCreate(new CEvent ($this->owner)); 23 $this->owner->run(); 24 25 } 26 27 // обработчик события onModuleCreate 28 public function onModuleCreate($event) |
#14 |
unknown(0): WebApplicationEndBehavior->runEnd("frontend")
|
#15 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/framework/yiilite.php(676): call_user_func_array(array(WebApplicationEndBehavior, "runEnd"), array("frontend")) 671 if($this->_m!==null) 672 { 673 foreach($this->_m as $object) 674 { 675 if($object->getEnabled() && method_exists($object,$name)) 676 return call_user_func_array(array($object,$name),$parameters); 677 } 678 } 679 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 680 return call_user_func_array($this->$name, $parameters); 681 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#16 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/index.php(20): CComponent->__call("runEnd", array("frontend")) 15 defined('YII_DEBUG') or define('YII_DEBUG',true); 16 // specify how many levels of call stack should be shown in each log message 17 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 18 19 require_once($yii); 20 Yii::createWebApplication($config)->runEnd('frontend'); 21 |
#17 |
+
–
/mnt/volume-fra1-01/www/photonews.ru/index.php(20): CWebApplication->runEnd("frontend") 15 defined('YII_DEBUG') or define('YII_DEBUG',true); 16 // specify how many levels of call stack should be shown in each log message 17 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 18 19 require_once($yii); 20 Yii::createWebApplication($config)->runEnd('frontend'); 21 |