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
/HolidayHours.class.php
157
8
HolidayHours
getByDateAndTypeAndRestaurantOrCategory
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/HolidayHours.class.php
106
7
HolidayHours
getByDateAndCategoryAndType
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/HolidayHours.class.php
87
6
HolidayHours
isCategoryDisabled
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/Category.class.php
624
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
"hh_2025-04-29 00:00:00_c175202_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
"hh_2025-04-29 00:00:00_c175202_PICKUP_0"
"N;"
86400
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/HolidayHours.class.php
} } } else { $sql = "SELECT id FROM ".HolidayHours::getTableName()." WHERE for_date = ? AND " . ($cid ? "category_id" : "restaurant_id") . " = ? AND order_type = ? $where ORDER BY id DESC"; $db_conn->bindParameter($sql, 1, $date, "string"); $db_conn->bindParameter($sql, 1, $rid, "integer"); $db_conn->bindParameter($sql, 1, $type, "string"); $result = $db_conn->query($sql); if ($result && $result->rowCount() > 0) { if ($row = $result->fetch()) { $hh = new HolidayHours($row['id']); Cache::SetObject($cacheKey, $hh); return $hh; } } } if ($cacheKey) { Cache::SetObject($cacheKey, null); } return null; } public static function getByDateAndRestaurant($date, $rid) { $db_conn = DB::conn(); $rbs = []; $sql = "SELECT id FROM ".HolidayHours::getTableName()." WHERE for_date = ? AND restaurant_id = ? ORDER BY id DESC"; $db_conn->bindParameter($sql, 1, $date, "string"); $db_conn->bindParameter($sql, 1, $rid, "integer"); $result = $db_conn->query($sql); if ($result) { while ($row = $result->fetch()) { $rbs[] = new HolidayHours($row['id']); } } return $rbs; } public static function storeHours($holidayClosed, $forDate, $restaurantID, $holidayNotifications, $holidayOpenHour, $holidayOpenMinute, $holidayOpenMeridien, $holidayClosedHour, $holidayClosedMinute, $holidayClosedMeridien, $timeErrorMessage, $orderType, $namedHolidayID, $holidayDateRangeID, $categoryID = null, $isYearly = false, $showCategoryWhenClosed = false) {
Arguments
"hh_2025-04-29 00:00:00_c175202_PICKUP_0"
null
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/HolidayHours.class.php
$holidayHours = HolidayHours::getByDateAndCategoryAndType(date('Y-m-d 00:00:00', $time), $category->getId(), $orderType, $isHiddenToCustomers); if (is_object($holidayHours)) { return $holidayHours; } //check parent category too if ($category->parent_id) { $holidayHours = HolidayHours::getByDateAndCategoryAndType(date('Y-m-d 00:00:00', $time), $category->parent_id, $orderType, $isHiddenToCustomers); if (is_object($holidayHours)) { return $holidayHours; } } return false; } public static function getByDateAndRestaurantAndType($date, $rid, $type = 'PICKUP') { return HolidayHours::getByDateAndTypeAndRestaurantOrCategory($date, $rid, null, $type); } public static function getByDateAndCategoryAndType($date, $cid, $type = null, $isHiddenToCustomers = false) { return HolidayHours::getByDateAndTypeAndRestaurantOrCategory($date, null, $cid, $type, $isHiddenToCustomers); } public static function getByDateAndTypeAndRestaurantOrCategory($date, $rid = null, $cid = null, $type = 'PICKUP', $isHiddenToCustomers = false) { $db_conn = DB::conn(); $cacheKey = 'hh_'.$date.'_'.($cid > 0 ? ('c'.$cid):('r'.$rid)).'_'.($type?:'ALL') . "_" . ($isHiddenToCustomers ? '1' : '0'); $aObj = Cache::GetObject($cacheKey, true); if ($aObj || is_null($aObj)) { return $aObj; } $where = ''; if ($cid) { $rid = $cid; if ($isHiddenToCustomers) { $where .= ' AND show_category_when_closed = 0'; } } if (!$type) { //if we don't have a type to check for, check if *ALL* types are either open or closed $sql = "SELECT id, is_closed, COUNT(id) as cnt FROM ".HolidayHours::getTableName()." WHERE for_date = ? AND " .
Arguments
"2025-04-29 00:00:00"
175202
175202
"PICKUP"
false
/
home
/deploy
/EHungry-8-simon
/Web
/classes
/HolidayHours.class.php
return self::isCategoryDisabled($restaurant, $category, $time, true); } /** * @param Restaurant $restaurant * @param Category $category * @param null $time * @param bool $isHiddenToCustomers * @param null $orderType * @return bool|\HolidayHours|object */ 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(); } $holidayHours = HolidayHours::getByDateAndCategoryAndType(date('Y-m-d 00:00:00', $time), $category->getId(), $orderType, $isHiddenToCustomers); if (is_object($holidayHours)) { return $holidayHours; } //check parent category too if ($category->parent_id) { $holidayHours = HolidayHours::getByDateAndCategoryAndType(date('Y-m-d 00:00:00', $time), $category->parent_id, $orderType, $isHiddenToCustomers); if (is_object($holidayHours)) { return $holidayHours; } } return false; } public static function getByDateAndRestaurantAndType($date, $rid, $type = 'PICKUP') { return HolidayHours::getByDateAndTypeAndRestaurantOrCategory($date, $rid, null, $type); } public static function getByDateAndCategoryAndType($date, $cid, $type = null, $isHiddenToCustomers = false) { return HolidayHours::getByDateAndTypeAndRestaurantOrCategory($date, null, $cid, $type, $isHiddenToCustomers); }
Arguments
"2025-04-29 00:00:00"
175202
"PICKUP"
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(); $db_conn->bindParameter($sql, 1, $date, "string");
Arguments
Restaurant {}
Category {}
1745987257
/
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/fortunefloralpark/order/main/fried-rice"
|
empty
empty
Key | Value |
PHPSESSID | "92meu0b83klgunr58odesi14en"
|
Key | Value |
loc | "en_US"
|
customer_account_id | 94018
|
restaurant_id | 10928
|
cart | Cart {}
|
eot | 1745989013
|
redirect_form | "checkout"
|
CSRF_TOKEN | array:1 [ "register" => "42bb14d7ca6c37939a649ffd151d5959921155498fb018f491b48d46561cb2a0" ] |
app_banner_shown | true
|
status | array:2 [ 1 => [] 2 => [] ] |
menu_id | 13717
|
Key | Value |
UNIQUE_ID | "aBF8idS_CoqjCRQyy6reHwAAACc"
|
SCRIPT_URL | "/restaurant/fortunefloralpark/order/main/fried-rice"
|
SCRIPT_URI | "http://www.springroll.com.8.simon.ehungry.net/restaurant/fortunefloralpark/order/main/fried-rice"
|
HTTP_HOST | "www.springroll.com.8.simon.ehungry.net"
|
HTTP_X_REAL_IP | "3.138.120.156"
|
HTTP_X_FORWARDED_FOR | "3.138.120.156"
|
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=92meu0b83klgunr58odesi14en"
|
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 | "57850"
|
GATEWAY_INTERFACE | "CGI/1.1"
|
SERVER_PROTOCOL | "HTTP/1.0"
|
REQUEST_METHOD | "GET"
|
QUERY_STRING | "aid=restaurant/fortunefloralpark/order/main/fried-rice"
|
REQUEST_URI | "/restaurant/fortunefloralpark/order/main/fried-rice"
|
SCRIPT_NAME | "/restaurant/fortunefloralpark/order/main/fried-rice"
|
PHP_SELF | "/restaurant/fortunefloralpark/order/main/fried-rice"
|
REQUEST_TIME_FLOAT | 1745976457.129
|
REQUEST_TIME | 1745976457
|
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