/var/www/vhosts/ticketworksonline.com/frontend/framework/db/CDbCommand.php(528)
516 return $result; 517 } 518 catch(Exception $e) 519 { 520 if($this->_connection->enableProfiling) 521 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 522 $errorInfo = $e instanceof PDOException ? $e->errorInfo : null; 523 $message = $e->getMessage(); 524 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 525 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 526 if(YII_DEBUG) 527 $message .= '. The SQL statement executed was: '.$this->getText().$par; 528 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 529 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 530 } 531 } 532 533 /** 534 * Builds a SQL SELECT statement from the given query specification. 535 * @param array $query the query specification in name-value pairs. The following 536 * query options are supported: {@link select}, {@link distinct}, {@link from}, 537 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 538 * {@link limit}, {@link offset} and {@link union}. 539 * @return string the SQL statement 540 * @since 1.1.6
#0 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/db/CDbCommand.php(408): CDbCommand->queryInternal("fetch", array(2), array()) 403 * @return mixed the first row (in terms of an array) of the query result, false if no result. 404 * @throws CException execution failed 405 */ 406 public function queryRow($fetchAssociative=true,$params=array()) 407 { 408 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 409 } 410 411 /** 412 * Executes the SQL statement and returns the value of the first column in the first row of data. 413 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/db/ar/CActiveRecord.php(1291): CDbCommand->queryRow() 1286 if(empty($criteria->with)) 1287 { 1288 if(!$all) 1289 $criteria->limit=1; 1290 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1291 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1292 } 1293 else 1294 { 1295 $finder=new CActiveFinder($this,$criteria->with); 1296 return $finder->query($criteria,$all); |
#2 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/db/ar/CActiveRecord.php(1459): CActiveRecord->query(CDbCriteria) 1454 public function findByAttributes($attributes,$condition='',$params=array()) 1455 { 1456 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1457 $prefix=$this->getTableAlias(true).'.'; 1458 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1459 return $this->query($criteria); 1460 } 1461 1462 /** 1463 * Finds all active records that have the specified attribute values. 1464 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/protected/controllers/SiteController.php(28): CActiveRecord->findByAttributes(array("slug" => "", "status" => "enabled")) 23 return parent::init(); 24 } 25 26 public function actionPage($slug) 27 { 28 $data['page'] = Pages::model()->findByAttributes(array('slug'=>$slug,'status'=>'enabled')); 29 30 if( !$data['page'] ) 31 throw new CHttpException(404,'Page not found'); 32 $this->layout = $data['page']->layout; 33 |
#4 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/protected/controllers/SiteController.php(89): SiteController->actionPage("") 84 Yii::app()->request->cookies['hide_cookies_msg'] = new CHttpCookie('hide_cookies_msg', 1); 85 } 86 87 public function actionIndex() 88 { 89 $this->actionPage(''); 90 } 91 92 public function actionCheck_contact() 93 { 94 if(!Yii::app()->request->isAjaxRequest OR empty($_POST['Contact'])) |
#5 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/web/actions/CInlineAction.php(50): SiteController->actionIndex() 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 } |
#6 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/web/CController.php(309): CInlineAction->runWithParams(array()) 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; |
#7 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/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(); |
#8 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/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); |
#9 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/web/CWebApplication.php(283): CController->run("") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
#10 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/framework/web/CWebApplication.php(142): CWebApplication->runController("") 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 138 $_GET[$name]=$value; 139 } 140 else 141 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
#11 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/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 |
+
–
/var/www/vhosts/ticketworksonline.com/frontend/index.php(39): CApplication->run() 34 defined('YII_DEBUG') or define('YII_DEBUG',true); 35 // specify how many levels of call stack should be shown in each log message 36 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 37 38 require_once($yii); 39 Yii::createWebApplication($config)->run(); |