( ! ) Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/framework/db/ar/CActiveFinder.php on line 853
Call Stack
#TimeMemoryFunctionLocation
10.0001387040{main}( ).../index.php:0
20.0259657984CApplication->run( ).../index.php:47
30.0259658544CWebApplication->processRequest( ).../yiilite.php:1236
40.0273698688CWebApplication->runController( $route = 'popular' ).../yiilite.php:1717
50.0275699704CController->run( $actionID = '' ).../yiilite.php:1797
60.0275699832CController->runActionWithFilters( $action = class CInlineAction { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; private ${CAction}_id = 'index'; private ${CAction}_controller = class PopularController { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; private ${CBaseController}_widgetStack = [...]; public $layout = '//layouts/column1'; public $defaultAction = 'index'; private ${CController}_id = 'popular'; private ${CController}_action = ...; private ${CController}_pageTitle = NULL; private ${CController}_cachingStack = NULL; private ${CController}_clips = NULL; private ${CController}_dynamicOutput = NULL; private ${CController}_pageStates = NULL; private ${CController}_module = NULL; public $menu = [...]; public $breadcrumbs = [...]; private ${Controller}activeNavItem = 'POPULAR'; private ${Controller}activeNavClassName = 'active'; public $sanitizePost = TRUE; public $sanitizeGet = TRUE } }, $filters = [] ).../yiilite.php:3732
70.0275699832CController->runAction( $action = class CInlineAction { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; private ${CAction}_id = 'index'; private ${CAction}_controller = class PopularController { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; private ${CBaseController}_widgetStack = [...]; public $layout = '//layouts/column1'; public $defaultAction = 'index'; private ${CController}_id = 'popular'; private ${CController}_action = ...; private ${CController}_pageTitle = NULL; private ${CController}_cachingStack = NULL; private ${CController}_clips = NULL; private ${CController}_dynamicOutput = NULL; private ${CController}_pageStates = NULL; private ${CController}_module = NULL; public $menu = [...]; public $breadcrumbs = [...]; private ${Controller}activeNavItem = 'POPULAR'; private ${Controller}activeNavClassName = 'active'; public $sanitizePost = TRUE; public $sanitizeGet = TRUE } } ).../yiilite.php:3742
80.0276700512CInlineAction->runWithParams( $params = [] ).../yiilite.php:3757
90.0276700664PopularController->actionIndex( ).../yiilite.php:4249
100.0317747296Product->randomPopular( $daysBack = ??? ).../PopularController.php:31
110.0331806920CActiveRecord->find( $condition = class CDbCriteria { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; public $select = [0 => 'SUM(dailyStats.visits) AS visitsCount']; public $distinct = FALSE; public $condition = 'published=:ycp1'; public $params = [':ycp1' => '1']; public $limit = -1; public $offset = -1; public $order = 'visitsCount DESC'; public $group = 't.product_id'; public $join = ''; public $having = ''; public $with = ['dailyStats' => [...]]; public $alias = NULL; public $together = TRUE; public $index = NULL; public $scopes = NULL }, $params = ??? ).../Product.php:304
120.0332807304CActiveRecord->query( $criteria = class CDbCriteria { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; public $select = [0 => 'SUM(dailyStats.visits) AS visitsCount']; public $distinct = FALSE; public $condition = 'published=:ycp1'; public $params = [':ycp1' => '1']; public $limit = -1; public $offset = -1; public $order = 'visitsCount DESC'; public $group = 't.product_id'; public $join = ''; public $having = ''; public $with = ['dailyStats' => [...]]; public $alias = NULL; public $together = TRUE; public $index = NULL; public $scopes = NULL }, $all = ??? ).../yiilite.php:8268
130.0340823112CActiveFinder->query( $criteria = class CDbCriteria { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; public $select = [0 => 't.title', 1 => 't.sell_price', 2 => 't.has_page', 3 => 't.product_id', 4 => 't.brand_id', 5 => 't.affiliate_supplier_id', 6 => 't.coupon_code', 7 => 't.coupon_valid_till', 8 => 't.coupon_discount', 9 => 't.last_edit', 10 => 'SUM(dailyStats.visits) AS visitsCount']; public $distinct = FALSE; public $condition = '((t.store_id = 1596) AND (published = 1)) AND (published=:ycp1)'; public $params = [':ycp1' => '1']; public $limit = -1; public $offset = -1; public $order = 'visitsCount DESC'; public $group = 't.product_id'; public $join = ''; public $having = ''; public $with = ['dailyStats' => [...]]; public $alias = NULL; public $together = TRUE; public $index = NULL; public $scopes = NULL }, $all = FALSE ).../yiilite.php:8209
140.0340823112CJoinElement->find( $criteria = class CDbCriteria { private ${CComponent}_e = NULL; private ${CComponent}_m = NULL; public $select = [0 => 't.title', 1 => 't.sell_price', 2 => 't.has_page', 3 => 't.product_id', 4 => 't.brand_id', 5 => 't.affiliate_supplier_id', 6 => 't.coupon_code', 7 => 't.coupon_valid_till', 8 => 't.coupon_discount', 9 => 't.last_edit', 10 => 'SUM(dailyStats.visits) AS visitsCount']; public $distinct = FALSE; public $condition = '((t.store_id = 1596) AND (published = 1)) AND (published=:ycp1)'; public $params = [':ycp1' => '1']; public $limit = -1; public $offset = -1; public $order = 'visitsCount DESC'; public $group = 't.product_id'; public $join = ''; public $having = ''; public $with = ['dailyStats' => [...]]; public $alias = NULL; public $together = TRUE; public $index = NULL; public $scopes = NULL } ).../CActiveFinder.php:68
150.0342826000CJoinElement->runQuery( $query = class CJoinQuery { public $selects = [0 => '`t`.`title` AS `t0_c5`, `t`.`sell_price` AS `t0_c8`, `t`.`has_page` AS `t0_c19`, `t`.`product_id` AS `t0_c0`, `t`.`brand_id` AS `t0_c4`, `t`.`affiliate_supplier_id` AS `t0_c1`, `t`.`coupon_code` AS `t0_c14`, `t`.`coupon_valid_till` AS `t0_c16`, `t`.`coupon_discount` AS `t0_c15`, `t`.`last_edit` AS `t0_c22`, SUM(dailyStats.visits) AS visitsCount', 1 => '`dailyStats`.`visits` AS `t1_c3`, `dailyStats`.`product_day_visits_id` AS `t1_c0`']; public $distinct = FALSE; public $joins = [0 => '`tbl_product` `t`', 1 => '', 2 => 'LEFT OUTER JOIN `tbl_stat_product_visit` `dailyStats` ON (`dailyStats`.`product_id`=`t`.`product_id`) AND (dailyStats.day_timestamp >= :startTime)', 3 => '']; public $conditions = [0 => '((t.store_id = 1596) AND (published = 1)) AND (published=:ycp1)', 1 => '']; public $orders = [0 => 'visitsCount DESC', 1 => '']; public $groups = [0 => 't.product_id', 1 => '']; public $havings = [0 => '', 1 => '']; public $limit = -1; public $offset = -1; public $params = [':ycp1' => '1', ':startTime' => 1775692800]; public $elements = [0 => TRUE, 1 => TRUE] } ).../CActiveFinder.php:441
168.5725132108664CJoinElement->populateRecord( $query = class CJoinQuery { public $selects = [0 => '`t`.`title` AS `t0_c5`, `t`.`sell_price` AS `t0_c8`, `t`.`has_page` AS `t0_c19`, `t`.`product_id` AS `t0_c0`, `t`.`brand_id` AS `t0_c4`, `t`.`affiliate_supplier_id` AS `t0_c1`, `t`.`coupon_code` AS `t0_c14`, `t`.`coupon_valid_till` AS `t0_c16`, `t`.`coupon_discount` AS `t0_c15`, `t`.`last_edit` AS `t0_c22`, SUM(dailyStats.visits) AS visitsCount', 1 => '`dailyStats`.`visits` AS `t1_c3`, `dailyStats`.`product_day_visits_id` AS `t1_c0`']; public $distinct = FALSE; public $joins = [0 => '`tbl_product` `t`', 1 => '', 2 => 'LEFT OUTER JOIN `tbl_stat_product_visit` `dailyStats` ON (`dailyStats`.`product_id`=`t`.`product_id`) AND (dailyStats.day_timestamp >= :startTime)', 3 => '']; public $conditions = [0 => '((t.store_id = 1596) AND (published = 1)) AND (published=:ycp1)', 1 => '']; public $orders = [0 => 'visitsCount DESC', 1 => '']; public $groups = [0 => 't.product_id', 1 => '']; public $havings = [0 => '', 1 => '']; public $limit = -1; public $offset = -1; public $params = [':ycp1' => '1', ':startTime' => 1775692800]; public $elements = [0 => TRUE, 1 => TRUE] }, $row = ['t0_c5' => 'USB AUX Wireless Bluetooth Car Kit Handsfree 3.1A Dual USB Phone Charger Car Cigarette Plug TF Card 3.5mm Audio FM Transmitter', 't0_c8' => 18, 't0_c19' => 0, 't0_c0' => 166531, 't0_c4' => NULL, 't0_c1' => 6, 't0_c14' => NULL, 't0_c16' => NULL, 't0_c15' => NULL, 't0_c22' => NULL, 'visitsCount' => NULL, 't1_c3' => NULL, 't1_c0' => NULL] ).../CActiveFinder.php:811