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. RedisException thrown with message "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." Stacktrace: #14 RedisException in /home/deploy/EHungry-2-boyan/Web/classes/Cache.class.php:69 #13 Redis:setex in /home/deploy/EHungry-2-boyan/Web/classes/Cache.class.php:69 #12 Cache:Set in /home/deploy/EHungry-2-boyan/Web/classes/Cache.class.php:53 #11 Cache:SetObject in /home/deploy/EHungry-2-boyan/Web/classes/HolidayHours.class.php:157 #10 HolidayHours:getByDateAndTypeAndRestaurantOrCategory in /home/deploy/EHungry-2-boyan/Web/classes/HolidayHours.class.php:102 #9 HolidayHours:getByDateAndRestaurantAndType in /home/deploy/EHungry-2-boyan/Web/classes/Restaurant.class.php:3168 #8 Restaurant:getEffectiveOpenAndCloseTimes in /home/deploy/EHungry-2-boyan/Web/classes/Restaurant.class.php:3198 #7 Restaurant:getLatestEffectiveCloseTime in /home/deploy/EHungry-2-boyan/Web/classes/Restaurant.class.php:3326 #6 Restaurant:getMaxAdvanceDaysTimestamp in /home/deploy/EHungry-2-boyan/Web/classes/Restaurant.class.php:2533 #5 Restaurant:getAvailableTimes in /home/deploy/EHungry-2-boyan/Web/classes/Restaurant.class.php:2654 #4 Restaurant:getAvailableDates in /home/deploy/EHungry-2-boyan/Web/classes/Restaurant.class.php:2720 #3 Restaurant:getOrderingDaysForAnyType in /home/deploy/EHungry-2-boyan/Web/lib/global.php:1009 #2 isOrderingClosed in /home/deploy/EHungry-2-boyan/Web/model3.0/customer/ordering3.php:230 #1 include_once in /home/deploy/EHungry-2-boyan/Web/controllers/customer.php:831 #0 require in /home/deploy/EHungry-2-boyan/Web/index.php:30
Stack frames (15)
14
RedisException
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Cache.class.php
69
13
Redis
setex
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Cache.class.php
69
12
Cache
Set
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Cache.class.php
53
11
Cache
SetObject
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
HolidayHours.class.php
157
10
HolidayHours
getByDateAndTypeAndRestaurantOrCategory
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
HolidayHours.class.php
102
9
HolidayHours
getByDateAndRestaurantAndType
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
3168
8
Restaurant
getEffectiveOpenAndCloseTimes
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
3198
7
Restaurant
getLatestEffectiveCloseTime
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
3326
6
Restaurant
getMaxAdvanceDaysTimestamp
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
2533
5
Restaurant
getAvailableTimes
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
2654
4
Restaurant
getAvailableDates
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
2720
3
Restaurant
getOrderingDaysForAnyType
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
lib
/
global.php
1009
2
isOrderingClosed
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
model3.0
/
customer
/
ordering3.php
230
1
include_once
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
controllers
/
customer.php
831
0
require
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
index.php
30
/
home
/
deploy
/
EHungry-2-boyan
/
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
  1. "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-2-boyan
/
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
  1. "hh_2026-02-18 00:00:00_r8265_PICKUP_0"
    
  2. 86400
    
  3. "N;"
    
/
home
/
deploy
/
EHungry-2-boyan
/
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
  1. "hh_2026-02-18 00:00:00_r8265_PICKUP_0"
    
  2. "N;"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-2-boyan
/
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
  1. "hh_2026-02-18 00:00:00_r8265_PICKUP_0"
    
  2. null
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
HolidayHours.class.php
        }
        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);
    }
    
    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';
Arguments
  1. "2026-02-18 00:00:00"
    
  2. 8265
    
  3. null
    
  4. "PICKUP"
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
    }
 
    /**
     * Get open and closing time including holiday hours and closed hours
     * @param $baseOrderType
     * @param $localTime
     * @param $returnLatestClose
     * @return array
     */
    public function getEffectiveOpenAndCloseTimes($baseOrderType, $localTime = null, $returnLatestClose = false) {
        $dt = $baseOrderType == 'DELIVERY'? 'Delivery' : '';
        $localTime = $localTime ?: $this->getLocalTime();
        $dayOfWeek = date('l', $localTime);
        $opensAt = $this->{'get'.$dt.$dayOfWeek.'Open'}();
        $closesAt = $this->{'get'.$dt.$dayOfWeek.'Closed'}();
        if ($this->two_hour_sets && ($localTime > strtotime(date('Y-m-d', $localTime) . ' ' . $closesAt) || $returnLatestClose)) {
            $opensAt = $this->{'get'.$dt.$dayOfWeek.'Open2'}();
            $closesAt = $this->{'get'.$dt.$dayOfWeek.'Closed2'}();
        }
        $holidayHours = HolidayHours::getByDateAndRestaurantAndType(date('Y-m-d 00:00:00', $localTime), $this->id, $baseOrderType);
        if (is_object($holidayHours)) {
            $opensAt = $holidayHours->getStartHour();
            $closesAt = $holidayHours->getEndHour();
        }
        $closedHours = ClosedHours::getByDateAndRestaurantAndType($localTime, $this->id, $baseOrderType);
        if (!is_object($holidayHours) && is_array($closedHours) && count($closedHours) > 0) {
            foreach ($closedHours as $h) {
                $startTime = date('H:i:s', strtotime($h->getStartTime()));
                $endTime = date('H:i:s', strtotime($h->getEndTime().'-1 minute'));
                if ($startTime <= $opensAt && $endTime >= $opensAt) {
                    $opensAt = $endTime;
                }
                if ($startTime <= $closesAt && $endTime >= $closesAt) {
                    $closesAt = $startTime;
                }
            }
        }
        return ['open' => $opensAt, 'close' => $closesAt];
    }
 
Arguments
  1. "2026-02-18 00:00:00"
    
  2. 8265
    
  3. "PICKUP"
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
                    $opensAt = $endTime;
                }
                if ($startTime <= $closesAt && $endTime >= $closesAt) {
                    $closesAt = $startTime;
                }
            }
        }
        return ['open' => $opensAt, 'close' => $closesAt];
    }
 
    /**
     * @param int|null $localTime
     * @param string|null $orderType
     * @param $checkForDateOnly if true it will return the latest effective close time for $localTime's date, ignoring the time
     * @return false|int|mixed
     */
    public function getLatestEffectiveCloseTime($localTime = null, $orderType = null, $checkForDateOnly = false) {
        //pickup closing time
        $localTime = $localTime ?: $this->getLocalTime();
        $openAndClose = $this->getEffectiveOpenAndCloseTimes($orderType?:'PICKUP', $localTime, true);
        $dateAdjustment = $openAndClose['close'] < $openAndClose['open'] && ($checkForDateOnly || $openAndClose['close'] < date('H:i', $localTime)) ? ' +1 day' : '';
        $pickupCloseTimestamp = strtotime(date('Y-m-d', $localTime) . ' ' . $openAndClose['close'] . $dateAdjustment);
        if ($orderType) {
            return $pickupCloseTimestamp;
        }
 
        //delivery closing time
        $deliveryOpenAndClose = $this->getEffectiveOpenAndCloseTimes('DELIVERY', $localTime, true);
        $dateAdjustment = $deliveryOpenAndClose['close'] < $deliveryOpenAndClose['open'] && ($checkForDateOnly || $deliveryOpenAndClose['close'] < date('H:i', $localTime)) ? ' +1 day' : '';
        $deliveryCloseTimestamp = strtotime(date('Y-m-d', $localTime) . ' ' . $deliveryOpenAndClose['close'] . $dateAdjustment);
 
        //return latest closing time between pickup and del
        return max($deliveryCloseTimestamp, $pickupCloseTimestamp);
    }
 
    public function getTodaysHoursInfo() {
        $today = date('l');
        $holidayDate = date('Y-m-d 00:00:00', $this->getLocalTime());
 
        $hours = [];
Arguments
  1. "PICKUP"
    
  2. 1771424396
    
  3. true
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
                            'close'  => $closeDelivery2,
                            'closed' => $closedDelivery
                        ];
                    }
                }
            }
        }
        return ['hours' => $hours, 'earliestOpen' => $earliestOpen, 'latestClose' => $latestClose, 'earliestOpen2' => $earliestOpen2, 'latestClose2' => $latestClose2];
    }
 
    /**
     * Returns the latest possible timestamp to place an order, based on the max_advance_days setting
     * @param string $orderType
     * @return int
     */
    public function getMaxAdvanceDaysTimestamp($orderType) {
        $localTime = $this->getLocalTime();
        $maxAdvanceDays = is_numeric($this->max_advance_days) && $this->max_advance_days > 0 ? $this->max_advance_days : 28;
        $maxAdvanceTimestamp = strtotime('+'.$maxAdvanceDays.' Days', $localTime);
        return $this->getLatestEffectiveCloseTime($maxAdvanceTimestamp, $orderType);
    }
 
    /**
     * Returns the first time available in the datepicker for the current location and menu.
     * @param $menus
     * @return false|int|null
     * @throws Exception
     */
    public function getFirstAvailableTime($menus = []) {
        $availableDays = $this->getOrderingDaysForAnyType(true, $menus);
        if (count($availableDays)) {
            $availableDay = reset($availableDays);
            $pickupTimes = $this->getEffectiveOpenAndCloseTimes('PICKUP', strtotime($availableDay));
            $deliveryTimes = $this->getEffectiveOpenAndCloseTimes('DELIVERY', strtotime($availableDay));
            $firstAvailableTime = min($pickupTimes['open'], $deliveryTimes['open']);
            return strtotime($availableDay . ' ' . $firstAvailableTime);
        }
        return null;
    }
 
Arguments
  1. 1771424396
    
  2. "PICKUP"
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
            $isDateTomorrow = date('Y-m-d', strtotime(' +1 day', $restaurantTime)) == date('Y-m-d', $dateTimestamp);
            $isDateToday = date('Y-m-d', $restaurantTime) == date('Y-m-d', $dateTimestamp);
            if ($this->same_day_orders_only || $this->asap_orders_only) {
                //same day orders only - and we're still in open hours from previous night (ex: between 00:00 and 4:00 am)
                //we remove hours after 4:00 am since they are technically the next day
                if ($inHoursFromPrevDay && $isDateTomorrow) {
                    $startEndInvalidArray[] = ['00:00' => '23:59'];
                } else {
                    if ($prevDayClose && ($inHoursFromPrevDay || $isDateTomorrow)) {
                        $startEndInvalidArray[] = [date('H:i', strtotime($prevDayClose . '+ 1 minute')) => '23:59'];
                    } else {
                        if (!$isDateToday) {
                            $startEndInvalidArray[] = ['00:00' => '23:59'];
                        }
                    }
                }
            } else {
                //remove times after max number of days in advance of order ready date that a customer can place an order
                $dateFromTimestamp = date('Y-m-d', $dateTimestamp);
                $dateMaxTimestamp = $this->getMaxAdvanceDaysTimestamp($cart->getBaseOrderType());
                if (date('Y-m-d', $restaurantTime) != $dateFromTimestamp &&
                    date('Y-m-d', $dateMaxTimestamp) == $dateFromTimestamp) {
                    if ($prevDayClose) {
                        $startEndInvalidArray[] = [date('H:i', strtotime($prevDayClose . '+ 1 minute')) => '23:59'];
                    }
                } else {
                    if ($dateTimestamp > $dateMaxTimestamp && date('Y-m-d', $restaurantTime) != $dateFromTimestamp) {
                        $startEndInvalidArray[] = ['00:00' => '23:59'];
                    }
                }
            }
        }
 
        //remove times when ordering is closed
        if ($cart->getBaseOrderType()) {
            $closedUntil = $this->getLocalPublicOrderingClosedUntilText(true, $cart->getBaseOrderType());
            if ($closedUntil && date('Y-m-d', $dateTimestamp) == date('Y-m-d', $closedUntil)) {
                $startEndInvalidArray[] = ['00:00' => date('H:i', $closedUntil)];
            }
        }
Arguments
  1. "PICKUP"
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
 
            //disable days for when the cart items' category is closed
            $categories = $cart->getCartItemsCategories();
            foreach ($categories as $category) {
                $isCategoryHidden = ClosedHours::isCategoryDisabled($this, $category, $currentLocalTime, false, $orderType) || HolidayHours::isCategoryDisabled($this, $category, $currentLocalTime, false, $orderType);
                if ($isCategoryHidden) {
                    $closed = true;
                }
            }
 
            //ordering closed
            $closedUntil = $this->getLocalPublicOrderingClosedUntilText(true, $orderType);
            if ($closedUntil && strtotime(date('Y-m-d', $closedUntil)) > strtotime(date('Y-m-d', $currentLocalTime))) {
                $closed = true;
            }
 
            $dateCurrent = date('Y-m-d', $currentLocalTime);
            if (!$closed) {
                //if no times are available on that day - show whole day as unavailable
                $times = $this->getAvailableTimes(new DateTime($dateCurrent), $excludeClosedHours, $menus, $ignoreOrderingDaysLimit, $excludeHoursPastClosing);
                if (count($times)) {
                    $ymd = date('Y-m-d', $currentLocalTime);
                    $availableDates[$ymd] = $ymd;
                }
            }
        }
 
        $cart->setBaseOrderType($savedOrderType);
        $cart->updateToSession();
 
        $cache[$cacheKey] = $availableDates;
 
        if ($returnAsKeys) {
            return $availableDates;
        } else {
            return array_values($availableDates);
        }
    }
 
    public function hasAvailableDays($selectedTime, $orderType) {
Arguments
  1. DateTime @1768982400 {
      date: 2026-01-21 00:00:00.0 America/Los_Angeles (-08:00)
    }
    
  2. false
    
  3. array:1 [
      0 => Menu {}
    ]
    
  4. false
    
  5. false
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
classes
/
Restaurant.class.php
     * @param bool $ignoreDaysLimit
     * @param Menu[] $menus
     * @return array
     * @throws Exception
     */
    public function getOrderingDaysForAnyType($ignoreDaysLimit = false, $menus = []) {
        // Use a static variable to store cache within the request scope, so we don't recalculate this on every call within the request
        static $cache = [];
        $cacheKey = ($ignoreDaysLimit ? '1' : '0') .
            ($menus === null ? 'null' : md5(json_encode($menus)));
 
        if (isset($cache[$cacheKey])) {
            return $cache[$cacheKey];
        }
 
        $orderTypes = $this->getEnabledBaseOrderTypes();
        $availableDates = [];
        $dateTime = new DateTime(date('Y-m-d', $this->getLocalTime()));
        if (isset($orderTypes["PICKUP"]) || isset($orderTypes["DINEIN"])) {
            $availableDates = $this->getAvailableDates($dateTime, 'PICKUP', false, $ignoreDaysLimit, false, $menus);
        }
        if (isset($orderTypes["DELIVERY"])) {
            $availableDates = array_merge($availableDates, $this->getAvailableDates($dateTime, 'DELIVERY', false, $ignoreDaysLimit, false, $menus));
        }
        sort($availableDates);
        $cache[$cacheKey] = $availableDates;
        return $availableDates;
    }
 
    /**
     * @param DateTime $date
     * @return array
     */
    public function getAvailableTimeSlots($date) {
        //time slots
        if ($this->time_slots_enabled) {
            $validTimes = $this->getAvailableTimes($date);
            $timeSlots = RestaurantTimeSlot::getForRestaurant($this);
            $validTimeSlots = [];
 
Arguments
  1. DateTime @1768982400 {
      date: 2026-01-21 00:00:00.0 America/Los_Angeles (-08:00)
    }
    
  2. "PICKUP"
    
  3. false
    
  4. false
    
  5. false
    
  6. []
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
lib
/
global.php
            }
 
            if ($restaurant->public_ordering_closed_until) {
                return $restaurant->getLocalPublicOrderingClosedUntilText($returnClosedUntilTime);
            }
        }
        if (is_string($defaultMsg)) {
            return $returnClosedUntilTime ? 'Indefinitely' : $defaultMsg;
        }
 
        return $returnClosedUntilTime ? 'Indefinitely' : ($result?: true); //in case result is an empty string
    }
 
    if ($skipLoginCheck && is_object($restaurant) && $restaurant->isOrderingClosed()) {
        return true;
    }
 
    //If no ordering times are currently available, check if ordering will be possible later.
    //If not, return "Online ordering is closed" (effective indefinitely, represented as +200 years)
    if (is_object($restaurant) && count($restaurant->getOrderingDaysForAnyType()) === 0) {
        $firstAvailableTime = $restaurant->getFirstAvailableTime();
        if ($firstAvailableTime) {
            return $returnClosedUntilTime ? $firstAvailableTime
                : ('Online ordering is closed' . (' until ' . date('F jS \a\t g:iA', $firstAvailableTime)));
        }
        return $returnClosedUntilTime ? strtotime('+200 years') : 'Online ordering is closed';
    }
 
    return false;
}
 
function addErrorDialogueToLoadEvent() {
    if (!isset($_REQUEST['hide_error_dialog'])) {
        $errStr = str_replace("'", "&lsquo;", $_REQUEST['errors']);
        $errStr = preg_replace('/\r\n/', ' ', $errStr);
        if ($errStr) {
            return '<script type="text/javascript" defer="defer">
            var tmpOnload = window.onload;
            window.onload = function() {
                if(tmpOnload) tmpOnload();
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
model3.0
/
customer
/
ordering3.php
}
$_REQUEST['_PAGETITLE_IS_ORDERING'] = true;
switch ($_REQUEST['ordering_level']) {
    case 0:
        $_REQUEST['_PAGETITLE'] = 'Choose A Location';
        break;
    case 1: //Restaurant
        if (count($menus) == 1) {
            $qs = '';
            if ($_GET['embed']) {
                $qs = '?embed='.$_GET['embed'];
            }
            redirectToOrdering([$restaurant, reset($menus)], $qs);
        }
        $_REQUEST['_PAGETITLE'] = 'Choose A Menu';
        break;
    case 2: //Menu
        break;
    case 3: //Category
        if (isOrderingClosed(CLOSED_MSG_RESTAURANT)) {
            $contentAndCartClass = 'contentandcart-category-closed';
        }
 
        if (ClosedHours::isCategoryHidden($restaurant, $category) || HolidayHours::isCategoryHidden($restaurant, $category)) {
            redirectToOrderingWithError('Sorry, this category is currently unavailable.', [$restaurant, $menu, -1]);
        }
        $page_fragment = $account->getCategoryPageFragment($menu, $category->getId(), $restaurant->getHideAllPrices(), $restaurant, true);
 
        if (isset($_REQUEST['sort'])) {
            if ($_REQUEST['sort'] == "name") {
                usort($items, array("MenuItem", "nameAlphaSort"));
            } elseif ($_REQUEST['sort'] == "price") {
                usort($items, array("MenuItem", "priceSort"));
            }
        }
        break;
    case 4: //Item
    case 5: //Price
        //check if we're closed right now. If so, display warning
        if (!isset($_SESSION['time_ok']) && is_object($restaurant)) {
Arguments
  1. "RESTAURANT"
    
/
home
/
deploy
/
EHungry-2-boyan
/
Web
/
controllers
/
customer.php
 
        $cart->setDefaultOrderType($account, $restaurant);
 
        $cart->setDefaultFees($account, $restaurant);
    }
 
    $restaurantRequiredPages = [
        'login',
        'customerorders'
    ];
    if (is_null($restaurant) && in_array($_REQUEST['form'], $restaurantRequiredPages)) {
        redirectTo('home');
    }
 
    $modelPath = CORE_PATH . 'model4.0/customer/'.$_REQUEST['form'].'.php';
} else {
    $_REQUEST['mobiledetect'] = new Mobile_Detect;
}
if (is_readable($modelPath)) {
    include_once($modelPath);
}
App::debugbarTime("model '{$_REQUEST['form']}'");
 
$custom_nav = CustomNavigationTab::getAllForAccount($account->getId());
 
$view2HideRightColumns = ['checkout', 'dashboard', 'customerdetails', 'customerorders',
                                'mydeliveryaddresses', 'emailpreferences', 'mycoupons', 'mycreditcards', 'mypassword',
                                'customerorderdetails', 'editcustomer', 'adddeliveryaddress',
                                'editlocation', 'orderconfirmation','viewcart', 'map', 'validatecallback'];
if (in_array($_REQUEST['form'], $view2HideRightColumns)) {
    $hideRightColumn = true;
}
 
$myAccountPages = ['accountsettings', 'dashboard', 'customerdetails', 'customerorders', 'editaddress', 'editcustomer', 'mydeliveryaddresses', 'editlocation', 'emailpreferences', 'mycoupons', 'mycreditcards', 'mypassword', 'adddeliveryaddress', 'map', 'myloyalty'];
if (in_array($_REQUEST['form'], $myAccountPages)) {
    $isMyAccountPage = true;
}
 
if (!isset($cart) || !is_object($cart)) {
    $GLOBALS['cart'] = \Cart::getCurrent();
Arguments
  1. "/home/deploy/EHungry-2-boyan/Web/model3.0/customer/ordering3.php"
    
/
home
/
deploy
/
EHungry-2-boyan
/
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
  1. "/home/deploy/EHungry-2-boyan/Web/controllers/customer.php"
    

Environment & details:

Key Value
aid
"restaurant/jadedragonakronoh/menu"
empty
empty
empty
Key Value
loc
"en_US"
customer_account_id
66354
cart
Cart {}
restaurant_id
8265
menu_id
10519
Key Value
UNIQUE_ID
"aXC2XNxoBpYLQ2xYnYfbdwAAAAo"
SCRIPT_URL
"/restaurant/jadedragonakronoh/menu"
SCRIPT_URI
"http://www.springroll.com.2.boyan.ehungry.net/restaurant/jadedragonakronoh/menu"
HTTP_HOST
"www.springroll.com.2.boyan.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.48"
HTTP_X_FORWARDED_FOR
"216.73.216.48"
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"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache/2.4.66 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
SERVER_NAME
"www.springroll.com.2.boyan.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"127.0.0.1"
DOCUMENT_ROOT
"/home/deploy/EHungry-2-boyan/Web"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-2-boyan/Web"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/home/deploy/EHungry-2-boyan/Web/index.php"
REMOTE_PORT
"36950"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/jadedragonakronoh/menu"
REQUEST_URI
"/restaurant/jadedragonakronoh/menu"
SCRIPT_NAME
"/restaurant/jadedragonakronoh/menu"
PHP_SELF
"/restaurant/jadedragonakronoh/menu"
REQUEST_TIME_FLOAT
1768994396.618
REQUEST_TIME
1768994396
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