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: #7 RedisException in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:69 #6 Redis:setex in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:69 #5 Cache:Set in /home/deploy/EHungry-8-simon/Web/classes/Cache.class.php:57 #4 Cache:SetArray in /home/deploy/EHungry-8-simon/Web/classes/Account.class.php:765 #3 Account:getCategoryItems in /home/deploy/EHungry-8-simon/Web/classes/Account.class.php:726 #2 Account:getCategoryPageFragment in /home/deploy/EHungry-8-simon/Web/model3.0/customer/ordering3.php:237 #1 include_once in /home/deploy/EHungry-8-simon/Web/controllers/customer.php:855 #0 require in /home/deploy/EHungry-8-simon/Web/index.php:30
Stack frames (8)
7
RedisException
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cache.class.php
69
6
Redis
setex
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cache.class.php
69
5
Cache
Set
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Cache.class.php
57
4
Cache
SetArray
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Account.class.php
765
3
Account
getCategoryItems
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Account.class.php
726
2
Account
getCategoryPageFragment
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
model3.0
/
customer
/
ordering3.php
237
1
include_once
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
controllers
/
customer.php
855
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. "category_4.0_items_16839_14857_189924_cat_11803"
    
  2. 86400
    
  3. "a:1:{i:0;O:8:"MenuItem":42:{s:6:"prices";a:2:{i:0;O:13:"MenuItemPrice":28:{s:10:"\x00*\x00guarded";a:0:{}s:9:"\x00*\x00hidden";a:5:{i:0;s:13:"phonetic_name";i:1;s:16:"nutritional_info";i:2;s:26:"price_value_by_extra_count";i:3;s:11:"is_selected";i:4;s:12:"menu_item_id";}s:8:"\x00*\x00casts";a:1:{s:8:"is_shown";s:7:"boolean";}s:13:"\x00*\x00attributes";a:11:{s:2:"id";i:2751664;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Pt.";s:11:"price_value";i:545;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:1;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:18:"originalPriceValue";N;s:13:"priceOverride";N;s:12:"pdfPageCount";i:0;s:10:"timestamps";b:0;s:13:"\x00*\x00connection";N;s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:11:"\x00*\x00original";a:11:{s:2:"id";i:2751664;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Pt.";s:11:"price_value";i:545;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:1;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:8:"\x00*\x00dates";a:0:{}s:13:"\x00*\x00dateFormat";N;s:10:"\x00*\x00appends";a:0:{}s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00visible";a:0:{}s:11:"\x00*\x00fillable";a:0:{}}i:1;O:13:"MenuItemPrice":28:{s:10:"\x00*\x00guarded";a:0:{}s:9:"\x00*\x00hidden";a:5:{i:0;s:13:"phonetic_name";i:1;s:16:"nutritional_info";i:2;s:26:"price_value_by_extra_count";i:3;s:11:"is_selected";i:4;s:12:"menu_item_id";}s:8:"\x00*\x00casts";a:1:{s:8:"is_shown";s:7:"boolean";}s:13:"\x00*\x00attributes";a:11:{s:2:"id";i:2751665;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Qt.";s:11:"price_value";i:925;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:2;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:18:"originalPriceValue";N;s:13:"priceOverride";N;s:12:"pdfPageCount";i:0;s:10:"timestamps";b:0;s:13:"\x00*\x00connection";N;s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:11:"\x00*\x00original";a:11:{s:2:"id";i:2751665;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Qt.";s:11:"price_value";i:925;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:2;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:8:"\x00*\x00dates";a:0:{}s:13:"\x00*\x00dateFormat";N;s:10:"\x00*\x00appends";a:0:{}s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00visible";a:0:{}s:11:"\x00*\x00fillable";a:0:{}}}s:6:"addons";a:0:{}s:13:"selectedPrice";N;s:4:"uuid";s:0:"";s:7:"ccat_id";i:-1;s:4:"ccat";N;s:8:"priority";i:1;s:8:"quantity";N;s:18:"original_unique_id";N;s:20:"special_instructions";N;s:15:"discount_amount";N;s:18:"buddy_display_name";N;s:12:"menubuddy_id";N;s:12:"source_index";N;s:9:"is_upsell";N;s:15:"\x00*\x00defaultImage";N;s:11:"\x00*\x00fillable";a:4:{i:0;s:8:"is_shown";i:1;s:14:"is_unavailable";i:2;s:12:"display_name";i:3;s:11:"description";}s:10:"\x00*\x00appends";a:2:{i:0;s:12:"single_price";i:1;s:12:"shown_status";}s:10:"\x00*\x00visible";a:5:{i:0;s:2:"id";i:1;s:11:"category_id";i:2;s:12:"display_name";i:3;s:11:"description";i:4;s:12:"shown_status";}s:8:"\x00*\x00casts";a:5:{s:8:"is_shown";s:7:"boolean";s:8:"is_pizza";s:7:"boolean";s:12:"is_orderable";s:7:"boolean";s:14:"is_unavailable";s:7:"boolean";s:19:"is_priced_per_extra";s:7:"boolean";}s:12:"pdfPageCount";i:0;s:10:"timestamps";b:0;s:9:"\x00*\x00hidden";a:1:{i:0;s:8:"password";}s:13:"\x00*\x00connection";N;s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:13:"\x00*\x00attributes";a:45:{s:2:"id";i:1865594;s:12:"display_name";s:25:"125. Sweet & Sour Chicken";s:11:"description";s:0:"";s:16:"checkout_message";s:0:"";s:8:"is_shown";i:1;s:10:"account_id";i:16839;s:12:"number_sales";i:0;s:10:"is_taxable";i:1;s:13:"min_prep_time";i:0;s:22:"min_required_per_order";i:1;s:23:"max_available_per_order";i:0;s:21:"per_order_is_per_item";i:0;s:12:"is_open_item";i:0;s:21:"is_shown_to_employees";i:1;s:8:"is_pizza";i:0;s:12:"is_orderable";i:1;s:13:"has_no_prices";i:0;s:14:"quantity_label";s:0:"";s:13:"phonetic_name";s:0:"";s:16:"freepos_category";s:0:"";s:19:"freepos_description";s:0:"";s:18:"freepos_tax_string";s:0:"";s:15:"freepos_spooler";s:0:"";s:19:"is_priced_per_extra";i:0;s:19:"custom_price_script";s:0:"";s:19:"post_item_action_id";i:0;s:25:"hide_special_instructions";i:0;s:9:"import_id";i:0;s:6:"indent";i:0;s:8:"standout";i:0;s:13:"is_label_only";i:0;s:21:"original_menu_item_id";i:0;s:21:"available_order_types";i:7;s:7:"url_tag";s:22:"125-sweet-sour-chicken";s:8:"tax_rate";N;s:14:"tax_rate_label";N;s:14:"is_unavailable";i:0;s:14:"reset_disabled";i:0;s:6:"iac_id";N;s:12:"supermenu_id";N;s:17:"pos_print_kitchen";i:0;s:15:"pos_print_label";i:0;s:8:"tax_code";N;s:12:"english_name";s:0:"";s:12:"chinese_name";s:0:"";}s:11:"\x00*\x00original";a:45:{s:2:"id";i:1865594;s:12:"display_name";s:25:"125. Sweet & Sour Chicken";s:11:"description";s:0:"";s:16:"checkout_message";s:0:"";s:8:"is_shown";i:1;s:10:"account_id";i:16839;s:12:"number_sales";i:0;s:10:"is_taxable";i:1;s:13:"min_prep_time";i:0;s:22:"min_required_per_order";i:1;s:23:"max_available_per_order";i:0;s:21:"per_order_is_per_item";i:0;s:12:"is_open_item";i:0;s:21:"is_shown_to_employees";i:1;s:8:"is_pizza";i:0;s:12:"is_orderable";i:1;s:13:"has_no_prices";i:0;s:14:"quantity_label";s:0:"";s:13:"phonetic_name";s:0:"";s:16:"freepos_category";s:0:"";s:19:"freepos_description";s:0:"";s:18:"freepos_tax_string";s:0:"";s:15:"freepos_spooler";s:0:"";s:19:"is_priced_per_extra";i:0;s:19:"custom_price_script";s:0:"";s:19:"post_item_action_id";i:0;s:25:"hide_special_instructions";i:0;s:9:"import_id";i:0;s:6:"indent";i:0;s:8:"standout";i:0;s:13:"is_label_only";i:0;s:21:"original_menu_item_id";i:0;s:21:"available_order_types";i:7;s:7:"url_tag";s:22:"125-sweet-sour-chicken";s:8:"tax_rate";N;s:14:"tax_rate_label";N;s:14:"is_unavailable";i:0;s:14:"reset_disabled";i:0;s:6:"iac_id";N;s:12:"supermenu_id";N;s:17:"pos_print_kitchen";i:0;s:15:"pos_print_label";i:0;s:8:"tax_code";N;s:12:"english_name";s:0:"";s:12:"chinese_name";s:0:"";}s:8:"\x00*\x00dates";a:0:{}s:13:"\x00*\x00dateFormat";N;s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00guarded";a:1:{i:0;s:1:"*";}}}"
    
/
home
/
deploy
/
EHungry-8-simon
/
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. "category_4.0_items_16839_14857_189924_cat_11803"
    
  2. "a:1:{i:0;O:8:"MenuItem":42:{s:6:"prices";a:2:{i:0;O:13:"MenuItemPrice":28:{s:10:"\x00*\x00guarded";a:0:{}s:9:"\x00*\x00hidden";a:5:{i:0;s:13:"phonetic_name";i:1;s:16:"nutritional_info";i:2;s:26:"price_value_by_extra_count";i:3;s:11:"is_selected";i:4;s:12:"menu_item_id";}s:8:"\x00*\x00casts";a:1:{s:8:"is_shown";s:7:"boolean";}s:13:"\x00*\x00attributes";a:11:{s:2:"id";i:2751664;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Pt.";s:11:"price_value";i:545;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:1;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:18:"originalPriceValue";N;s:13:"priceOverride";N;s:12:"pdfPageCount";i:0;s:10:"timestamps";b:0;s:13:"\x00*\x00connection";N;s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:11:"\x00*\x00original";a:11:{s:2:"id";i:2751664;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Pt.";s:11:"price_value";i:545;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:1;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:8:"\x00*\x00dates";a:0:{}s:13:"\x00*\x00dateFormat";N;s:10:"\x00*\x00appends";a:0:{}s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00visible";a:0:{}s:11:"\x00*\x00fillable";a:0:{}}i:1;O:13:"MenuItemPrice":28:{s:10:"\x00*\x00guarded";a:0:{}s:9:"\x00*\x00hidden";a:5:{i:0;s:13:"phonetic_name";i:1;s:16:"nutritional_info";i:2;s:26:"price_value_by_extra_count";i:3;s:11:"is_selected";i:4;s:12:"menu_item_id";}s:8:"\x00*\x00casts";a:1:{s:8:"is_shown";s:7:"boolean";}s:13:"\x00*\x00attributes";a:11:{s:2:"id";i:2751665;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Qt.";s:11:"price_value";i:925;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:2;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:18:"originalPriceValue";N;s:13:"priceOverride";N;s:12:"pdfPageCount";i:0;s:10:"timestamps";b:0;s:13:"\x00*\x00connection";N;s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:11:"\x00*\x00original";a:11:{s:2:"id";i:2751665;s:12:"menu_item_id";i:1865594;s:12:"display_name";s:3:"Qt.";s:11:"price_value";i:925;s:8:"is_shown";i:1;s:7:"menu_id";i:14857;s:14:"price_position";i:2;s:13:"phonetic_name";s:0:"";s:11:"is_selected";i:0;s:26:"price_value_by_extra_count";s:0:"";s:16:"nutritional_info";s:0:"";}s:8:"\x00*\x00dates";a:0:{}s:13:"\x00*\x00dateFormat";N;s:10:"\x00*\x00appends";a:0:{}s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00visible";a:0:{}s:11:"\x00*\x00fillable";a:0:{}}}s:6:"addons";a:0:{}s:13:"selectedPrice";N;s:4:"uuid";s:0:"";s:7:"ccat_id";i:-1;s:4:"ccat";N;s:8:"priority";i:1;s:8:"quantity";N;s:18:"original_unique_id";N;s:20:"special_instructions";N;s:15:"discount_amount";N;s:18:"buddy_display_name";N;s:12:"menubuddy_id";N;s:12:"source_index";N;s:9:"is_upsell";N;s:15:"\x00*\x00defaultImage";N;s:11:"\x00*\x00fillable";a:4:{i:0;s:8:"is_shown";i:1;s:14:"is_unavailable";i:2;s:12:"display_name";i:3;s:11:"description";}s:10:"\x00*\x00appends";a:2:{i:0;s:12:"single_price";i:1;s:12:"shown_status";}s:10:"\x00*\x00visible";a:5:{i:0;s:2:"id";i:1;s:11:"category_id";i:2;s:12:"display_name";i:3;s:11:"description";i:4;s:12:"shown_status";}s:8:"\x00*\x00casts";a:5:{s:8:"is_shown";s:7:"boolean";s:8:"is_pizza";s:7:"boolean";s:12:"is_orderable";s:7:"boolean";s:14:"is_unavailable";s:7:"boolean";s:19:"is_priced_per_extra";s:7:"boolean";}s:12:"pdfPageCount";i:0;s:10:"timestamps";b:0;s:9:"\x00*\x00hidden";a:1:{i:0;s:8:"password";}s:13:"\x00*\x00connection";N;s:8:"\x00*\x00table";N;s:13:"\x00*\x00primaryKey";s:2:"id";s:10:"\x00*\x00keyType";s:3:"int";s:12:"incrementing";b:1;s:7:"\x00*\x00with";a:0:{}s:12:"\x00*\x00withCount";a:0:{}s:10:"\x00*\x00perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:13:"\x00*\x00attributes";a:45:{s:2:"id";i:1865594;s:12:"display_name";s:25:"125. Sweet & Sour Chicken";s:11:"description";s:0:"";s:16:"checkout_message";s:0:"";s:8:"is_shown";i:1;s:10:"account_id";i:16839;s:12:"number_sales";i:0;s:10:"is_taxable";i:1;s:13:"min_prep_time";i:0;s:22:"min_required_per_order";i:1;s:23:"max_available_per_order";i:0;s:21:"per_order_is_per_item";i:0;s:12:"is_open_item";i:0;s:21:"is_shown_to_employees";i:1;s:8:"is_pizza";i:0;s:12:"is_orderable";i:1;s:13:"has_no_prices";i:0;s:14:"quantity_label";s:0:"";s:13:"phonetic_name";s:0:"";s:16:"freepos_category";s:0:"";s:19:"freepos_description";s:0:"";s:18:"freepos_tax_string";s:0:"";s:15:"freepos_spooler";s:0:"";s:19:"is_priced_per_extra";i:0;s:19:"custom_price_script";s:0:"";s:19:"post_item_action_id";i:0;s:25:"hide_special_instructions";i:0;s:9:"import_id";i:0;s:6:"indent";i:0;s:8:"standout";i:0;s:13:"is_label_only";i:0;s:21:"original_menu_item_id";i:0;s:21:"available_order_types";i:7;s:7:"url_tag";s:22:"125-sweet-sour-chicken";s:8:"tax_rate";N;s:14:"tax_rate_label";N;s:14:"is_unavailable";i:0;s:14:"reset_disabled";i:0;s:6:"iac_id";N;s:12:"supermenu_id";N;s:17:"pos_print_kitchen";i:0;s:15:"pos_print_label";i:0;s:8:"tax_code";N;s:12:"english_name";s:0:"";s:12:"chinese_name";s:0:"";}s:11:"\x00*\x00original";a:45:{s:2:"id";i:1865594;s:12:"display_name";s:25:"125. Sweet & Sour Chicken";s:11:"description";s:0:"";s:16:"checkout_message";s:0:"";s:8:"is_shown";i:1;s:10:"account_id";i:16839;s:12:"number_sales";i:0;s:10:"is_taxable";i:1;s:13:"min_prep_time";i:0;s:22:"min_required_per_order";i:1;s:23:"max_available_per_order";i:0;s:21:"per_order_is_per_item";i:0;s:12:"is_open_item";i:0;s:21:"is_shown_to_employees";i:1;s:8:"is_pizza";i:0;s:12:"is_orderable";i:1;s:13:"has_no_prices";i:0;s:14:"quantity_label";s:0:"";s:13:"phonetic_name";s:0:"";s:16:"freepos_category";s:0:"";s:19:"freepos_description";s:0:"";s:18:"freepos_tax_string";s:0:"";s:15:"freepos_spooler";s:0:"";s:19:"is_priced_per_extra";i:0;s:19:"custom_price_script";s:0:"";s:19:"post_item_action_id";i:0;s:25:"hide_special_instructions";i:0;s:9:"import_id";i:0;s:6:"indent";i:0;s:8:"standout";i:0;s:13:"is_label_only";i:0;s:21:"original_menu_item_id";i:0;s:21:"available_order_types";i:7;s:7:"url_tag";s:22:"125-sweet-sour-chicken";s:8:"tax_rate";N;s:14:"tax_rate_label";N;s:14:"is_unavailable";i:0;s:14:"reset_disabled";i:0;s:6:"iac_id";N;s:12:"supermenu_id";N;s:17:"pos_print_kitchen";i:0;s:15:"pos_print_label";i:0;s:8:"tax_code";N;s:12:"english_name";s:0:"";s:12:"chinese_name";s:0:"";}s:8:"\x00*\x00dates";a:0:{}s:13:"\x00*\x00dateFormat";N;s:9:"\x00*\x00events";a:0:{}s:14:"\x00*\x00observables";a:0:{}s:12:"\x00*\x00relations";a:0:{}s:10:"\x00*\x00touches";a:0:{}s:10:"\x00*\x00guarded";a:1:{i:0;s:1:"*";}}}"
    
  3. 86400
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Account.class.php
            $items = [];
            if ($category->getId() > 0) {
                $items = $category->getItems($menu->id, false, false, false, false, false, $is_admin, $this->display_zero_dollar_items);
            } elseif (is_object($restaurant)) {
                $categories = $menu->getCategoriesForRestaurant($restaurant->getId(), true, false);
                $carr = [];
                foreach ($categories as $c) {
                    if ($sortByCategory) {
                        $items[$c->id] =
                            $c->getItems($menu->id, false, false, false, false, false, $is_admin, $this->display_zero_dollar_items);
                    } else {
                        $carr[] = $c->id;
                    }
                }
 
                if (!$sortByCategory) {
                    $items = Category::getItemsForCategories(implode(',', $carr), true, $this->display_zero_dollar_items);
                }
            }
            Cache::SetArray($cache_key, $items);
        }
        return $items;
    }
 
    public function getAllConfiguredDesktopClients() {
        $db = DB::conn();
        $sql =
            'SELECT DISTINCT a.id AS id FROM desktop_client a, desktop_client_restaurant b, restaurant c WHERE a.id = b.desktopclient_id AND b.restaurant_id = c.id AND c.account_id = ?';
        $db->bindParameter($sql, 1, $this->getId(), 'integer');
        $result = $db->query($sql);
        if ($result && $result->rowCount() > 0) {
            $arr = [];
            while ($row = $result->fetch()) {
                $arr[] = new DesktopClient($row['id']);
            }
            return $arr;
        }
        return null;
    }
 
Arguments
  1. "category_4.0_items_16839_14857_189924_cat_11803"
    
  2. array:1 [
      0 => MenuItem {}
    ]
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
classes
/
Account.class.php
            "_{$this->getId()}_{$menu->getId()}_{$cid}_".
            ($sortByCategory? 'cat_' : 'alp_').
            $restaurant->getId().
            ($_SESSION['embed']? '_embed' : '').
            AWS_S3_REGION;
 
        // try to retrieve from the cache server
        $page_fragment = Cache::Get($cache_key);
 
        if (!$page_fragment) {
            //echo 'Building Category Page Fragment<br />';
            if ($cid === -1) {
                $category = new Category(-1);
                $category->setDisplayName('View All Menu Items');
                $category->setMenuId($menu->getId());
            } else {
                $category = new Category($cid);
            }
 
            $items = $this->getCategoryItems($category, $menu, $is_admin, $restaurant, $sortByCategory);
 
            // now build the page fragment
            $page_fragment = Category::buildPageFragment($menu, $category, $items, $hidePrices, $sortByCategory, $is_admin);
            Cache::Set($cache_key, $page_fragment);
        } else {
            //echo 'Using cached Category Page Fragement<br />';
        }
        return $page_fragment;
    }
 
    public function getCategoryItems($category, $menu = null, $is_admin = false, $restaurant = null, $sortByCategory = false) {
        $cache_key =
            ($is_admin? 'admin_category_items' : 'category_4.0_items').
            "_{$this->getId()}_{$menu->getId()}_{$category->getId()}_".
            ($sortByCategory? 'cat_' : 'alp_').
            $restaurant->getId().
            ($_SESSION['embed']? '_embed' : '');
        $items = Cache::GetArray($cache_key);
        if (!$items) {
            $items = [];
Arguments
  1. Category {}
    
  2. Menu {}
    
  3. false
    
  4. Restaurant {}
    
  5. true
    
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
model3.0
/
customer
/
ordering3.php
        if (count($menus) == 1) {
            $qs = '';
            if ($_GET['embed']) {
                $qs = '?embed='.$_GET['embed'];
            }
            redirectToOrdering([$restaurant, reset($menus)], $qs);
        }
        $_REQUEST['_PAGETITLE'] = 'Choose A Menu';
        break;
    case 2: //Menu
        break;
    case 3: //Category
        if (isOrderingClosed(CLOSED_MSG_RESTAURANT)) {
            $contentAndCartClass = 'contentandcart-category-closed';
        }
 
        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) {
Arguments
  1. Menu {}
    
  2. 189924
    
  3. 0
    
  4. Restaurant {}
    
  5. true
    
/
home
/
deploy
/
EHungry-8-simon
/
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-8-simon/Web/model3.0/customer/ordering3.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/newchinahouseyonkers/order/main/sweet-sour"
empty
empty
Key Value
PHPSESSID
"k2j32imrden1c6sfpjubern2jq"
Key Value
loc
"en_US"
customer_account_id
16839
restaurant_id
11803
menu_id
14857
cart
Cart {}
Key Value
UNIQUE_ID
"aBGGLdI4wlKt_hgqGtbxxAAAABg"
SCRIPT_URL
"/restaurant/newchinahouseyonkers/order/main/sweet-sour"
SCRIPT_URI
"http://www.springroll.com.8.simon.ehungry.net/restaurant/newchinahouseyonkers/order/main/sweet-sour"
HTTP_HOST
"www.springroll.com.8.simon.ehungry.net"
HTTP_X_REAL_IP
"3.17.4.144"
HTTP_X_FORWARDED_FOR
"3.17.4.144"
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=k2j32imrden1c6sfpjubern2jq"
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
"42722"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/newchinahouseyonkers/order/main/sweet-sour"
REQUEST_URI
"/restaurant/newchinahouseyonkers/order/main/sweet-sour"
SCRIPT_NAME
"/restaurant/newchinahouseyonkers/order/main/sweet-sour"
PHP_SELF
"/restaurant/newchinahouseyonkers/order/main/sweet-sour"
REQUEST_TIME_FLOAT
1745978925.691
REQUEST_TIME
1745978925
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