DEBUG MODE on stage.priceless.com (stage1) 2025-07-18 01:08:49
/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(396): CDbCommand->queryInternal("fetchAll", array(2), array(":productId1" => "210640", ":seriesScheduledDateTime1" => "2025-05-10 20:00:00", ":productId2" => "210640", ":seriesScheduledDateTime2" => "2025-05-15 19:00:00", ...)) 391 * An empty array is returned if the query results in nothing. 392 * @throws CException execution failed 393 */ 394 public function queryAll($fetchAssociative=true,$params=array()) 395 { 396 return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 397 } 398 399 /** 400 * Executes the SQL statement and returns the first row of the result. 401 * This is a convenient method of {@link query} when only the first row of data is needed. |
#1 |
+
–
/home/ifonly/web/common/protected/components/IfOnlyDbCommand.php(290): CDbCommand->queryAll(true, array(":productId1" => "210640", ":seriesScheduledDateTime1" => "2025-05-10 20:00:00", ":productId2" => "210640", ":seriesScheduledDateTime2" => "2025-05-15 19:00:00", ...)) 285 try { 286 self::$queryCounter++; 287 if (self::$useServerdbOnly && $this->getConnection()->name === 'serverdbread') { 288 return Unlogger::run(fn() => Yii::app()->serverdb->createCommand()->setText($this->getText())->queryAll($fetchAssociative, $params)); 289 } else { 290 return Unlogger::run(fn() => parent::queryAll($fetchAssociative, $params)); 291 } 292 } 293 catch (CDbException $ex) { 294 $this->logException($ex, $attempt, $params); // log always 295 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(290): Unlogger::run(Closure) 285 try { 286 self::$queryCounter++; 287 if (self::$useServerdbOnly && $this->getConnection()->name === 'serverdbread') { 288 return Unlogger::run(fn() => Yii::app()->serverdb->createCommand()->setText($this->getText())->queryAll($fetchAssociative, $params)); 289 } else { 290 return Unlogger::run(fn() => parent::queryAll($fetchAssociative, $params)); 291 } 292 } 293 catch (CDbException $ex) { 294 $this->logException($ex, $attempt, $params); // log always 295 if ($attempt === 1 && $this->isSwitchable()) { |
#4 |
+
–
/home/ifonly/web/common/protected/modelEx/ProductBaseEx.php(459): IfOnlyDbCommand->queryAll(true, array(":productId1" => "210640", ":seriesScheduledDateTime1" => "2025-05-10 20:00:00", ":productId2" => "210640", ":seriesScheduledDateTime2" => "2025-05-15 19:00:00", ...)) 454 FROM iocontentdb.seriesproducts sp 455 LEFT JOIN ioserverdb.seriesproductinventories spi ON spi.productId = sp.productId AND 456 spi.seriesScheduledDateTime = sp.seriesScheduledDateTime 457 WHERE ' . implode(' OR ', $seriesPatternInv); 458 $dbConn = GF::getDbConnection($dbConnStr); 459 $data = $dbConn->createCommand($sql)->queryAll(true, $seriesParams); 460 461 foreach ($data as $d) { 462 $seriesHashMap[$d['productId'].'_'.$d['seriesScheduledDateTime']] = $d['count']; 463 } 464 } |
#5 |
+
–
/home/ifonly/web/common/protected/modelEx/ProductEx.php(3669): ProductBaseEx::addInventoryInfo(array(array("productId" => "210640", "celebId" => "21956", "experience" => "1", "maxBackorders" => null, ...), array("productId" => "210640", "celebId" => "21956", "experience" => "1", "maxBackorders" => null, ...), array("productId" => "210640", "celebId" => "21956", "experience" => "1", "maxBackorders" => null, ...), array("productId" => "210640", "celebId" => "21956", "experience" => "1", "maxBackorders" => null, ...), ...)) 3664 LEFT JOIN iocontentdb.vendorserviceproducts vsp ON vsp.productId = p.productId 3665 WHERE p.productId IN (" .GF::getSafeIds($productIds). ") "; 3666 $soldOutInfo = Yii::app()->db->createCommand($sql)->queryAll(true); 3667 3668 // add inventory info 3669 self::addInventoryInfo($soldOutInfo); 3670 3671 return $soldOutInfo; 3672 } 3673 3674 /** |
#6 |
+
–
/home/ifonly/web/common/protected/modelEx/ProductEx.php(3698): ProductEx::getProductsSoldOutInfo(array(array("productId" => "210640"), array("productId" => "210641"))) 3693 { 3694 if (! $children) { 3695 return false; 3696 } 3697 3698 $products = self::getProductsSoldOutInfo($children); 3699 if (! $products) { 3700 return false; 3701 } 3702 3703 foreach ($products as $p){ |
#7 |
+
–
/home/ifonly/web/common/protected/modelEx/ProductEx.php(3785): ProductEx::areAllChildProductsSoldOut(array(array("productId" => "210640"), array("productId" => "210641"))) 3780 3781 if ($checkChildren) { 3782 // check inventory for series and versions 3783 $children = self::getProductChildren($product); 3784 if (is_array($children) && count($children) > 0) { 3785 if (self::areAllChildProductsSoldOut($children)) { 3786 if ($needMsg) { 3787 return ['soldOut' => true, 'shippingMsg' => '', 'debug' => 'all subproducts are sold out']; 3788 } else { 3789 return true; // soldout 3790 } |
#8 |
+
–
/home/ifonly/web/common/protected/modelEx/ProductEx.php(5421): ProductEx::isSoldOut(array("searchString" => "", "displayOrder" => 30, "mapping_displayOrder" => null, "productId" => "210639", ...), false, "", "msg", ...) 5416 } elseif (! empty($product['activeSweepstakes']) && empty($product['suppressTileBanner'])) { 5417 $buyType = StrEx::t("Sweepstakes", 'htmlAttr'); 5418 } elseif (! empty($product['endedSweepstakes']) && empty($product['suppressTileBanner'])) { 5419 $buyType = StrEx::t("Sweepstakes Ended", 'htmlAttr'); 5420 $css = 'grey'; 5421 } elseif (ProductEx::isSoldOut($product, $needMsg=false, $latestAcquisitionDate='', $shipMsgType = 'msg', $disregardQty = false, $checkChildren=true)){ 5422 $buyType = StrEx::t('Sold out', ['strtolower', 'htmlAttr']); 5423 $css = 'grey'; 5424 } elseif (empty($product['isPresale']) && ProductEx::isProductPastEvent($product)) { 5425 $buyType = StrEx::t('Past Event', 'htmlAttr'); 5426 $css = 'grey'; |
#9 |
+
–
/home/ifonly/web/common/protected/modelEx/CategoryEx.php(1298): ProductEx::getProductBuyTypeText(array("searchString" => "", "displayOrder" => 30, "mapping_displayOrder" => null, "productId" => "210639", ...), "array") 1293 } 1294 $products[$key]['celebImgSrc'] = GF::getImage('celebrityThumbImage', $products[$key]['celebrityImage'], $product['celebId'], false); 1295 $products[$key]['charityImgSrc'] = GF::getImage('charityLargeImage', $products[$key]['charityLargeImage'], $product['charityId'], false); 1296 $products[$key]['charityOverlayImgSrc'] = $products[$key]['charityOverlayImage'] ? GF::getImage('charityOverlayImage', $products[$key]['charityOverlayImage'], $product['charityId'], false) : ''; 1297 1298 $buyTypeObj = ProductEx::getProductBuyTypeText($products[$key], 'array'); 1299 $products[$key]['hasMasterCardType'] = ! empty($product['masterCardTypeName']) && MasterCardEx::isMcSite() ? 1 : 0; // VP-23634 add this flag to safely control showing or hiding of this type of buy text 1300 $products[$key]['buyType'] = $buyTypeObj['text']; 1301 $products[$key]['buyTypeCss'] = $buyTypeObj['css']; 1302 1303 $products[$key]['auctionText'] = ''; |
#10 |
+
–
/home/ifonly/web/common/protected/modelEx/FilterEx.php(1966): CategoryEx::prepareCategoryProductsForDisplay(array(array("searchString" => "", "displayOrder" => 1, "mapping_displayOrder" => null, "productId" => "213786", ...), array("searchString" => "", "displayOrder" => 2, "mapping_displayOrder" => "0.000000", "productId" => "184813", ...), array("searchString" => "", "displayOrder" => 3, "mapping_displayOrder" => "0.000000", "productId" => "210716", ...), array("searchString" => "", "displayOrder" => 4, "mapping_displayOrder" => "0.000000", "productId" => "209587", ...), ...), array(), array(), 0, ...) 1961 $pickOneProducts = []; 1962 if(SiteEx::isAllowed('pickoneProducts')) { 1963 $pickOneProducts = PromotionEx::getAllPickOneProducts($accessCodeInfo); 1964 } 1965 1966 $products['products'] = CategoryEx::prepareCategoryProductsForDisplay($displayedProducts, array(), $pickOneProducts, 0, 0, GC::FILTER_PAGE, $params); 1967 1968 return $products; 1969 } else { 1970 $displayedProducts = ProductEx::getProductsForFilterPage($params['where'], $params['having'], $params['orderBy'], $params['sortSelect'], $limit, $params['selectedCat'], $params['keyword'], $cntOnly, $params['matchingProductIds'], $extraParams); 1971 |
#11 |
+
–
/home/ifonly/web/common/protected/controllers/SearchControllerEx.php(624): FilterEx::getFilterDisplayProducts(array("keyword" => "", "where" => " AND ( CASE
WHEN g.aggr...", "ppoWhere" => " AND ( ( pt.sellable = 1
AND pt.physica...", "preEventChildWhere" => "", ...), array(), true, true, ...) 619 $this->productsCnt = CacheEx::getCacheData($cacheName, CacheEx::FILTER_PAGE_TOTAL_PRODUCTS_CNT); 620 } 621 else { 622 if(Yii::app()->session->getVar('newGetProductLogic', '1')) { 623 $params['limit'] = $loadedProducts; 624 $products = FilterEx::getFilterDisplayProducts($params, $this->accessCodeInfo, $checkBinRangeByDefault, true, true); 625 $this->productsCnt = $products['count']; 626 $displayedProducts = $products['products']; 627 } else { 628 $this->productsCnt = FilterEx::getFilterDisplayProducts($params, $this->accessCodeInfo, $checkBinRangeByDefault, true, true); 629 $params['limit'] = $loadedProducts; |
#12 |
+
–
/home/ifonly/web/yii/framework/web/actions/CInlineAction.php(49): SearchControllerEx->actionFilterpage() 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 } |
#13 |
+
–
/home/ifonly/web/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("q" => "/filter/options/category/506", "category" => "506")) 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; |
#14 |
+
–
/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 } |
#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/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. |
#17 |
+
–
/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 } |
#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/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 /** |
#20 |
+
–
/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() |
#21 |
+
–
/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 } |
#22 |
+
–
/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 } |
#23 |
+
–
/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 /** |
#24 |
+
–
/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); |
#25 |
+
–
/home/ifonly/web/common/protected/components/IfOnlyWebApplication.php(69): CController->run("filterpage") 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. |
#26 |
+
–
/home/ifonly/web/yii/framework/web/CWebApplication.php(141): IfOnlyWebApplication->runController("search/filterpage") 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. |
#27 |
+
–
/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 /** |
#28 |
+
–
/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(); |