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: #9 RedisException in /home/deploy/EHungry-3-boyan/Web/classes/Cache.class.php:69 #8 Redis:setex in /home/deploy/EHungry-3-boyan/Web/classes/Cache.class.php:69 #7 Cache:Set in /home/deploy/EHungry-3-boyan/Web/classes/Cache.class.php:57 #6 Cache:SetArray in /home/deploy/EHungry-3-boyan/Web/classes/CustomOrderType.class.php:78 #5 CustomOrderType:getAllActiveForRestaurant in /home/deploy/EHungry-3-boyan/Web/classes/Restaurant.class.php:2252 #4 Restaurant:getHasBaseOrderType in /home/deploy/EHungry-3-boyan/Web/classes/Restaurant.class.php:2248 #3 Restaurant:getHasDineInBase in /home/deploy/EHungry-3-boyan/Web/lib/global.php:3978 #2 checkTimeWarning in /home/deploy/EHungry-3-boyan/Web/model3.0/customer/ordering3.php:251 #1 include_once in /home/deploy/EHungry-3-boyan/Web/controllers/customer.php:824 #0 require in /home/deploy/EHungry-3-boyan/Web/index.php:30
Stack frames (10)
9
RedisException
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Cache.class.php
69
8
Redis
setex
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Cache.class.php
69
7
Cache
Set
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Cache.class.php
57
6
Cache
SetArray
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
CustomOrderType.class.php
78
5
CustomOrderType
getAllActiveForRestaurant
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Restaurant.class.php
2252
4
Restaurant
getHasBaseOrderType
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Restaurant.class.php
2248
3
Restaurant
getHasDineInBase
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
lib
/
global.php
3978
2
checkTimeWarning
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
model3.0
/
customer
/
ordering3.php
251
1
include_once
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
controllers
/
customer.php
824
0
require
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
index.php
30
/
home
/
deploy
/
EHungry-3-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-3-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. "custom_order_types_70619_7776"
    
  2. 86400
    
  3. "a:0:{}"
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Cache.class.php
                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;
    }
 
    public static function Exists(...$key):?bool {
        if ($i = static::getInstance()) {
            return $i->exists($key);
Arguments
  1. "custom_order_types_70619_7776"
    
  2. "a:0:{}"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
CustomOrderType.class.php
        if ($aObj !== false) {
            return $aObj;
        }
 
        $db_conn = DB::conn();
        $rbs = [];
        $sql = "SELECT * FROM ".CustomOrderType::getTableName()." WHERE account_id = ? ORDER BY display_name ASC";
        $db_conn->bindParameter($sql, 1, $aid, "integer");
        $result = $db_conn->query($sql);
        if ($result && $result->rowCount() > 0) {
            while ($row = $result->fetch()) {
                $customorderType = new CustomOrderType();
                $customorderType->loadFromArray($row);
                $activeAtRestaurants = json_decode($customorderType->active_at_restaurants, true);
                if ($activeAtRestaurants[$rid]) {
                    $rbs[$row["id"]] = $customorderType;
                }
            }
        }
        Cache::SetArray($cacheKey, $rbs);
        return $rbs;
    }
 
    public static function clearCacheForRestaurant($aid, $rid) {
        $cacheKey = 'custom_order_types_'.$aid.'_'.$rid;
        Cache::Delete($cacheKey);
    }
    public function getBaseTypeDisplayName() {
        $orderType = strtolower($this->getBaseType());
        return ($orderType=='delivery')?'Delivery':(($orderType=='pickup')?PICKUP_LABEL:(($orderType=='dinein')?DINEIN_LABEL:(($orderType=='pickup&dinein')?PICKUP_LABEL.' & '.DINEIN_LABEL:$this->getBaseType())));
    }
}
 
Arguments
  1. "custom_order_types_70619_7776"
    
  2. []
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Restaurant.class.php
        if ($this->getHasDineIn()) {
            $types[] = 'DINEIN';
        }
        return implode('|', $types);
    }
 
    public function getHasPickupBase() {
        return $this->getHasPickup() || $this->getHasBaseOrderType('PICKUP');
    }
 
    public function getHasDeliveryBase() {
        return $this->getHasDelivery() || $this->getHasBaseOrderType('DELIVERY');
    }
 
    public function getHasDineInBase() {
        return $this->getHasDineIn() || $this->getHasBaseOrderType('DINEIN');
    }
 
    private function getHasBaseOrderType($baseType) {
        $customOrderTypes = CustomOrderType::getAllActiveForRestaurant($this->getAccountId(), $this->getId());
        foreach ((array)$customOrderTypes as $customOrderType) {
            if ($customOrderType->base_type === $baseType) {
                return true;
            }
        }
        return false;
    }
 
    public function getHoursName($baseType, $uppercase = false) {
        $customOrderTypes = CustomOrderType::getAllActiveForRestaurant($this->getAccountId(), $this->getId());
        $hoursNames = [];
        switch ($baseType) {
            case 'PICKUP':
                if ($this->getHasPickup()) {
                    $hoursNames[] = PICKUP_LABEL;
                }
                break;
            case 'DINEIN':
                if ($this->getHasDineIn()) {
                    $hoursNames[] = DINEIN_LABEL;
Arguments
  1. 70619
    
  2. 7776
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Restaurant.class.php
        }
        if ($this->getHasPickup()) {
            $types[] = 'PICKUP';
        }
        if ($this->getHasDineIn()) {
            $types[] = 'DINEIN';
        }
        return implode('|', $types);
    }
 
    public function getHasPickupBase() {
        return $this->getHasPickup() || $this->getHasBaseOrderType('PICKUP');
    }
 
    public function getHasDeliveryBase() {
        return $this->getHasDelivery() || $this->getHasBaseOrderType('DELIVERY');
    }
 
    public function getHasDineInBase() {
        return $this->getHasDineIn() || $this->getHasBaseOrderType('DINEIN');
    }
 
    private function getHasBaseOrderType($baseType) {
        $customOrderTypes = CustomOrderType::getAllActiveForRestaurant($this->getAccountId(), $this->getId());
        foreach ((array)$customOrderTypes as $customOrderType) {
            if ($customOrderType->base_type === $baseType) {
                return true;
            }
        }
        return false;
    }
 
    public function getHoursName($baseType, $uppercase = false) {
        $customOrderTypes = CustomOrderType::getAllActiveForRestaurant($this->getAccountId(), $this->getId());
        $hoursNames = [];
        switch ($baseType) {
            case 'PICKUP':
                if ($this->getHasPickup()) {
                    $hoursNames[] = PICKUP_LABEL;
                }
Arguments
  1. "DINEIN"
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
lib
/
global.php
        $timeRangesArray = [[$timeRange->getStart() => $timeRange->getEnd()]];
    }
    return getTimes($timeRangesArray);
}
 
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;
            }
        }
 
        $closedHours = ClosedHours::getByDateAndRestaurantAndType($localTime, $restaurant->id, $cart->base_order_type) ?: [];
        foreach ($closedHours as $h) {
            $startTime = strtotime(date('1990-01-01 H:i:00', strtotime($h->start_time)));
/
home
/
deploy
/
EHungry-3-boyan
/
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-3-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-3-boyan/Web/model3.0/customer/ordering3.php"
    
/
home
/
deploy
/
EHungry-3-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-3-boyan/Web/controllers/customer.php"
    

Environment & details:

Key Value
aid
"restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
empty
empty
Key Value
PHPSESSID
"sebradapug4qi2id61b3ijrq59"
Key Value
loc
"en_US"
customer_account_id
70619
cart
Cart {}
restaurant_id
7776
app_banner_shown
true
status
array:2 [
  1 => []
  2 => []
]
menu_id
9904
Key Value
UNIQUE_ID
"aTaV97nDpHPT8mRjgQUbbQAAAAk"
SCRIPT_URL
"/restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
SCRIPT_URI
"http://www.springroll.com.3.boyan.ehungry.net/restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
HTTP_HOST
"www.springroll.com.3.boyan.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.186"
HTTP_X_FORWARDED_FOR
"216.73.216.186"
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=sebradapug4qi2id61b3ijrq59"
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.3.boyan.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"127.0.0.1"
DOCUMENT_ROOT
"/home/deploy/EHungry-3-boyan/Web"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-3-boyan/Web"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/home/deploy/EHungry-3-boyan/Web/index.php"
REMOTE_PORT
"46650"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
REQUEST_URI
"/restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
SCRIPT_NAME
"/restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
PHP_SELF
"/restaurant/tsingtsaowest/order/main/appetizers/3-crab-rangoon-w-cream-cheese-lg4"
REQUEST_TIME_FLOAT
1765185015.86
REQUEST_TIME
1765185015
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