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: #12 RedisException in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:69 #11 Redis:setex in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:69 #10 Cache:Set in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:53 #9 Cache:SetObject in /home/deploy/EHungry-8-simon/Web/classes/HolidayHours.class.php:157 #8 HolidayHours:getByDateAndTypeAndRestaurantOrCategory in /home/deploy/EHungry-8-simon/Web/classes/HolidayHours.class.php:102 #7 HolidayHours:getByDateAndRestaurantAndType in /home/deploy/EHungry-8-simon/Web/classes/Restaurant.class.php:3076 #6 Restaurant:getEffectiveOpenAndCloseTimes in /home/deploy/EHungry-8-simon/Web/classes/Restaurant.class.php:3108 #5 Restaurant:getLatestEffectiveCloseTime in /home/deploy/EHungry-8-simon/Web/classes/Cart.class.php:3372 #4 Cart:getIsOrderForAnotherDay in /home/deploy/EHungry-8-simon/Web/classes/Cart.class.php:750 #3 Cart:getEarliestOrderTime in /home/deploy/EHungry-8-simon/Web/lib/global.php:4049 #2 checkTimeWarning in /home/deploy/EHungry-8-simon/Web/model3.0/customer/ordering3.php:251 #1 include_once in /home/deploy/EHungry-8-simon/Web/controllers/customer.php:855 #0 require in /home/deploy/EHungry-8-simon/Web/index.php:30
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
102
7
HolidayHours
getByDateAndRestaurantAndType
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Restaurant.class.php
3076
6
Restaurant
getEffectiveOpenAndCloseTimes
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Restaurant.class.php
3108
5
Restaurant
getLatestEffectiveCloseTime
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cart.class.php
3372
4
Cart
getIsOrderForAnotherDay
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cart.class.php
750
3
Cart
getEarliestOrderTime
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
lib
/
global.php
4049
2
checkTimeWarning
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
model3.0
/
customer
/
ordering3.php
251
1
include_once
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
controllers
/
customer.php
855
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
  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-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
  1. "hh__r7733_DELIVERY_0"
    
  2. 86400
    
  3. "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
  1. "hh__r7733_DELIVERY_0"
    
  2. "N;"
    
  3. 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
  1. "hh__r7733_DELIVERY_0"
    
  2. null
    
/
home
/
deploy
/
EHungry-8-simon
/
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. false
    
  2. 7733
    
  3. null
    
  4. "DELIVERY"
    
/
home
/
deploy
/
EHungry-8-simon
/
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', $dayOfWeek), $this->id, $baseOrderType);
        if (is_object($holidayHours)) {
            $opensAt = $holidayHours->getStartHour();
            $closesAt = $holidayHours->getEndHour();
        }
        $closedHours = ClosedHours::getByDateAndRestaurantAndType(date('Y-m-d 00:00:00', $dayOfWeek), $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. false
    
  2. 7733
    
  3. "DELIVERY"
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Restaurant.class.php
                if ($startTime <= $closesAt && $endTime >= $closesAt) {
                    $closesAt = $startTime;
                }
            }
        }
        return ['open' => $opensAt, 'close' => $closesAt];
    }

    public function getLatestEffectiveCloseTime($localTime = null, $orderType = null) {
        //pickup closing time
        $localTime = $localTime ?: $this->getLocalTime();
        $openAndClose = $this->getEffectiveOpenAndCloseTimes($orderType?:'PICKUP', $localTime, true);
        $dateAdjustment = $openAndClose['close'] < $openAndClose['open'] && $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'] && $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 = [];
        $earliestOpen = null;
        $latestClose = null;
        $earliestOpen2 = null;
        $latestClose2 = null;

        if ($this->getHasDineInBase()
            || $this->getHasPickupBase()
            || ($this->getHasDeliveryBase() && !$this->separate_delivery_hours)
Arguments
  1. "DELIVERY"
    
  2. 1745995768
    
  3. true
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cart.class.php
 
    /**
     * @param string $orderType
     * @return bool
     */
    public function getAsapAndLaterDisabled(Restaurant $restaurant, $orderType = null) {
        $thirdPartyDeliveryDisabled = $orderType == 'DELIVERY' && $restaurant->isThirdPartyDeliveryDisablingDelivery();
        return $restaurant->getPublicOrderingIsClosedForever($orderType) || !$restaurant->hasAvailableDays($restaurant->getLocalTime(), $orderType) || $thirdPartyDeliveryDisabled;
    }
 
    /**
     * Returns true if the customer is not ordering for today
     * @param \Restaurant $restaurant
     * @param int $selectedTime timestamp
     * @param int $localTime timestamp
     * @return bool
     */
    public function getIsOrderForAnotherDay(Restaurant $restaurant, $selectedTime, $localTime = null) {
        $localTime = $localTime ?: $restaurant->getLocalTime();
        return $selectedTime > $restaurant->getLatestEffectiveCloseTime($localTime);
    }
}
 
Arguments
  1. 1745995768
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cart.class.php
                $this->setClosedAtEot(false);
                $this->setOrderPushedToNextDay(false);
                $this->setCalculatedNextOpenTime(0);
                if ($this->getIsClosedAtTime($restaurant, $eotCheckTime)) {
                    $this->setClosedAtEot(true);
                    $eot = $this->getNextOpenTime($restaurant, $eot, false, true);
                    $this->setCalculatedNextOpenTime($eot);
                    if (date('Y-m-d', $localTime) != date('Y-m-d', $eot)) {
                        if ($restaurant->getRequirePrepTimeOpening()) {
                            $eot = strtotime('+'.$prepTime.' Seconds', $eot);
                        }
                    }
                    $eot = $this->addThrottleTime($restaurant, $eot);
                } else {
                    $openTime = $this->getNextOpenTime($restaurant, $eot);
                    $this->setCalculatedNextOpenTime($openTime);
                }
 
                //If order is pushed to next day - save that info to show warnings to customer
                if ($this->getIsOrderForAnotherDay($restaurant, $eotCheckTime)) {
                    $this->setOrderPushedToNextDay(true);
                }
            } elseif ($this->getCalculatedNextOpenTime() && $this->getIsClosedAtTime($restaurant, $eotCheckTime)) {
                if ($this->getCalculatedNextOpenTime() < $eot) {
                    $eot = $this->getNextOpenTime($restaurant, $eot, false, true);
                } else {
                    $eot = $this->getCalculatedNextOpenTime();
                    $eot = $this->addThrottleTime($restaurant, $eot);
                }
            }
 
            //make sure earliest order time is after prep time
            if ($eot < $restaurant->getLocalTime() + $prepTime) {
                $eot = $restaurant->getLocalTime() + $prepTime;
            }
 
            return $eot;
        }
    }
 
Arguments
  1. Restaurant {}
    
  2. 1746037500
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
lib
/
global.php
                } else {
                    $times[$i.':'.$aMinute.' '.$meridian] = $i.':'.$aMinute.' '.$meridian;
                }
            }
        }
    }
    return $times;
}

function checkTimeWarning(Cart $cart, Restaurant $restaurant) {
    $originalOrderType = $cart->base_order_type;
    $localTime = $restaurant->local_time;
    $holidayDate = date('Y-m-d 00:00:00', $localTime);

    $closedTypePickup = false;
    if ($restaurant->getHasPickupBase()) {
        $cart->setBaseOrderType('PICKUP');
        $cart->updateToSession();
        $closedTypePickup = $cart->getIsClosedAtTime($restaurant, $localTime);
        $eot['PICKUP'] = $restaurant->hasAvailableDays($localTime, 'PICKUP') ? $cart->getEarliestOrderTime($restaurant, null, true) : null;
    }

    $closedTypeDinein = false;
    if ($restaurant->getHasDineInBase()) {
        $cart->setBaseOrderType('DINEIN');
        $cart->updateToSession();
        $closedTypeDinein = $cart->getIsClosedAtTime($restaurant, $localTime);
        $eot['DINEIN'] = $restaurant->hasAvailableDays($localTime, 'DINEIN') ? $cart->getEarliestOrderTime($restaurant, null, true) : null;
    }

    if ($restaurant->getHasDineInBase() || $restaurant->getHasPickupBase()) {
        $holidayHours = HolidayHours::getByDateAndRestaurantAndType($holidayDate, $restaurant->id, $cart->base_order_type);
        if ($holidayHours) {
            $startTime = strtotime(date('1990-01-01 H:i:00', strtotime($holidayHours->start_hour)));
            $endTime = strtotime(date('1990-01-01 H:i:00', strtotime($holidayHours->end_hour)));
            $readyTime = strtotime(date('1990-01-01 H:i:s', $localTime));
            if ($holidayHours->is_closed || ($startTime > $readyTime || $endTime < $readyTime)) {
                $eot['DINEIN_HOLIDAY'] = $holidayHours->message;
            }
        }
Arguments
  1. Restaurant {}
    
  2. null
    
  3. true
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
model3.0
/
customer
/
ordering3.php
        }
 
        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)) {
            $eot = checkTimeWarning($cart, $restaurant);
        }
        break;
}
 
if ($_REQUEST['ordering_level'] < 3 && is_object($menu)) {
    if ($account->getDefaultOrderingPage() == 1) {
        if ($_GET['embed']) {
            $qs = '?embed='.$_GET['embed'];
        } else {
            $qs = '';
        }
        redirectToOrdering([$restaurant, $menu, -1], $qs);
    } elseif ($account->getDefaultOrderingPage() == 2) {
        if ($_GET['embed']) {
            $qs = '?sort=alpha&embed='.$_GET['embed'];
        } else {
            $qs = '?sort=alpha';
        }
        redirectToOrdering([$restaurant, $menu, -1], $qs);
    }
Arguments
  1. Cart {}
    
  2. Restaurant {}
    
/
home
/
deploy
/
EHungry-8-simon
/
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-8-simon/Web/model3.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
  1. "/home/deploy/EHungry-8-simon/Web/controllers/customer.php"
    

Environment & details:

Key Value
aid
"restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
empty
empty
Key Value
PHPSESSID
"ruadaq3oundsig2kn1tj2804c5"
Key Value
loc
"en_US"
customer_account_id
44993
restaurant_id
7733
menu_id
9858
cart
Cart {}
Key Value
UNIQUE_ID
"aBGdyBOKmhPf466AHkDz-AAAAAw"
SCRIPT_URL
"/restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
SCRIPT_URI
"http://www.springroll.com.8.simon.ehungry.net/restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
HTTP_HOST
"www.springroll.com.8.simon.ehungry.net"
HTTP_X_REAL_IP
"18.119.140.58"
HTTP_X_FORWARDED_FOR
"18.119.140.58"
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=ruadaq3oundsig2kn1tj2804c5"
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
"55804"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
REQUEST_URI
"/restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
SCRIPT_NAME
"/restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
PHP_SELF
"/restaurant/hongkongcheektowaga/order/main/our-chefs-suggestions/86-seafood-delight"
REQUEST_TIME_FLOAT
1745984968.28
REQUEST_TIME
1745984968
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