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: #5 RedisException in /home/deploy/EHungry-4-boyan/Web/classes/Cache.class.php:69 #4 Redis:setex in /home/deploy/EHungry-4-boyan/Web/classes/Cache.class.php:69 #3 Cache:Set in /home/deploy/EHungry-4-boyan/Web/classes/Cache.class.php:53 #2 Cache:SetObject in /home/deploy/EHungry-4-boyan/Web/classes/CustomDomain.class.php:78 #1 CustomDomain:getForDomain in /home/deploy/EHungry-4-boyan/PHP/Global.php:504 #0 require in /home/deploy/EHungry-4-boyan/Web/index.php:17
Stack frames (6)
5
RedisException
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
classes
/
Cache.class.php
69
4
Redis
setex
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
classes
/
Cache.class.php
69
3
Cache
Set
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
classes
/
Cache.class.php
53
2
Cache
SetObject
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
classes
/
CustomDomain.class.php
78
1
CustomDomain
getForDomain
/
Global.php
504
0
require
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
index.php
17
/
home
/
deploy
/
EHungry-4-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-4-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. "cd_us.chinesemenuonline.com"
    
  2. 86400
    
  3. "N;"
    
/
home
/
deploy
/
EHungry-4-boyan
/
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. "cd_us.chinesemenuonline.com"
    
  2. "N;"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
classes
/
CustomDomain.class.php
     * @return CustomDomain|null
     */
    public static function getForDomain($d) {
        $aObj = Cache::GetObject('cd_'.$d, true);
        if ($aObj || is_null($aObj)) {
            return $aObj;
        }
 
        $db_conn = DB::conn();
        $sql = "SELECT id FROM ".CustomDomain::getTableName()." WHERE domain = ?";
        $db_conn->bindParameter($sql, 1, $d, "string");
        $result = $db_conn->query($sql);
        if ($result && $result->rowCount() === 1) {
            if ($row = $result->fetch()) {
                $cd = new CustomDomain($row['id']);
                Cache::SetObject('cd_'.$d, $cd);
                return $cd;
            }
        }
        Cache::SetObject('cd_'.$d, null);
        return null;
    }
 
    /**
     * @param $aid
     * @return bool|CustomDomain|object|null
     */
    public static function getForAccountWebsite($aid) {
        return self::getForAccount($aid, true);
    }
 
    /**
     * @param $domain
     * @param Account $account
     */
    public static function setupDomainForAccountWebsite($domain, \Account $account) {
        CustomDomain::setupDomainForAccount($domain, $account, true);
    }
 
    /**
Arguments
  1. "cd_us.chinesemenuonline.com"
    
  2. null
    
/
home
/
deploy
/
EHungry-4-boyan
/
PHP
/
Global.php
define('TELNYX_CALL_APP_ID', '2001054502211290386');
if (DevLevel > 0) {
    define('TELNYX_FAX_APP_ID', '1790884513115539091'); //points to 3.joel.ehungry.net
    define('TELNYX_FAX_FROM', '+16785901021');
} else {
    define('TELNYX_FAX_APP_ID', '1790885968438363820');
    define('TELNYX_FAX_FROM', '+16785903023');
}
 
define('API_KEY_LENGTH', 32);
 
define('IPINFO_ACCESS_TOKEN', '11efe69bbacf02');
 
putenv('TZ=US/Pacific');
 
define('FESTIVO_API_KEY', "d21544db-3789-43f7-ba34-5f3482c72525");
define('FESTIVO_API_COUNTRIES', array('US', 'CA'));
 
if (!TEST_ENV) {
    $customDomain = CustomDomain::getForDomain(HN_Current);
}
 
$controller = false;
$ajaxControllers = [
    'orders/ajax' => 'orders_ajax',
    'manager/api' => 'manager',
    'admin/ajax' => 'admin_ajax',
    'reseller/ajax' => 'reseller_ajax',
    'api' => 'api',
    'rcs/ajax' => 'rcs_ajax',
    'debugbar' => 'debugbar',
];
 
$controllers = [
    'ordermonitor' => 'ordermonitor',
    'admin' => 'admin',
    'rcs' => 'rcs',
    'signup' => 'signup',
    'reseller' => 'reseller',
    'affiliate' => 'affiliate',
Arguments
  1. "us.chinesemenuonline.com"
    
/
home
/
deploy
/
EHungry-4-boyan
/
Web
/
index.php
<? /** @noinspection PhpIncludeInspection - to avoid marking dynamic includes */
 
//TODO create a «root»/_bootstrap.php which can be used by .psysh.php, tests/bootstrap.php and Web/index.php
require(dirname(__DIR__).'/PHP/base_consts.php');
require(dirname(__DIR__).'/PHP/autoloader.php');
initializeAutoLoader();
 
//disabled for now since we already have our own Alerts infrastructure, and it's not worth it to append another cloud provider to the startup of every freaking request; it's also not possible to catch errors this early if we depend on database checks, but we'll leave it here in case we change our mind?
//ErrorHandlers::sentryInit(); //early catch of errors and failsafe for smaller controllers, not in Sentry
 
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-4-boyan/PHP/Global.php"
    

Environment & details:

Key Value
aid
"sitemap.xml"
empty
empty
Key Value
PHPSESSID
"d5f6kojlhvt5sebui23qopt94c"
Key Value
loc
"en_US"
Key Value
UNIQUE_ID
"aF2g1fYL6aa3QnZtEFA1GAAAAAg"
SCRIPT_URL
"/sitemap.xml"
SCRIPT_URI
"http://us.chinesemenuonline.com.4.boyan.ehungry.net/sitemap.xml"
HTTP_HOST
"us.chinesemenuonline.com.4.boyan.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.198"
HTTP_X_FORWARDED_FOR
"216.73.216.198"
HTTP_X_CONFKEY
"Main_Domain:1826"
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=d5f6kojlhvt5sebui23qopt94c"
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
"us.chinesemenuonline.com.4.boyan.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"127.0.0.1"
DOCUMENT_ROOT
"/home/deploy/EHungry-4-boyan/Web"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-4-boyan/Web"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/home/deploy/EHungry-4-boyan/Web/index.php"
REMOTE_PORT
"43434"
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
1750966485.408
REQUEST_TIME
1750966485
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