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: #6 RedisException in /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php:69 #5 Redis:setex in /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php:69 #4 Cache:Set in /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php:57 #3 Cache:SetArray in /home/deploy/EHungry-2-joel/Web/classes/Restaurant.class.php:1797 #2 Restaurant:getAllMenus in /home/deploy/EHungry-2-joel/Web/classes/Restaurant.class.php:1820 #1 Restaurant:getActiveMenus in /home/deploy/EHungry-2-joel/Web/controllers/sitemap.php:64 #0 require in /home/deploy/EHungry-2-joel/Web/index.php:30
Stack frames (7)
6
RedisException
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
69
5
Redis
setex
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
69
4
Cache
Set
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Cache.class.php
57
3
Cache
SetArray
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Restaurant.class.php
1797
2
Restaurant
getAllMenus
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Restaurant.class.php
1820
1
Restaurant
getActiveMenus
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
controllers
/
sitemap.php
64
0
require
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
index.php
30
/
home
/
deploy
/
EHungry-2-joel
/
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-joel
/
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. "rmenus_16706_0"
    
  2. 86400
    
  3. "a:0:{}"
    
/
home
/
deploy
/
EHungry-2-joel
/
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. "rmenus_16706_0"
    
  2. "a:0:{}"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Restaurant.class.php
     */
    public function getAllMenus($withHidden = false) {
        $cacheKey = 'rmenus_'.$this->getId().'_'.($withHidden? '1' : '0');
        $co = Cache::GetArray($cacheKey);
        if (!$co) {
            $db_conn = DB::conn();
            $co = [];
            $sql = "SELECT menu_id FROM ".MenuRestaurant::getTableName()." WHERE restaurant_id = ?";
            $db_conn->bindParameter($sql, 1, $this->getId(), "integer");
            $result = $db_conn->query($sql);
            if ($result && $result->rowCount() > 0) {
                while ($row = $result->fetch()) {
                    $m = new Menu($row["menu_id"]);
                    if ($withHidden || !$m->getIsHidden()) {
                        $co[] = $m;
                    }
                }
            }
            usort($co, ["Restaurant", "sortMenus"]);
            Cache::SetArray($cacheKey, $co);
        }
        if (!empty($_REQUEST['hidden_menu']) && is_object($_REQUEST['hidden_menu'])) {
            $found = false;
            foreach ($co as $m) {
                if ($m->id == $_REQUEST['hidden_menu']->id) {
                    $found = true;
                    break;
                }
            }
            if (!$found) {
                $co[] = $_REQUEST['hidden_menu'];
                usort($co, ["Restaurant", "sortMenus"]);
            }
        }
        return $co;
    }
 
    /**
     * Gets menus that are currently active (does not check day-of-the-week or time of day availability)
     * @return Menu[]
Arguments
  1. "rmenus_16706_0"
    
  2. []
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
classes
/
Restaurant.class.php
            foreach ($co as $m) {
                if ($m->id == $_REQUEST['hidden_menu']->id) {
                    $found = true;
                    break;
                }
            }
            if (!$found) {
                $co[] = $_REQUEST['hidden_menu'];
                usort($co, ["Restaurant", "sortMenus"]);
            }
        }
        return $co;
    }
 
    /**
     * Gets menus that are currently active (does not check day-of-the-week or time of day availability)
     * @return Menu[]
     */
    public function getActiveMenus($withHidden = false): array {
        return array_filter($this->getAllMenus($withHidden), function ($menu) {
            return $this->isMenuActive($menu);
        });
    }
 
    public function isMenuActive(Menu $menu): bool {
        return $menu->isCurrentlyActive($this);
    }
 
    public function getDefaultMenu(): ?Menu {
        $menus = $this->getAllMenus();
        $menu = null;
 
        if ($this->getSelectMenuFromCurrentTime()) {
            $menu = $this->getMenuByCurrentTime($menus);
        }
 
        // try to return a menu that is active and not hidden
        for ($i = 0, $count = count($menus); $i < $count && is_null($menu); $i++) {
            $menu = $this->isMenuActive($menus[$i]) ? $menus[$i] : $menu;
        }
Arguments
  1. false
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
controllers
/
sitemap.php
    'contact',
    'reportbug',
    'privacy',
    'tos',
    'accessibility'
];
 
foreach ($basePages as $bp) {
    $sm->addUrl(formatCustomerLink($bp));
}
 
foreach ($locs as $restaurant) {
    $sm->addUrl(formatCustomerLink('map', ['lid' => $restaurant->getId()]));
    if ($restaurant->getHasNoOrdering()) {
        if ($restaurant->getPdfMenuFile()) {
            $sm->addUrl($restaurant->getUrl('pdfMenuFile'));
        }
    } else {
        $sm->addUrl(formatCustomerOrderLink([$restaurant]));
        $menus = $restaurant->getActiveMenus();
        if (is_array($menus)) {
            foreach ($menus as $menu) {
                $sm->addUrl(formatCustomerOrderLink([$restaurant, $menu]));
 
                $categories = $menu->getCategoriesForRestaurant($restaurant->getId(), true);
                if (is_array($categories)) {
                    foreach ($categories as $category) {
                        $sm->addUrl(formatCustomerOrderLink([$restaurant, $menu, $category]));
 
                        $items = $category->getItems($menu->getId(), false, false, false, false, false, false);
                        if (is_array($items)) {
                            foreach ($items as $item) {
                                $sm->addUrl(formatCustomerOrderLink([$restaurant, $menu, $category, $item]));
                            }
                        }
                    }
                    $sm->addUrl(formatCustomerOrderLink([$restaurant, $menu, -1]));
                }
            }
        }
/
home
/
deploy
/
EHungry-2-joel
/
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-joel/Web/controllers/sitemap.php"
    

Environment & details:

Key Value
aid
"sitemap.xml"
empty
empty
empty
Key Value
loc
"en_US"
cart
Cart {}
status
array:2 [
  1 => []
  2 => array:1 [
    0 => "The system encountered an error! Check logs for details."
  ]
]
Key Value
UNIQUE_ID
"aTsWchFZ9BwyZZnkWRNauAAAAAg"
SCRIPT_URL
"/sitemap.xml"
SCRIPT_URI
"http://ehtest.zineer.com.2.joel.ehungry.net/sitemap.xml"
HTTP_HOST
"ehtest.zineer.com.2.joel.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.164"
HTTP_X_CONFKEY
"Main_Domain:8993"
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.62 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
SERVER_NAME
"ehtest.zineer.com.2.joel.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"216.73.216.164"
DOCUMENT_ROOT
"/home/deploy/EHungry-2-joel/Web"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-2-joel/Web"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/home/deploy/EHungry-2-joel/Web/index.php"
REMOTE_PORT
"37958"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=sitemap.xml"
REQUEST_URI
"/sitemap.xml"
SCRIPT_NAME
"/sitemap.xml"
PHP_SELF
"/sitemap.xml"
REQUEST_TIME_FLOAT
1765480050.489
REQUEST_TIME
1765480050
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] on line 0
Call Stack
#TimeMemoryFunctionLocation
10.07868361488ErrorHandlers::{closure:/home/deploy/EHungry-2-joel/Web/classes/ErrorHandlers.class.php:58-58}( ).../ErrorHandlers.class.php:0
20.07868361488ErrorHandlers::handleException( ).../ErrorHandlers.class.php:58
30.08068474136ErrorHandlers::errorPage( ).../ErrorHandlers.class.php:305
( ! ) 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 /home/deploy/EHungry-2-joel/Web/classes/Cache.class.php on line 69
Call Stack
#TimeMemoryFunctionLocation
10.07868361488ErrorHandlers::{closure:/home/deploy/EHungry-2-joel/Web/classes/ErrorHandlers.class.php:58-58}( ).../ErrorHandlers.class.php:0
20.07868361488ErrorHandlers::handleException( ).../ErrorHandlers.class.php:58
30.07878362608ErrorHandlers::alert( ).../ErrorHandlers.class.php:301
40.07888380320Alert::sendAlert( ).../ErrorHandlers.class.php:343
50.07888380960Alert->__construct( ).../Alert.class.php:30
60.07888380960Alert->setAttribute( ).../BaseClass.class.php:157
70.07898381888DbFields->getFields( ).../BaseClass.class.php:474
80.07998386336Cache::SetArray( ).../DbFields.php:53
90.07998386592Cache::Set( ).../Cache.class.php:57
100.07998386592setex ( ).../Cache.class.php:69