SHRIMP W/ MIXED VEGETABLE
Options
Whoops! There was an error.
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
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:
#10 RedisException in /home/deploy/EHungry-3-boyan/Web/classes/Cache.class.php:69
#9 Redis:setex in /home/deploy/EHungry-3-boyan/Web/classes/Cache.class.php:69
#8 Cache:Set in /home/deploy/EHungry-3-boyan/Web/classes/Cache.class.php:53
#7 Cache:SetObject in /home/deploy/EHungry-3-boyan/Web/classes/MenuItemAddOnPrice.class.php:88
#6 MenuItemAddOnPrice:getByPriceAndAddon in /home/deploy/EHungry-3-boyan/Web/classes/CustomPriceClass.php:25
#5 CustomPriceClass:getCustomValueForPrice in /home/deploy/EHungry-3-boyan/Web/lib/global.php:2340
#4 renderOption2 in /home/deploy/EHungry-3-boyan/Web/templates3.0/customer/menuitemaddons.php:41
#3 include in /home/deploy/EHungry-3-boyan/Web/templates3.0/customer/menuitem.php:140
#2 include in /home/deploy/EHungry-3-boyan/Web/view3.0/customer/ordering3.php:30
#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 (11)
10
RedisException
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cache.class.php
69
9
Redis
setex
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cache.class.php
69
8
Cache
Set
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/Cache.class.php
53
7
Cache
SetObject
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/MenuItemAddOnPrice.class.php
88
6
MenuItemAddOnPrice
getByPriceAndAddon
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/CustomPriceClass.php
25
5
CustomPriceClass
getCustomValueForPrice
/
home
/deploy
/EHungry-3-boyan
/Web
/lib
/global.php
2340
4
renderOption2
/
home
/deploy
/EHungry-3-boyan
/Web
/templates3.0
/customer
/menuitemaddons.php
41
3
include
/
home
/deploy
/EHungry-3-boyan
/Web
/templates3.0
/customer
/menuitem.php
140
2
include
/
home
/deploy
/EHungry-3-boyan
/Web
/view3.0
/customer
/ordering3.php
30
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
"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
"miap_pa_1483166_192010_1"86400"N;"
/
home
/deploy
/EHungry-3-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
"miap_pa_1483166_192010_1""N;"86400
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/MenuItemAddOnPrice.class.php
$co = Cache::GetObject($cacheKey, true);
if ($co || is_null($co)) {
return $co;
}
$db_conn = DB::conn();
$sql = "SELECT * FROM ".MenuItemAddOnPrice::getTableName()." WHERE menu_item_price_id = ? AND menu_item_add_on_id = ? AND is_option_choice = ?";
$db_conn->bindParameter($sql, 1, $price_id, "integer");
$db_conn->bindParameter($sql, 1, $aoid, "integer");
$db_conn->bindParameter($sql, 1, $is_option_choice, "boolean");
$result = $db_conn->query($sql);
if ($result && $result->rowCount() > 0) {
if ($row = $result->fetch()) {
$miap = new MenuItemAddOnPrice();
$miap->loadFromArray($row, true);
Cache::SetObject($cacheKey, $miap);
return $miap;
}
}
Cache::SetObject($cacheKey, null);
return null;
}
public function hasPriceOverride() {
return $this->priceOverride;
}
public function setPriceOverride($b) {
$this->priceOverride = $b;
}
public function getOriginalPriceValue() {
return $this->originalPriceValue;
}
public function setOriginalPriceValue($p) {
$this->originalPriceValue = $p;
}
}
Arguments
"miap_pa_1483166_192010_1"null
/
home
/deploy
/EHungry-3-boyan
/Web
/classes
/CustomPriceClass.php
* @param MenuItemPrice|int $selectedPrice The price object or its ID
* @param string $pizzaChoice
* @param Restaurant $restaurant
* @param string|null $multiplicity
* @return float
*/
public function getCustomValueForPrice($selectedPrice = null, $pizzaChoice = 'W', $restaurant = null, $multiplicity = null) {
$fullPrice = $this->getPriceValue();
$halfPrice = $this->getHalfPriceValue();
$isOptionChoice = $this instanceof OptionChoice;
$priceId = is_object($selectedPrice)? $selectedPrice->id : $selectedPrice;
if ($priceId) {
//if custom price loaded in getAllForMenuItemPrice via loadFromArray
if (($this->issCustomPriceValue() && $this->getCustomPriceValue() !== false) ||
($this->issCustomHalfPriceValue() && $this->getCustomHalfPriceValue() !== false)) {
$fullPrice = $this->getCustomPriceValue();
$halfPrice = $this->getCustomHalfPriceValue();
} else {
$miap = MenuItemAddOnPrice::getByPriceAndAddon($priceId, $this->id, $isOptionChoice);
if (is_object($miap)) {
$fullPrice = $miap->getPriceValue();
$halfPrice = $miap->getHalfPriceValue();
}
}
}
if ($multiplicity !== null && !$_REQUEST['cartuid']) {
$cart = Cart::getCurrent();
$addonId = $isOptionChoice ? $this->menu_item_add_on_id : $this->id;
$pizzaOptionKey = 'pizza_option_'.$addonId.'-'.$multiplicity;
$pizzaChoice = $cart->getItemPreview($selectedPrice->menu_item_id, $pizzaOptionKey) ?: $pizzaChoice;
}
if ($pizzaChoice == 'W') {
return $fullPrice;
} else {
if ($halfPrice > 0) {
return $halfPrice;
} else {
$pizzaOptionPercentage = is_object($restaurant)? $restaurant->getPizzaOptionPercentage() : 0.5;
Arguments
1483166192010true
/
home
/deploy
/EHungry-3-boyan
/Web
/lib
/global.php
if ($edit_mode) {
$addon_parent_id = $parent_id ? explode('_', $parent_id)[1] : $parent_id;
$so = $item->getAddonById($o->getId(), $i, $addon_parent_id);
if ($oc->getChildAddonId() > 0) {
if ($so && $so->getSelectedOptionChoice()==$oc->getId()) {
$shownChildId = $oc->getChildAddonId();
}
$hasChildren = true;
}
$selected = ($so && $so->getSelectedOptionChoice()==$oc->getId()) || ((!$so || !$so->getSelectedOptionChoice()) && $oc->getIsPreselected());
} else {
if ($oc->getChildAddonId() > 0) {
if ($oc->getIsPreselected()) {
$shownChildId = $oc->getChildAddonId();
}
$hasChildren = true;
}
$selected = $oc->getIsPreselected();
}
$price = $oc->getCustomValueForPrice($selected_price, $pizzaChoice, $restaurant);
if ($price < 0) {
continue;
}
$str .= '<option value="'.$oc->getId().'" '.($selected?'selected':'').'>'.$oc->getDisplayName().' '.($price > 0 ? ' ('.(intToMoneyString($price)).')' : '').'</option>';
}
}
$str .= '
</select>
</p>';
if ($hasChildren) {
$str .= '<div id="conditional_addon_'.$o->getId().'_'.$i.'" style="display:none;" ></div>';
if ($shownChildId && !$is_conditional) {
$str .= '<script type="text/javascript">$(function() {toggleConditionalAddon($(\'#option_'. $o->getId().'_'.$i.$parent_id.'\')[0], '.$o->getId().', '.$i.', '.$item->getId().', '.($edit_mode?'true':'false').', '. ($item->uuid ? ("'" . $item->uuid . "'") : 'null') .');});</script>';
}
}
$str .= '
</div>';
}
}
Arguments
MenuItemPrice {}"W"Restaurant {}
/
home
/deploy
/EHungry-3-boyan
/Web
/templates3.0
/customer
/menuitemaddons.php
}
$group = new MenuItemAddonGroup($o->getAddonGroupId());
$optionNameCount[$o->getDisplayName()] = 0;
echo '
<div class="groupofoptions">
<fieldset><legend>'.$group->getDisplayName().'</legend>';
$curGroupId = $o->getAddonGroupId();
$inGroup = true;
}
if ($o->getAddonGroupId() < 1) {
if ($inGroup) {
echo '</fieldset></div>';
}
$inGroup = false;
}
if (empty($optionNameCount[$o->getDisplayName()])) {
$optionNameCount[$o->getDisplayName()] = 0;
}
$optionNameCount[$o->getDisplayName()] += 1;
echo renderOption2($item, $o, $edit_mode, false, -1, $restaurant, $optionNameCount[$o->getDisplayName()]);
}
if ($inGroup) {
echo '</fieldset></div>';
}
echo '</div>';
}
if (is_array($addons[TOPPING]) && count($addons[TOPPING]) > 0) { ?>
<span class="h3 withbgr"><?=$restaurant->getToppingLabel()?: "Toppings"?></span>
<?=$restaurant->getToppingDescription()?'<p class="description">'.$restaurant->getToppingDescription().'</p>':''?>
<div class="option mb30">
<?
$curGroupId = -1;
$inGroup = false;
foreach ($addons[TOPPING] as $o) {
if ($o->getAddonGroupId() > 0 && $o->getAddonGroupId() != $curGroupId) {
if ($inGroup) {
echo '</fieldset></div>';
}
$group = new MenuItemAddonGroup($o->getAddonGroupId());
Arguments
MenuItem {}MenuItemAddOn {}falsefalse""
Restaurant {}1
/
home
/deploy
/EHungry-3-boyan
/Web
/templates3.0
/customer
/menuitem.php
}
}
}
?>
</table>
</div>
<? if ($default_image) { ?>
<div class="item-top itemTopImage">
<a href="<?=$default_image_full?>" data-fancybox>
<img style="cursor: zoom-in;" src="<?=$default_image?>" alt=<?=QA($item->getDisplayName())?> />
<span style="width: 100%; text-align: center; font-size: .8em; color: #757575; cursor: zoom-in;">click to enlarge</span>
</a>
</div>
<? } ?>
</div>
<? } ?>
<div id="menu_item_add_ons">
<? if (!$item->is_unavailable) {
include(CORE_PATH . "templates3.0/customer/menuitemaddons.php");
} ?>
</div>
<?
$default_msg = 'This item cannot be ordered online.';
$isSoldOut = false;
if ($account->getInventoryManagerEnabled()) {
$inventory = CategoryMenuItem::getInventoryForCategoryAndItem($category->getId(), $item->getId());
if ($inventory !== null && $inventory - $numberSales <= 0) {
$isSoldOut = true;
$default_msg = 'This item is sold out for the day';
}
}
if ($item->is_unavailable) {
$default_msg = 'This item is temporarily unavailable for online ordering.';
}
if ($closed_msg = isOrderingClosed() || !$item->getIsOrderable() || $item->is_unavailable) {
if (!$item->getIsOrderable() || $item->is_unavailable) {
?>
<div class="alert alert-error"><?=is_string($closed_msg)? $closed_msg : $default_msg?></div>
Arguments
"/home/deploy/EHungry-3-boyan/Web/templates3.0/customer/menuitemaddons.php"
/
home
/deploy
/EHungry-3-boyan
/Web
/view3.0
/customer
/ordering3.php
break;
case 2:
if ($account->getDefaultOrderingPage() == 3) {
// Then we show categories with pictures (grid)
App::debugbarTime($timerLevel = 'ordering3: categorygrid');
include(CORE_PATH."templates3.0/customer/categorygrid.php");
} else {
// Else, we show category lists with no pictures
App::debugbarTime($timerLevel = 'ordering3: categorylist');
include(CORE_PATH."templates3.0/customer/categorylist.php");
}
break;
case 3:
App::debugbarTime($timerLevel = 'ordering3: category');
include(CORE_PATH . "view3.0/customer/category.php");
break;
case 4:
case 5:
App::debugbarTime($timerLevel = 'ordering3: menuitem');
include(CORE_PATH . "templates3.0/customer/menuitem.php");
break;
}
if (isset($timerLevel)) {
App::debugbarTime($timerLevel);
}
Arguments
"/home/deploy/EHungry-3-boyan/Web/templates3.0/customer/menuitem.php"
/
home
/deploy
/EHungry-3-boyan
/Web
/controllers
/customer.php
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();
//FIXME: it's technically possible to end up with $template = null
if (!$_REQUEST['contentonly']) {
$template = !isset($_REQUEST["altdoc"])? "app/$part" : "app/alt$part";
}
} else {
$template = !isset($_REQUEST["altdoc"])? "customer/$part" : "customer/alt$part";
}
Arguments
"/home/deploy/EHungry-3-boyan/Web/view3.0/customer/ordering3.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
"/home/deploy/EHungry-3-boyan/Web/controllers/customer.php"
Environment & details:
| Key | Value |
| aid | "restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
empty
empty
| Key | Value |
| PHPSESSID | "5tipp3hqqrv5i1rt44m53s9m79"
|
| Key | Value |
| loc | "en_US"
|
| customer_account_id | 29298
|
| cart | Cart {}
|
| restaurant_id | 6953
|
| app_banner_shown | true
|
| status | array:2 [ 1 => [] 2 => [] ] |
| redirect_form | "checkout"
|
| menu_id | 8932
|
| Key | Value |
| UNIQUE_ID | "aT_JjotJ28FU69qRF8L5AgAAAAw"
|
| SCRIPT_URL | "/restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
| SCRIPT_URI | "http://www.springroll.com.3.boyan.ehungry.net/restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
| HTTP_HOST | "www.springroll.com.3.boyan.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.216.115"
|
| HTTP_X_FORWARDED_FOR | "216.73.216.115"
|
| 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=5tipp3hqqrv5i1rt44m53s9m79"
|
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
| SERVER_SIGNATURE | "" |
| SERVER_SOFTWARE | "Apache/2.4.65 () 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 | "48738"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
| REQUEST_URI | "/restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
| SCRIPT_NAME | "/restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
| PHP_SELF | "/restaurant/grandchinaloganvillega/order/main-menu/seafood/shrimp-w-mixed-vegetable"
|
| REQUEST_TIME_FLOAT | 1765788046.825
|
| REQUEST_TIME | 1765788046
|
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