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-8-simon/Web/classes/Cache.class.php:69 #8 Redis:setex in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:69 #7 Cache:Set in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:53 #6 Cache:SetObject in /home/deploy/EHungry-8-simon/Web/classes/MenuItemImage.class.php:109 #5 MenuItemImage:getDefaultByMenuItem in /home/deploy/EHungry-8-simon/Web/classes/MenuItem.class.php:452 #4 MenuItem:getDefaultImage in /home/deploy/EHungry-8-simon/Web/templates3.0/customer/schema.php:237 #3 {closure} in /home/deploy/EHungry-8-simon/Web/templates3.0/customer/schema.php:273 #2 include_once in /home/deploy/EHungry-8-simon/Web/templates3.0/customer/header.php:313 #1 include_once in /home/deploy/EHungry-8-simon/Web/controllers/customer.php:891 #0 require in /home/deploy/EHungry-8-simon/Web/index.php:30
Stack frames (10)
9
RedisException
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cache.class.php
69
8
Redis
setex
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cache.class.php
69
7
Cache
Set
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cache.class.php
53
6
Cache
SetObject
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
MenuItemImage.class.php
109
5
MenuItemImage
getDefaultByMenuItem
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
MenuItem.class.php
452
4
MenuItem
getDefaultImage
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
templates3.0
/
customer
/
schema.php
237
3
{closure}
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
templates3.0
/
customer
/
schema.php
273
2
include_once
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
templates3.0
/
customer
/
header.php
313
1
include_once
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
controllers
/
customer.php
891
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. "menuitemimage_default_1605374"
    
  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. "menuitemimage_default_1605374"
    
  2. "N;"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
MenuItemImage.class.php
     * @param int $mid
     * @return MenuItemImage|null
     */
    public static function getDefaultByMenuItem($mid = -1) {
        $cacheKey = self::cacheDefaultImgKey($mid);
        if ($mid > 0) {
            /** @var \MenuItemImage|null $cached */
            $cached = Cache::GetObject($cacheKey, true);
            if ($cached || is_null($cached)) {
                return $cached;
            }
 
            /** @var \MenuItemImage|null $img */
            if ($img = self::where(['is_default' => true, 'menu_item_id' => $mid])->first()) {
                Cache::SetObject($cacheKey, $img);
                return $img;
            }
        }
 
        Cache::SetObject($cacheKey, null);
        return null;
    }
 
    private static function cacheDefaultImgKey($menuItemId) {
        return "menuitemimage_default_$menuItemId";
    }
 
    public static function cacheDeleteDefaultImg($menuItemId) {
        Cache::Delete(self::cacheDefaultImgKey($menuItemId));
    }
 
    /**
     * The complete URL to display the image, including the timestamp for cache busting
     * @param bool $withTimestamp Will skip the timestamp if false is given here
     * @param int $thumbSize If given, retrieves the thumbnail URL instead, if one exists
     * @return string
     */
    public function getUrl($withTimestamp = true, int $thumbSize = null) {
        $withTimestamp = is_null($withTimestamp)? true : $withTimestamp;
        return ($this->is_url? $this->img_name : $this->getBaseUrl(null, $thumbSize, $withTimestamp));
Arguments
  1. "menuitemimage_default_1605374"
    
  2. null
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
MenuItem.class.php
    public function getSelectedPrice() {
        return $this->selectedPrice;
    }
    public function setSelectedPrice(MenuItemPrice $price = null) {
        $this->selectedPrice = $price;
    }
 
    public function getUniqueId() {
        return $this->uuid;
    }
    public function setUniqueId($uuid = null) {
        $this->uuid = $uuid;
    }
 
    /**
     * @return MenuItemImage|null
     */
    public function getDefaultImage() {
        if (!$this->defaultImage) {
            $this->setDefaultImage(MenuItemImage::getDefaultByMenuItem($this->getId()));
        }
 
        return $this->defaultImage;
    }
    public function setDefaultImage(MenuItemImage $image = null) {
        $this->defaultImage = $image;
    }
 
    /**
     * @param $account
     * @return MenuItemImage|string|null
     */
    public function getThumbUrl($account) {
        $default_image = $this->getDefaultImage();
 
        if (!$default_image
                && $account instanceof Account
                && ($account->getDefaultMenuItemImage() || $account->hasImages(Account::IMAGE_FIELD_DEFAULT_MENU_ITEM_IMAGE))) {
            return $account->getUrl(Account::IMAGE_FIELD_DEFAULT_MENU_ITEM_IMAGE);
        }
Arguments
  1. 1605374
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
templates3.0
/
customer
/
schema.php
                                    }
                                }
                            }
                        } else {
                            $cis = [$item];
                        }
 
                        if (is_array($cis)) {
                            foreach ($cis as $i) { /** @var MenuItem $i */
                                $itemJson = [
                                    '@type' => 'MenuItem',
                                    'name'  => $i->getDisplayName(),
                                    'url'   => formatCustomerOrderLink([$restaurant, $menu, $category, $i]),
                                ];
 
                                if ($i->getDescription()) {
                                    $itemJson['description'] = $i->getDescription();
                                }
 
                                if ($i->getDefaultImage()) {
                                    $itemJson['image'] = $i->getDefaultImage()->getUrl();
                                }
 
                                $prices = $i->getPrices();
                                if (count($prices) > 0) {
                                    foreach ($prices as $p) {
                                        $priceJson = [
                                            '@type'         => 'Offer',
                                            'price'         => intToMoneyString($p->getPriceValue(), false),
                                            'priceCurrency' => $currency
                                        ];
                                        if (count($prices) > 1 || $p->getDisplayName() != $i->getDisplayName()) {
                                            $priceJson['eligibleQuantity'] = [
                                                '@type' => 'QuantitativeValue',
                                                'name'  => $p->getDisplayName()
                                            ];
                                        }
                                        $itemJson['offers'][] = $priceJson;
                                    }
                                }
/
home
/
deploy
/
EHungry-8-simon
/
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-8-simon
/
Web
/
templates3.0
/
customer
/
header.php
                                <? } elseif (IS_EMBEDDED_INLINE) { ?>
                                    const overlay = jQuery('<div id="overlay" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-color: #000;opacity: 0.9;z-index: 10000;"><div style="margin-top:10%;height:50px;font-weight:bold;font-size:150%;text-align:center;">Cookies are required for online ordering. <span style="color: #ffffff;">Click here to allow cookies</span>.<br><a href="<?=$account->getDomainUrl()?>" target="_blank" aria-label="Opens in new tab" title="Opens in new tab" id="notworking">Not working? Click here to open ordering in a new window.</a></div></div>');
 
                                    overlay.appendTo(document.body).on('click', function (event) {
                                        if (event.target.id != 'notworking') {
                                            console.log('overlay clicked')
                                            window.open("<?=$account->getDomainUrl()?>/setcookie", '_blank', 'width=20,height=20')
                                        }
                                    });
                                <? } ?>
                            } else {
                                Cookies.remove('test')
                            }
                        }
                    }
                });
            </script>
        <? } ?>
 
        <? include_once(CORE_PATH.'templates3.0/customer/schema.php');
        include_once(CORE_PATH.'templates3.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-8-simon/Web/templates3.0/customer/schema.php"
    
/
home
/
deploy
/
EHungry-8-simon
/
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-8-simon/Web/templates3.0/customer/header.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/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
empty
empty
Key Value
PHPSESSID
"8osqgtill1cpel9rdg33hfjb29"
Key Value
loc
"en_US"
customer_account_id
60607
restaurant_id
10369
menu_id
13048
cart
Cart {}
Key Value
UNIQUE_ID
"aBGb4rQE76CPuw1Ao5C5EwAAAAA"
SCRIPT_URL
"/restaurant/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
SCRIPT_URI
"http://www.springroll.com.8.simon.ehungry.net/restaurant/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
HTTP_HOST
"www.springroll.com.8.simon.ehungry.net"
HTTP_X_REAL_IP
"18.189.3.134"
HTTP_X_FORWARDED_FOR
"18.189.3.134"
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=8osqgtill1cpel9rdg33hfjb29"
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
"41876"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
REQUEST_URI
"/restaurant/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
SCRIPT_NAME
"/restaurant/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
PHP_SELF
"/restaurant/chinaexpressminneapolis/order/main/fried-rice/28a-yangzhou-fried-rice"
REQUEST_TIME_FLOAT
1745984482.156
REQUEST_TIME
1745984482
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