Notice (8): Use of undefined constant DOMAIN_ID - assumed 'DOMAIN_ID' [APP/Controller/AppController.php, line 184]
CakePHP: the rapid development php framework: 1800getarug - Oriental Carpets and Persian Rugs in the USA

Fatal Error

Error: syntax error, unexpected 'App' (T_STRING), expecting function (T_FUNCTION)
File: /var/www/vhosts/1800getarug.com/app/Controller/PagesController.php
Line: 41

Notice: If you want to customize this error message, create app/View/Errors/fatal_error.ctp

(default) 19 queries took 205 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `Sptconfig`.`value` FROM `1800getarug`.`sptconfigs` AS `Sptconfig` WHERE `id` = 31 LIMIT 1110
2SELECT `Domain`.`id` FROM `1800getarug`.`domains` AS `Domain` WHERE `Domain`.`title` = 'static1.1800getarug.com' LIMIT 1000
3SELECT `Color`.`id`, `Color`.`title`, `Color`.`slug`, `Color`.`color_code` FROM `1800getarug`.`colors` AS `Color` WHERE `Color`.`status` = 1 ORDER BY `title` asc14140
4SELECT `Dimension`.`id`, `Dimension`.`title`, `Dimension`.`type`, `Dimension`.`slug`, `Dimension`.`term` FROM `1800getarug`.`dimensions` AS `Dimension` WHERE `Dimension`.`status` = 1 AND `parent_id` = 0 AND `is_large_runner` = 0 ORDER BY `sort` asc38380
5SELECT `Dimension`.`id`, `Dimension`.`title`, `Dimension`.`type`, `Dimension`.`slug`, `Dimension`.`term` FROM `1800getarug`.`dimensions` AS `Dimension` WHERE `Dimension`.`status` = 1 AND `parent_id` = 0 AND `is_large_runner` = 0 AND `type` = 3 ORDER BY `slug` desc LIMIT 1110
6SELECT `Dimension`.`id`, `Dimension`.`title`, `Dimension`.`type`, `Dimension`.`slug`, `Dimension`.`term` FROM `1800getarug`.`dimensions` AS `Dimension` WHERE `Dimension`.`status` = 1 AND `parent_id` = 0 AND `is_large_runner` = 1 ORDER BY `slug` asc17170
7SELECT `Dimension`.`id`, `Dimension`.`title`, `Dimension`.`type`, `Dimension`.`slug`, `Dimension`.`term`, `Dimension`.`parent_id` FROM `1800getarug`.`dimensions` AS `Dimension` WHERE `Dimension`.`status` = 1 AND `is_large_runner` = 0 ORDER BY `sort` asc1661661
8SELECT `Category`.`id`, `Category`.`title`, `Category`.`term` FROM `1800getarug`.`categories` AS `Category` WHERE `Category`.`status` = 1 AND `id` NOT IN (88, 93) ORDER BY `title` asc20201
9SELECT `Dimension`.`id`, `Dimension`.`title`, `Dimension`.`type`, `Dimension`.`slug`, `Dimension`.`term`, CONVERT(SUBSTRING_INDEX(LOWER(`Dimension`.`title`),'x',1),UNSIGNED INTEGER) as fr, CONVERT(SUBSTRING_INDEX(LOWER(`Dimension`.`title`),'x',-1),UNSIGNED INTEGER) as sr FROM `1800getarug`.`dimensions` AS `Dimension` WHERE `Dimension`.`status` = 1 AND `Dimension`.`parent_id` = 20 ORDER BY `fr` asc, `sr` asc1281281
10SELECT `Category`.`id`, `Category`.`title`, `Category`.`image`, `Category`.`term`, `Category`.`meta_tags` FROM `1800getarug`.`categories` AS `Category` WHERE `Category`.`status` = 1 AND `id` != 88 ORDER BY `Category`.`title` asc20200
11SELECT `StaticPage`.`id`, `StaticPage`.`status`, `StaticPage`.`created`, `StaticPage`.`modified`, `StaticPage`.`title`, `StaticPageDescription`.`id`, `StaticPageDescription`.`static_page_id`, `StaticPageDescription`.`language_id`, `StaticPageDescription`.`title`, `StaticPageDescription`.`name`, `StaticPageDescription`.`slug`, `StaticPageDescription`.`content`, `StaticPageDescription`.`meta_keywords`, `StaticPageDescription`.`meta_heading`, `StaticPageDescription`.`meta_description`, `StaticPageDescription`.`domain` FROM `1800getarug`.`static_pages` AS `StaticPage` LEFT JOIN `1800getarug`.`static_page_descriptions` AS `StaticPageDescription` ON (`StaticPageDescription`.`static_page_id` = `StaticPage`.`id` AND `StaticPageDescription`.`language_id` = 1) WHERE `StaticPage`.`status` = 1 AND `StaticPageDescription`.`domain` = 'DOMAIN_ID' AND `StaticPage`.`id` NOT IN (87, 2, 12, 50) ORDER BY `StaticPageDescription`.`name` Asc001
12SELECT COUNT(*) FROM products as Product WHERE (`Product`.`status` = 1) AND (`Product`.`sold_status` != 2) AND ( (`Product`.`product_publish_to` LIKE '%38%') OR (`Product`.`product_publish_to` LIKE '%,38%') OR (`Product`.`product_publish_to` LIKE '%38,%') OR (`Product`.`product_publish_to` LIKE '%,38,%') ) GROUP BY Product.id ORDER BY Product.id desc94869486106
13SELECT COUNT(*) FROM products as Product WHERE (`Product`.`status` = 1) AND (`Product`.`sold_status` != 2) AND (`Product`.`product_qty` > '0') AND (`Product`.`product_cat` != '88') AND (`Product`.`product_primary_cat` != '88') AND (`Product`.`is_special_offer` = '1') AND ( (`Product`.`product_publish_to` LIKE '%37%') OR (`Product`.`product_publish_to` LIKE '%,37%') OR (`Product`.`product_publish_to` LIKE '%37,%') OR (`Product`.`product_publish_to` LIKE '%,37,%') ) GROUP BY Product.id ORDER BY Product.id desc1195
14SELECT `Sptconfig`.`id`, `Sptconfig`.`title`, `Sptconfig`.`value`, `Sptconfig`.`slug`, `Sptconfig`.`type` FROM `1800getarug`.`sptconfigs` AS `Sptconfig` WHERE 1 = 120200
15SELECT `Warehouseconfig`.`id`, `Warehouseconfig`.`title`, `Warehouseconfig`.`value`, `Warehouseconfig`.`slug` FROM `1800getarug`.`warehouseconfigs` AS `Warehouseconfig` WHERE 1 = 1880
16SELECT `Recentsoldconfig`.`id`, `Recentsoldconfig`.`title`, `Recentsoldconfig`.`value`, `Recentsoldconfig`.`slug` FROM `1800getarug`.`recentsoldconfigs` AS `Recentsoldconfig` WHERE 1 = 1110
17SELECT `Country`.`ccode`, `Country`.`country` FROM `1800getarug`.`countries` AS `Country` WHERE 1 = 12462460
18SELECT `Product`.`id`, `Product`.`product_name`, `Product`.`product_sku`, `Product`.`product_new_sku`, `Product`.`slug`, `Product`.`msrp`, `Product`.`price`, `Product`.`dimension_1feet`, `Product`.`dimension_1inch`, `Product`.`dimension_2feet`, `Product`.`dimension_2inch` FROM `1800getarug`.`products` AS `Product` WHERE `Product`.`deal_of_day` = 1 AND `product_qty` > 0 AND `status` = 1 AND `sold_status` != 2 ORDER BY `modified` desc LIMIT 1110
19SELECT `ProductImage`.`id`, `ProductImage`.`product_id`, `ProductImage`.`image` FROM `1800getarug`.`product_images` AS `ProductImage` WHERE `ProductImage`.`product_id` = (924888)770