DEBUG MODE on stage.priceless.com (stage2) 2025-07-16 20:15:52
/home/ifonly/web/yii/framework/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statement
#0 |
+
–
/home/ifonly/web/yii/framework/db/CDbCommand.php(415): CDbCommand->queryInternal("fetch", array(2), array(":celebId" => "19934")) 410 * @return mixed the first row (in terms of an array) of the query result, false if no result. 411 * @throws CException execution failed 412 */ 413 public function queryRow($fetchAssociative=true,$params=array()) 414 { 415 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 416 } 417 418 /** 419 * Executes the SQL statement and returns the value of the first column in the first row of data. 420 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/home/ifonly/web/common/protected/components/IfOnlyDbCommand.php(318): CDbCommand->queryRow(true, array(":celebId" => "19934")) 313 try { 314 self::$queryCounter++; 315 if (self::$useServerdbOnly && $this->getConnection()->name === 'serverdbread') { 316 return Unlogger::run(fn() => Yii::app()->serverdb->createCommand()->setText($this->getText())->queryRow($fetchAssociative, $params)); 317 } else { 318 return Unlogger::run(fn() => parent::queryRow($fetchAssociative, $params)); 319 } 320 } 321 catch (CDbException $ex) { 322 $this->logException($ex, $attempt, $params); // log always 323 if ($attempt === 1 && $this->isSwitchable()) { |
#2 |
+
–
/home/ifonly/web/common/protected/components/Unlogger.php(31): IfOnlyDbCommand->{closure}() 26 27 $logger = Yii::getLogger(); 28 Yii::setLogger(self::$unlogger); 29 30 try { 31 return $callable(); 32 } finally { 33 Yii::setLogger($logger); 34 } 35 } 36 } |
#3 |
+
–
/home/ifonly/web/common/protected/components/IfOnlyDbCommand.php(318): Unlogger::run(Closure) 313 try { 314 self::$queryCounter++; 315 if (self::$useServerdbOnly && $this->getConnection()->name === 'serverdbread') { 316 return Unlogger::run(fn() => Yii::app()->serverdb->createCommand()->setText($this->getText())->queryRow($fetchAssociative, $params)); 317 } else { 318 return Unlogger::run(fn() => parent::queryRow($fetchAssociative, $params)); 319 } 320 } 321 catch (CDbException $ex) { 322 $this->logException($ex, $attempt, $params); // log always 323 if ($attempt === 1 && $this->isSwitchable()) { |
#4 |
+
–
/home/ifonly/web/common/protected/modelEx/ProductBaseEx.php(4633): IfOnlyDbCommand->queryRow(true, array(":celebId" => "19934")) 4628 . " WHERE " . GF::getActiveWhereClause('p') 4629 . " AND p.showOnListPages = 1 " 4630 . " AND IFNULL(v.count, 1) > 0 " 4631 . " AND p.celebId = :celebId "; 4632 $command = Yii::app()->serverdb->createCommand($sql); 4633 $item = $command->queryRow(true, array(':celebId' => $celebId)); 4634 4635 return $item; 4636 } 4637 // ************************************************************************* 4638 // |
#5 |
+
–
/home/ifonly/web/common/protected/controllers/ProductControllerEx.php(694): ProductBaseEx::getProductsCount("19934") 689 if ($category) { 690 $product['catName'] = $category['catName']; 691 $product['catDisplayName'] = $category['catDisplayName']; 692 } 693 694 $productsCount = ProductEx::getProductsCount($product['celebId']); 695 if ($productsCount['count'] == 1){ 696 $this->breadcrumbs = array($product['pDisplayName']); // one product celebrity - don't display celebrity link in the breadcrumbs 697 } else { 698 $this->breadcrumbs = array($celeb['displayName']=>CelebrityEx::getUrl($celeb['celebId'], $celeb['celebUrlName']), $product['pDisplayName']); 699 } |
#6 |
unknown(0): ProductControllerEx->actionIndex("travel", "208304", "berlin-history-boat-tour-2025", "509", ...)
|
#7 |
+
–
/home/ifonly/web/yii/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(ProductController, array("travel", "208304", "berlin-history-boat-tour-2025", 0, ...)) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#8 |
+
–
/home/ifonly/web/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(ProductController, ReflectionMethod, array("q" => "/travel/product/208304/berlin-history-boat-tour-2025", "catName" => "travel", "productId" => "208304", "productName" => "berlin-history-boat-tour-2025")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#9 |
+
–
/home/ifonly/web/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("q" => "/travel/product/208304/berlin-history-boat-tour-2025", "catName" => "travel", "productId" => "208304", "productName" => "berlin-history-boat-tour-2025")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#10 |
+
–
/home/ifonly/web/yii/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction) 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#11 |
+
–
/home/ifonly/web/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#12 |
+
–
/home/ifonly/web/yii/framework/web/CController.php(1148): CFilter->filter(CFilterChain) 1143 */ 1144 public function filterAccessControl($filterChain) 1145 { 1146 $filter=new CAccessControlFilter; 1147 $filter->setRules($this->accessRules()); 1148 $filter->filter($filterChain); 1149 } 1150 1151 /** 1152 * Returns a persistent page state value. 1153 * A page state is a variable that is persistent across POST requests of the same page. |
#13 |
+
–
/home/ifonly/web/yii/framework/web/filters/CInlineFilter.php(58): CController->filterAccessControl(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#14 |
+
–
/home/ifonly/web/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#15 |
+
–
/home/ifonly/web/yii/framework/web/filters/CFilter.php(40): CFilterChain->run() 35 */ 36 public function filter($filterChain) 37 { 38 if($this->preFilter($filterChain)) 39 { 40 $filterChain->run(); 41 $this->postFilter($filterChain); 42 } 43 } 44 45 /** |
#16 |
+
–
/home/ifonly/web/common/protected/components/FrontEndController.php(373): CFilter->filter(CFilterChain) 368 // ************************************************************************* 369 // to add 'https://' in the request 370 // ************************************************************************* 371 public function filterHttps( $filterChain ) { 372 $filter = new HttpsFilter; 373 $filter->filter( $filterChain ); 374 } 375 // ************************************************************************* 376 // 377 // ************************************************************************* 378 public function getAssetsBase() |
#17 |
+
–
/home/ifonly/web/yii/framework/web/filters/CInlineFilter.php(58): FrontEndController->filterHttps(CFilterChain) 53 * @param CFilterChain $filterChain the filter chain that the filter is on. 54 */ 55 public function filter($filterChain) 56 { 57 $method='filter'.$this->name; 58 $filterChain->controller->$method($filterChain); 59 } 60 } |
#18 |
+
–
/home/ifonly/web/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain) 126 { 127 if($this->offsetExists($this->filterIndex)) 128 { 129 $filter=$this->itemAt($this->filterIndex++); 130 Yii::trace('Running filter '.($filter instanceof CInlineFilter ? get_class($this->controller).'.filter'.$filter->name.'()':get_class($filter).'.filter()'),'system.web.filters.CFilterChain'); 131 $filter->filter($this); 132 } 133 else 134 $this->controller->runAction($this->action); 135 } 136 } |
#19 |
+
–
/home/ifonly/web/yii/framework/web/CController.php(291): CFilterChain->run() 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); 292 $this->_action=$priorAction; 293 } 294 } 295 296 /** |
#20 |
+
–
/home/ifonly/web/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array("https", "accessControl")) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#21 |
+
–
/home/ifonly/web/common/protected/components/IfOnlyWebApplication.php(69): CController->run("index") 64 { 65 list($controller,$actionID)=$ca; 66 $oldController=$this->getController(); // $oldController=$this->_controller; 67 $this->setController($controller); // $this->_controller=$controller; 68 $controller->init(); 69 $controller->run($actionID); 70 $this->setController($oldController); // $this->_controller=$oldController; 71 } 72 else { 73 // Since we allow [A-Za-z0-9\-] for category name, 74 // this happens only when the requested controller name has a special character. |
#22 |
+
–
/home/ifonly/web/yii/framework/web/CWebApplication.php(141): IfOnlyWebApplication->runController("product/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#23 |
+
–
/home/ifonly/web/yii/framework/base/CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#24 |
+
–
/home/ifonly/web/ifonly/index.php(95): CApplication->run() 90 91 // Yii::createWebApplication($config); 92 require_once($sourceRoot.'/web/common/protected/components/IfOnlyWebApplication.php'); 93 Yii::createApplication('IfOnlyWebApplication',$config); 94 95 Yii::app()->run(); |