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/MenuItem.class.php:551 #5 MenuItem:loadPricesFromMenu in /home/deploy/EHungry-3-boyan/Web/classes/Category.class.php:349 #4 Category:getItems in /home/deploy/EHungry-3-boyan/Web/templates3.0/customer/schema.php:214 #3 {closure} in /home/deploy/EHungry-3-boyan/Web/templates3.0/customer/schema.php:277 #2 include_once in /home/deploy/EHungry-3-boyan/Web/templates4.0/customer/header.php:275 #1 include_once in /home/deploy/EHungry-3-boyan/Web/controllers/customer.php:867 #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
/
MenuItem.class.php
551
5
MenuItem
loadPricesFromMenu
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Category.class.php
349
4
Category
getItems
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
templates3.0
/
customer
/
schema.php
214
3
{closure}
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
templates3.0
/
customer
/
schema.php
277
2
include_once
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
templates4.0
/
customer
/
header.php
275
1
include_once
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
controllers
/
customer.php
867
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. "mim_prices_1939327_15503_ASC_1_0"
    
  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. "mim_prices_1939327_15503_ASC_1_0"
    
  2. "a:0:{}"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
MenuItem.class.php
        if ($co) {
            $this->prices = $co;
        } else {
            $db_conn = DB::conn();
            $this->prices = [];
            $shownWhere = $is_shown_only ? ' AND is_shown = 1 ' : '';
            $zeroWhere  = $includeZeroDollarPrices ?'':' AND price_value > 0';
            $sql = "SELECT * FROM ".MenuItemPrice::getTableName()." WHERE menu_item_id = ? AND menu_id = ? $shownWhere $zeroWhere ORDER BY price_position, price_value $sort_order";
            $db_conn->bindParameter($sql, 1, $this->getId(), "integer");
            $db_conn->bindParameter($sql, 1, $mid, "integer");
            $result = $db_conn->query($sql);
            if ($result && $result->rowCount() > 0) {
                while ($row = $result->fetch()) {
                    $p = new MenuItemPrice();
                    $p->addHidden(['menu_item_id']); //Not needed when inside MenuItem - only affects API (serialization in general)
                    $p->loadFromArray($row);
                    $this->prices[] = $p;
                }
            }
            Cache::SetArray($cacheKey, $this->prices);
        }
        return $this->prices;
    }
 
    public function loadAllPrices() {
        $db_conn = DB::conn();
        $this->prices = array();
        $sql = "SELECT * FROM ".MenuItemPrice::getTableName()." WHERE menu_item_id = ? AND is_shown = 1 ORDER BY menu_item_id, price_position, price_value";
        $db_conn->bindParameter($sql, 1, $this->getId(), "integer");
        $result = $db_conn->query($sql);
        if ($result && $result->rowCount() > 0) {
            while ($row = $result->fetch()) {
                $p = new MenuItemPrice();
                $p->loadFromArray($row, true);
                $this->prices[] = $p;
            }
        }
        return $this->prices;
    }
 
Arguments
  1. "mim_prices_1939327_15503_ASC_1_0"
    
  2. []
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
classes
/
Category.class.php
                return $result->rowCount();
            }
            while ($row = $result->fetch()) {
                $item = new MenuItem();
                if ($row['default_image']) {
                    $image = MenuItemImage::getDefaultByMenuItem($row['id']);
                    $item->setDefaultImage($image);
                } else {
                    unset($row['default_image']);
                    unset($row['is_url']);
                }
 
                $item->forceFill($row);
                $item->syncOriginal();
                $item->exists = true;
                $item->priority = $row['priority']; //adding the bonus field from the query
 
                if ($notShown || $item->getIsShown() || (isLoggedAsAdmin() && $item->getIsShownToEmployees())) {
                    $mid = $mid?: $_SESSION["menu_id"];
                    $item->loadPricesFromMenu($mid, 'ASC', true, $displayZeroDollarItems);
                    if ($withNoPrices || count($item->getPrices())) {
                        $arr[$item->getDisplayName().$item->id] = $item;
                    }
                }
            }
            if (count($arr)) {
                if ($alphabetical) {
                    ksort($arr, SORT_NATURAL);
                    return array_values($arr);
                } else {
                    return array_values($arr);
                }
            }
        }
 
        return $countOnly? 0 : null;
    }
 
    /**
     * @return MenuItem|null
Arguments
  1. 15503
    
  2. "ASC"
    
  3. true
    
  4. false
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
templates3.0
/
customer
/
schema.php
 
            if ($_REQUEST['ordering_level'] > 2) {
                $categories = [$category];
            }
 
            if (is_array($categories)) {
                foreach ($categories as $c) {
                    $categoryJson = [
                        '@type' => 'MenuSection',
                        'url'   => $account->formatCustomerOrderLink($currentOrderingPlatform, $restaurant, $menu, $c),
                        'name'  => $c->getDisplayName(),
                    ];
                    if ($c->getDescription()) {
                        $categoryJson['description'] = $c->getDescription();
                    }
 
                    if ($_REQUEST['ordering_level'] > 2) {
                        if ($_REQUEST['ordering_level'] == 3) {
                            if ($category->getId() > 0) {
                                $cis = $category->getItems(null, false, false, false, false, false, false);
                            } elseif (is_object($restaurant)) {
                                $cis        = [];
                                $categories = $menu->getCategoriesForRestaurant($restaurant->getId(), true, false);
                                foreach ($categories as $c) {
                                    $catItems = $c->getItems(null, false, false, false, false, false, false);
                                    foreach ($catItems as $i) {
                                        $cis[] = $i;
                                    }
                                }
                            }
                        } else {
                            $cis = [$item];
                        }
 
                        if (is_array($cis)) {
                            foreach ($cis as $i) { /** @var MenuItem $i */
                                $itemJson = [
                                    '@type' => 'MenuItem',
                                    'name'  => $i->getDisplayName(),
                                    'url'   => $account->formatCustomerOrderLink($currentOrderingPlatform, $restaurant, $menu, $category, $i),
Arguments
  1. 15503
    
  2. false
    
  3. false
    
  4. false
    
  5. false
    
  6. false
    
  7. false
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
templates3.0
/
customer
/
schema.php
                                        }
                                        $itemJson['offers'][] = $priceJson;
                                    }
                                }
 
                                $categoryJson['hasMenuItem'][] = $itemJson;
                            }
                        }
                    }
                    $json['hasMenuSection'][] = $categoryJson;
                }
            }
 
            $schemaScript = '<script type="application/ld+json">'.json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).'</script>';
            Cache::Set($cacheKey, $schemaScript);
            echo $schemaScript;
            break;
    }
};
$printSchema();
 
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
templates4.0
/
customer
/
header.php
            }
            if (count($unavail) > 0) {
                echo '<style type="text/css">'.join(', ', $unavail).' {display:none !important;}</style>';
                echo '<script type="text/javascript">window.UNAVAILABLE_MENU_IDS = '.JE($unavailable_menu_ids).'</script>';
            }
        } ?>
 
        <script type="text/javascript">
            var UrlTag = <?=JE((isSpringroll()?'restaurant/':'').(isset($account) ? $account->url_tag : ''))?>;
            var template = '<?=$templateName?>';
            var formname = '<?=urlencode($_REQUEST['form'])?>';
            var menulink = '<?=!isMarketplace()?formatCustomerOrderLink([$restaurant, $menu]):''?>';
            var checkoutlink = '<?=formatCustomerLink('checkout')?>';
        </script>
        <script>
            /* http://writing.colin-gourlay.com/safely-using-ready-before-including-jquery/ */
            (function(w,d,u){w.readyQ=[];w.bindReadyQ=[];function p(x,y){if(x=="ready"){w.bindReadyQ.push(y);}else{w.readyQ.push(x);}};var a={ready:p,bind:p};w.$=w.jQuery=function(f){if(f===d||f===u){return a}else{p(f)}}})(window,document)
        </script>
 
        <? include_once(CORE_PATH . 'templates3.0/customer/schema.php');
        include_once(CORE_PATH . 'templates4.0/customer/google_analytics.php');
 
        if (isset($account) && $account->getFacebookPixelId()) { ?>
            <!-- Facebook Pixel Code -->
            <script>
            !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
            n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
            n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
            t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
            document,'script','https://connect.facebook.net/en_US/fbevents.js');
            fbq('init', '<?=$account->getFacebookPixelId()?>');
            fbq('track', 'PageView');
            </script>
            <noscript><img height="1" width="1" style="display:none"
            src="https://www.facebook.com/tr?id=<?=$account->getFacebookPixelId()?>&ev=PageView&noscript=1"
            /></noscript>
            <!-- DO NOT MODIFY -->
            <!-- End Facebook Pixel Code -->
 
        <? }
Arguments
  1. "/home/deploy/EHungry-3-boyan/Web/templates3.0/customer/schema.php"
    
/
home
/
deploy
/
EHungry-3-boyan
/
Web
/
controllers
/
customer.php
}
 
if (!isset($cart) || !is_object($cart)) {
    $GLOBALS['cart'] = \Cart::getCurrent();
}
 
//unset callback data in the event someone didn't hit the callback validation page
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();
 
Arguments
  1. "/home/deploy/EHungry-3-boyan/Web/templates4.0/customer/header.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/classicpizza/order/lunch/appetizers"
empty
empty
Key Value
PHPSESSID
"pc32s0mojhddvv8kvdb54l6mc1"
Key Value
loc
"en_US"
customer_account_id
1163
cart
Cart {}
restaurant_id
1556
app_banner_shown
true
menu_id
15503
Key Value
UNIQUE_ID
"aXHvh1qTmk-tgdQ88o19DgAAAAE"
SCRIPT_URL
"/restaurant/classicpizza/order/lunch/appetizers"
SCRIPT_URI
"http://www.springroll.com.3.boyan.ehungry.net/restaurant/classicpizza/order/lunch/appetizers"
HTTP_HOST
"www.springroll.com.3.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"
HTTP_COOKIE
"PHPSESSID=pc32s0mojhddvv8kvdb54l6mc1"
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.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
"39026"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/classicpizza/order/lunch/appetizers"
REQUEST_URI
"/restaurant/classicpizza/order/lunch/appetizers"
SCRIPT_NAME
"/restaurant/classicpizza/order/lunch/appetizers"
PHP_SELF
"/restaurant/classicpizza/order/lunch/appetizers"
REQUEST_TIME_FLOAT
1769074567.603
REQUEST_TIME
1769074567
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