RedisException
Stack frames (13)
12
RedisException
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Cache.class.php
69
11
Redis
setex
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Cache.class.php
69
10
Cache
Set
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Cache.class.php
53
9
Cache
SetObject
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/ClosedHours.class.php
145
8
ClosedHours
getByDateAndTypeAndRestaurantOrCategory
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/ClosedHours.class.php
99
7
ClosedHours
getByDateAndCategoryAndType
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/ClosedHours.class.php
80
6
ClosedHours
isCategoryDisabled
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Category.class.php
623
5
Category
getCategoryDisabledHoursAndOrderTypes
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Category.class.php
670
4
Category
getCategoryDisabledHours
/
home
/deploy
/EHungry-8-simon
/Web
/templates3.0
/customer
/categorydisabled.php
1
3
include
/
home
/deploy
/EHungry-8-simon
/Web
/view3.0
/customer
/category.php
20
2
include
/
home
/deploy
/EHungry-8-simon
/Web
/view3.0
/customer
/ordering3.php
25
1
include_once
/
home
/deploy
/EHungry-8-simon
/Web
/controllers
/customer.php
898
0
require
/
home
/deploy
/EHungry-8-simon
/Web
/index.php
30
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Cache.class.php
} public static function SetObject($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function SetArray($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function SetBoolean($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function Set($key, $var, $expire = 86400) { App::debugbarLog('debug', "Cache set: $key"); if ($i = static::getInstance()) { $var = static::beforeSet($var); return $expire > 0? $i->setEx($key, $expire, $var) : $i->set($key, $var); } return null; } public static function Exists(...$key):?bool { if ($i = static::getInstance()) { return $i->exists($key); } return null; } public static function Expire($key, $ttl) { if ($i = static::getInstance()) { return $i->expire($key, $ttl); } return false; } /**
Arguments
"MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error."
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Cache.class.php
} public static function SetObject($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function SetArray($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function SetBoolean($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function Set($key, $var, $expire = 86400) { App::debugbarLog('debug', "Cache set: $key"); if ($i = static::getInstance()) { $var = static::beforeSet($var); return $expire > 0? $i->setEx($key, $expire, $var) : $i->set($key, $var); } return null; } public static function Exists(...$key):?bool { if ($i = static::getInstance()) { return $i->exists($key); } return null; } public static function Expire($key, $ttl) { if ($i = static::getInstance()) { return $i->expire($key, $ttl); } return false; } /**
Arguments
"ch_c108531_tuesday_PICKUP_0"
86400
"N;"
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Cache.class.php
public static function getInstance() { if (static::$redisObj === null) { static::$redisObj = new Redis(); try { if (!@static::$redisObj->connect(static::$host, (int)static::$port)) { static::$redisObj = false; Splunk::log(Splunk::LOG_REDIS_CONN, ['error' => 'Error connecting']); } else { static::$redisObj->select(static::$db); } } catch (RedisException $e) { static::$redisObj = false; Splunk::log(Splunk::LOG_REDIS_CONN, ['error' => 'Error connecting: '.$e->getMessage()]); } } return static::$redisObj; } public static function SetObject($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function SetArray($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function SetBoolean($key, $var, $expire = 86400) { return static::Set($key, serialize($var), $expire); } public static function Set($key, $var, $expire = 86400) { App::debugbarLog('debug', "Cache set: $key"); if ($i = static::getInstance()) { $var = static::beforeSet($var); return $expire > 0? $i->setEx($key, $expire, $var) : $i->set($key, $var); } return null; }
Arguments
"ch_c108531_tuesday_PICKUP_0"
"N;"
86400
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/ClosedHours.class.php
$db_conn = DB::conn(); $rbs = array(); if ($cid && $isHiddenToCustomers) { $sql .= ' AND show_category_when_closed = 0'; } $sql = "SELECT * FROM ".ClosedHours::getTableName()." WHERE (restaurant_id = ? OR category_id = ?) ".$sql." ORDER BY id DESC"; $db_conn->bindParameter($sql, 1, $rid, "integer"); $db_conn->bindParameter($sql, 1, $cid, "integer"); $result = $db_conn->query($sql); if ($result && $result->rowCount() > 0) { while ($row = $result->fetch()) { $ch = new ClosedHours(); $ch->loadFromArray($row, true); $rbs[] = $ch; } Cache::SetArray($cacheKey, $rbs); return $rbs; } Cache::SetObject($cacheKey, null); return null; } public static function clearCache($rid, $cid = null) { global $days; $types = ['PICKUP', 'DINEIN', 'DELIVERY']; $isHiddenToCustomersArray = [0, 1]; foreach ($days as $d) { foreach ($types as $t) { foreach ($isHiddenToCustomersArray as $isHiddenToCustomers) { Cache::Delete('ch_'.($cid > 0? ('c'.$cid) : ('r'.$rid)).'_'.mb_strtolower($d).'_'.$t.'_'.$isHiddenToCustomers); } } } } public function toString() { $dayNames = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']; $closedDayNames = []; foreach ($dayNames as $dayName) {
Arguments
"ch_c108531_tuesday_PICKUP_0"
null
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/ClosedHours.class.php
$closedHours = ClosedHours::getByDateAndCategoryAndType($time, $category->getId(), $orderType, $isHiddenToCustomers); if (is_array($closedHours) && count($closedHours) > 0) { return $closedHours; } //check parent category too if ($category->getParentId()) { $closedHours = ClosedHours::getByDateAndCategoryAndType($time, $category->getParentId(), $orderType, $isHiddenToCustomers); if (is_array($closedHours) && count($closedHours) > 0) { return $closedHours; } } return false; } public static function getByDateAndRestaurantAndType($date = null, $rid = -1, $type = 'PICKUP') { return ClosedHours::getByDateAndTypeAndRestaurantOrCategory($date, $rid, null, $type); } public static function getByDateAndCategoryAndType($date = null, $cid = null, $type = 'PICKUP', $isHiddenToCustomers = false) { return ClosedHours::getByDateAndTypeAndRestaurantOrCategory($date, -1, $cid, $type, $isHiddenToCustomers); } public static function getByDateAndTypeAndRestaurantOrCategory($date = null, $rid = -1, $cid = -1, $type = 'PICKUP', $isHiddenToCustomers = false) { $day = mb_strtolower(date('l', $date)); $sql = " AND ".$day." = 1"; if (!$type) { $type = 'PICKUP'; } switch ($type) { case 'PICKUP': $sql .= " AND pickup=1 "; break; case 'DELIVERY': $sql .= " AND delivery=1 "; break; case 'DINEIN': $sql .= " AND dinein=1 "; break; }
Arguments
1745972423
-1
108531
"PICKUP"
false
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/ClosedHours.class.php
/** * @param Restaurant $restaurant * @param Category $category * @param $time * @return bool */ public static function isCategoryHidden($restaurant, $category, $time = null) { return self::isCategoryDisabled($restaurant, $category, $time, true); } public static function isCategoryDisabled($restaurant, $category, $time = null, $isHiddenToCustomers = false, $orderType = null) { if (!$orderType) { $cart = Cart::getCurrent(); $orderType = $cart->getBaseOrderType(); } if (!$time) { $time = $restaurant->getLocalTime(); } $closedHours = ClosedHours::getByDateAndCategoryAndType($time, $category->getId(), $orderType, $isHiddenToCustomers); if (is_array($closedHours) && count($closedHours) > 0) { return $closedHours; } //check parent category too if ($category->getParentId()) { $closedHours = ClosedHours::getByDateAndCategoryAndType($time, $category->getParentId(), $orderType, $isHiddenToCustomers); if (is_array($closedHours) && count($closedHours) > 0) { return $closedHours; } } return false; } public static function getByDateAndRestaurantAndType($date = null, $rid = -1, $type = 'PICKUP') { return ClosedHours::getByDateAndTypeAndRestaurantOrCategory($date, $rid, null, $type); } public static function getByDateAndCategoryAndType($date = null, $cid = null, $type = 'PICKUP', $isHiddenToCustomers = false) { return ClosedHours::getByDateAndTypeAndRestaurantOrCategory($date, -1, $cid, $type, $isHiddenToCustomers); }
Arguments
1745972423
108531
null
false
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Category.class.php
} } return $filteredCategories; } return []; } public function getNewUrlTag() { $originalTag = $urlTag = preg_replace('/[^a-zA-Z0-9_\-]/', '', preg_replace('/\s/', '-', mb_strtolower($this->display_name))); $count = 1; $tagObject = Category::getByAccountAndUrlTag($this->account_id, $urlTag); while (is_object($tagObject) && $tagObject->id != $this->id) { $urlTag = $originalTag.'-'.$count++; $tagObject = Category::getByAccountAndUrlTag($this->account_id, $urlTag); } return $urlTag; } public function getCategoryDisabledHoursAndOrderTypes($restaurant, $time = null) { $closedHours = ClosedHours::isCategoryDisabled($restaurant, $this, $time); $holidayHours = HolidayHours::isCategoryDisabled($restaurant, $this, $time); $isCategoryHidden = $closedHours || $holidayHours; if ($isCategoryHidden) { $types = []; if ($closedHours) { if ($closedHours[0]->pickup) { $types[] = PICKUP_LABEL; } if ($closedHours[0]->delivery) { $types[] = 'Delivery'; } if ($closedHours[0]->dinein) { $types[] = DINEIN_LABEL; } return [$closedHours[0]->toString(), $types]; } if (!empty($holidayHours)) { $date = date('Y-m-d 00:00:00', ($time ?: $restaurant->getLocalTime())); $sql = "SELECT id FROM ".HolidayHours::getTableName()." WHERE for_date = ? AND category_id = ? AND order_type IN ('DINEIN', 'PICKUP', 'DELIVERY') AND is_closed = 1"; $db_conn = DB::conn();
Arguments
Restaurant {}
Category {}
1745972423
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Category.class.php
case 'PICKUP': $types[$aHolidayHours->order_type] = PICKUP_LABEL; break; case 'DINEIN': $types[$aHolidayHours->order_type] = DINEIN_LABEL; break; case 'DELIVERY': $types[$aHolidayHours->order_type] = 'Delivery'; break; } } } return [$holidayHours->toString(false, true), $types]; } } return []; } public function getCategoryDisabledHours($restaurant, $time = null) { $hoursAndTypes = $this->getCategoryDisabledHoursAndOrderTypes($restaurant, $time); return count($hoursAndTypes) ? $hoursAndTypes[0] : ''; } }
Arguments
Restaurant {}
null
/
home
/deploy
/EHungry-8-simon
/Web
/templates3.0
/customer
/categorydisabled.php
<? $disabledHours = $category->getCategoryDisabledHours($restaurant); if ($disabledHours) { ?> <div class="alert alert-danger clearfix alert-category-disabled"> <span> Items from the category <?=$category->getDisplayName()?> cannot be ordered on <strong><?=$disabledHours?></strong> </span> </div> <? } ?>
Arguments
Restaurant {}
/
home
/deploy
/EHungry-8-simon
/Web
/view3.0
/customer
/category.php
<? if ($closed_msg = isOrderingClosed(CLOSED_MSG_RESTAURANT)) { ?> <div class="alert alert-error"><?=$closed_msg?></div> <? } ?> <nav class="breadcrumbs"> <ul> <li><a href="<?=formatCustomerOrderLink([$restaurant, $menu])?>">Menu</a></li> <li><?=$category->getDisplayName()?></li> </ul> </nav> <? $cart = Cart::getCurrent(); if (count($cart->cartItems) && $restaurant->getDisallowMultipleMenus() && $category) { $prevItem = array_first($cart->cartItems); if ($prevItem->getSelectedPrice()->menu_id != $category->menu_id) { echo showNotice2('Items from different menus cannot be mixed. If you proceed adding items from this menu everything else will be cleared from your cart.'); } } ?> <? include(CORE_PATH . "templates3.0/customer/categorydisabled.php"); ?> <?=$page_fragment?> <script> let btns = document.getElementsByClassName('btn'); for (let i = 0; i < btns.length; i++) { let btn = btns[i]; if (btn.classList.contains('order')) { btn.innerHTML = '<?=$closed_msg?'View':'Order'?>' } } </script>
Arguments
"/home/deploy/EHungry-8-simon/Web/templates3.0/customer/categorydisabled.php"
/
home
/deploy
/EHungry-8-simon
/Web
/view3.0
/customer
/ordering3.php
include(CORE_PATH . "templates3.0/customer/locationlist.php"); break; case 1: App::debugbarTime($timerLevel = 'ordering3: menulist'); include(CORE_PATH . "templates3.0/customer/menulist.php"); break; case 2: if ($account->getDefaultOrderingPage() == 3) { // Then we show categories with pictures (grid) App::debugbarTime($timerLevel = 'ordering3: categorygrid'); include(CORE_PATH."templates3.0/customer/categorygrid.php"); } else { // Else, we show category lists with no pictures App::debugbarTime($timerLevel = 'ordering3: categorylist'); include(CORE_PATH."templates3.0/customer/categorylist.php"); } break; case 3: App::debugbarTime($timerLevel = 'ordering3: category'); include(CORE_PATH . "view3.0/customer/category.php"); break; case 4: case 5: App::debugbarTime($timerLevel = 'ordering3: menuitem'); include(CORE_PATH . "templates3.0/customer/menuitem.php"); break; } if (isset($timerLevel)) { App::debugbarTime($timerLevel); }
Arguments
"/home/deploy/EHungry-8-simon/Web/view3.0/customer/category.php"
/
home
/deploy
/EHungry-8-simon
/Web
/controllers
/customer.php
if (!in_array($_REQUEST['form'], ['checkout', 'nosuchpage', 'validatecallback', 'viewdeliveryzone'])) { //TODO: probably need to add one more form here that is called ajax, callback seems to reset when it shouldnt unset($_SESSION['validation_data']); } $locs = $account->getActiveRestaurants('position'); $tab = MainNavigationTab::getAllForAccount($account->getId()); include_once(CORE_PATH.'lib/helpers/customer3.0.php'); if (!in_array($_REQUEST['form'], $viewContentOnly)) { App::debugbarTime('header'); include_once(getLayoutPartPath('header')); App::debugbarTime('header'); } App::debugbarTime("view '{$_REQUEST['form']}'"); $path = CORE_PATH.'view' . ($_REQUEST['_VERSION'] == 4 ? 4 : 3) . '.0/customer/'.$_REQUEST['form'].'.php'; if (is_readable($path)) { include_once($path); } App::debugbarTime("view '{$_REQUEST['form']}'"); if (!in_array($_REQUEST['form'], $viewContentOnly)) { App::debugbarTime('footer'); include_once(getLayoutPartPath('footer')); App::debugbarTime('footer'); } function getLayoutPartPath($part) { if (isset($_REQUEST['_CORDOVA_APP'])) { $cart = Cart::getCurrent(); //FIXME: it's technically possible to end up with $template = null if (!$_REQUEST['contentonly']) { $template = !isset($_REQUEST["altdoc"])? "app/$part" : "app/alt$part"; } } else { $template = !isset($_REQUEST["altdoc"])? "customer/$part" : "customer/alt$part"; }
Arguments
"/home/deploy/EHungry-8-simon/Web/view3.0/customer/ordering3.php"
/
home
/deploy
/EHungry-8-simon
/Web
/index.php
App::startTime(); ErrorHandlers::register(); // Global.php is the core setup file for the application App::debugbarTime('Global.php'); require(dirname(__DIR__) . '/PHP/Global.php'); App::debugbarTime('Global.php'); /** @var string $controller The main controller - defined at /PHP/Global.php */ App::debugbarTime('Sentry - controller'); ErrorHandlers::sentryInit($controller); //doesn't always do much - not every controller has a Sentry project App::debugbarTime('Sentry - controller'); App::debugbarTime("controller: $controller"); apache_note('AppController', $controller); if (file_exists(CORE_PATH."lib/helpers/$controller.php")) { require CORE_PATH."lib/helpers/$controller.php"; } require CORE_PATH."controllers/$controller.php"; App::debugbarTime("controller: $controller");
Arguments
"/home/deploy/EHungry-8-simon/Web/controllers/customer.php"
Environment & details:
Key | Value |
aid | "restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
empty
empty
Key | Value |
PHPSESSID | "4voo7tilkfit3v3nvsnihc4crg"
|
Key | Value |
loc | "en_US"
|
customer_account_id | 58617
|
restaurant_id | 7033
|
status | array:2 [ 1 => [] 2 => [] ] |
cart | Cart {}
|
menu_id | 9016
|
Key | Value |
UNIQUE_ID | "aBFsxgMS4yXKAsZATUyyEgAAAAs"
|
SCRIPT_URL | "/restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
SCRIPT_URI | "http://www.springroll.com.8.simon.ehungry.net/restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
HTTP_HOST | "www.springroll.com.8.simon.ehungry.net"
|
HTTP_X_REAL_IP | "3.133.115.157"
|
HTTP_X_FORWARDED_FOR | "3.133.115.157"
|
HTTP_X_CONFKEY | "Main_Domain:6462"
|
HTTP_SCHEME | "https"
|
HTTP_EHENV | "TODO"
|
HTTP_CONNECTION | "close"
|
HTTP_ACCEPT | "*/*"
|
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
|
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate"
|
HTTP_COOKIE | "PHPSESSID=4voo7tilkfit3v3nvsnihc4crg"
|
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache/2.4.62 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
|
SERVER_NAME | "www.springroll.com.8.simon.ehungry.net"
|
SERVER_ADDR | "127.0.0.1"
|
SERVER_PORT | "80"
|
REMOTE_ADDR | "127.0.0.1"
|
DOCUMENT_ROOT | "/home/deploy/EHungry-8-simon/Web"
|
REQUEST_SCHEME | "http"
|
CONTEXT_PREFIX | "" |
CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-8-simon/Web"
|
SERVER_ADMIN | "root@localhost"
|
SCRIPT_FILENAME | "/home/deploy/EHungry-8-simon/Web/index.php"
|
REMOTE_PORT | "37350"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "aid=restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
REQUEST_URI | "/restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
SCRIPT_NAME | "/restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
PHP_SELF | "/restaurant/goldenchinalasvegas/order/main-menu/teriyaki"
|
REQUEST_TIME_FLOAT | 1745972422.139
|
REQUEST_TIME | 1745972422
|
empty
0. Whoops\Handler\PrettyPageHandler
Fatal error: Uncaught RedisException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. in [no active file]:0 Stack trace: #0 {main} thrown in [no active file] on line 0