50+ restaurants in the area
Has 5 coupons
Miyuki Sushi - Brighton
RedisException
Stack frames (11)
10
RedisException
/
home
/deploy
/EHungry-5-boyan
/Web
/classes
/Cache.class.php
69
9
Redis
setex
/
home
/deploy
/EHungry-5-boyan
/Web
/classes
/Cache.class.php
69
8
Cache
Set
/
home
/deploy
/EHungry-5-boyan
/Web
/classes
/SpringrollSetting.class.php
33
7
SpringrollSetting
getSetting
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
845
6
Marketplace
\RestaurantListRoute
collectionCard
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
754
5
Marketplace
\RestaurantListRoute
restaurantCollection
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
511
4
Marketplace
\RestaurantListRoute
restaurantList
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
96
3
Marketplace
\RestaurantListRoute
restaurantsByStateAndCity
/
home
/deploy
/EHungry-5-boyan
/Web
/Services
/Router.php
47
2
eHungry
\Services
\Router
handle
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/router.php
27
1
include
/
home
/deploy
/EHungry-5-boyan
/Web
/controllers
/marketplace.php
2
0
require
/
home
/deploy
/EHungry-5-boyan
/Web
/index.php
30
/
home
/deploy
/EHungry-5-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-5-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
"springroll_setting_hide_low_rating_restaurants"86400null
/
home
/deploy
/EHungry-5-boyan
/Web
/classes
/SpringrollSetting.class.php
public const MODIFIED_AT = 'modified_at';
const HIDE_LOW_RATING_RESTAURANTS = 'hide_low_rating_restaurants';
public static function setSetting($key_name, $value) {
$setting = SpringrollSetting::firstOrNew([
'key_name' => $key_name
]);
$setting->value = $value;
Cache::Set('springroll_setting_' . $key_name, $value);
$setting->save();
}
public static function getSetting($key_name) {
$cacheKey = 'springroll_setting_' . $key_name;
$value = Cache::Get($cacheKey);
if (!$value) {
$setting = SpringrollSetting::where('key_name', $key_name)->get()->first();
$value = $setting->value ?: null;
Cache::Set($cacheKey, $value);
}
return $value;
}
}
Arguments
"springroll_setting_hide_low_rating_restaurants"null
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
$props = \EDS\defaults($attrs, []);
$account = new \Account($restaurant->account_id);
$badge = $restaurant->coupon_count ? (\EDS\Icon(['icon' => 'ticket-alt', 'variant' => 'solid']) . 'Has ' . $restaurant->coupon_count . ' coupon' . ($restaurant->coupon_count > 1 ? 's' : '')) : '';
ob_start();
?>
<div <?=\EDS\stringify_attrs(\EDS\omit($attrs, array_keys($props)))?>>
<?=\EDS\Restaurant::image(
['class' => 'rounded-2', 'style' => 'width: 290px; height: 142px'],
$badge
? '<div class="align-self-start rounded-start mt-3 bg-success ps-2 pe-2p5 py-1 text-white eds-interface-text-s-bold">' . $badge . '</div>'
: null,
$account
)?>
<div class="mt-2 eds-display-text-title-xxs" style="max-width: 290px"><?=$restaurant->display_name?></div>
<?
$hideLowRatingRestaurants = \SpringrollSetting::getSetting(\SpringrollSetting::HIDE_LOW_RATING_RESTAURANTS);
if ($restaurant->google_rating && (!$hideLowRatingRestaurants || floatval($restaurant->google_rating) >= 3)) { ?>
<div class="d-flex eds-copy-text-s-bold" style="--eds-bullet-spacing-before: 0.5rem">
<div class="bullet-separated">
<?=\EDS\Icon(['icon' => 'star', 'class' => 'text-warning'])?>
<span class="text-dark"><?=$restaurant->google_rating?></span>
</div>
<? if (\RAHCampaign::isActiveForRestaurant($restaurant)) { ?>
<div class="bullet-separated"><?=\RAHCampaign::badge()?></div>
<? } ?>
</div>
<? } ?>
</div>
<?
return ob_get_clean();
}
private static function card(\Cart $cart, \Restaurant $restaurant, $attrs = []) {
$props = \EDS\defaults($attrs, [
Arguments
"hide_low_rating_restaurants"
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
<? } ?>
<? } ?>
</div>
<?
return ob_get_clean();
}
private static function restaurantCollection($attrs, $restaurants) {
$cart = \eHungry\Services\Cart::getCart();
$children = [];
foreach ($restaurants as $restaurant) {
$account = new \Account($restaurant->account_id);
$children[] = \EDS\html('a', [
'id' => 'restaurant_collection_' . $restaurant->id,
'class' => 'collection_card flex-shrink-0 d-block rounded-2 text-dark text-decoration-none',
'href' => $account->formatCustomerOrderLinkForCurrentPlatform($restaurant),
'onclick' => static::confirmNewCart($cart, $restaurant),
], static::collectionCard($restaurant, ['class' => 'h-100']));
}
return static::collection(array_merge([
'show_controls' => count($restaurants) > 1,
'scroll_step' => "$(this).find('.collection_card').width() + 16",
'breakout' => '0',
], $attrs), $children);
}
private static function confirmNewCart(\Cart $cart, \Restaurant $restaurant) {
return count($cart->cartItems) > 0 && $restaurant->id !== \eHungry\Services\Restaurant::getRestaurantId()
? "return window.confirm(`Switching to $restaurant->display_name will clear your cart. Press OK to start a new order or Cancel to keep your current order from ".\eHungry\Services\Restaurant::getRestaurant()->display_name.".`)"
: null;
}
private static function collection($attrs, $children) {
return \EDS\Collection(
array_merge($attrs, [
'class' => 'mt-5 mb-4 ' . ($attrs['class'] ?? ''),
'padding' => 'px-4 px-' . static::BREAKPOINT . '-0',
'title' => '<div class="fw-medium" style="font-family: var(--springroll-font-display)">' . $attrs['title'] . '</div>',
Arguments
Restaurant {}array:1 [ "class" => "h-100" ]
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
'id' => $restaurant->id,
'name' => $restaurant->display_name,
'lat' => $restaurant->getLatitude(),
'lng' => $restaurant->getLongitude(),
];
}
?>
$(() => setMapRestaurants(<?=json_encode($mapped_restaurants)?>));
</script>
<? // Results ?>
<div id="restaurant-list">
<div id="collections">
<? $has_active_filters = count($active_params) > 0; ?>
<? if (!$has_active_filters) { ?>
<?=static::restaurantCollection(['id' => 'featured', 'title' => 'Featured'], DataService::getFeaturedRestaurants($coordinates))?>
<?=static::restaurantCollection(['id' => 'new', 'title' => 'New on Springroll'], DataService::getNewRestaurants($coordinates))?>
<?=static::restaurantCollection(['id' => 'dealsandcoupons', 'title' => 'Deals & Coupons'], DataService::getDealsAndCoupons($coordinates))?>
<? // We're using Deals & Coupons collection for now, but keeping this here in case we want to use that big 2 cards per scroll design later
// Promotions
/*$promotions = DataService::getPromotions();
$promotionsHtml = '';
foreach ($promotions as $promotion) {
$promotionsHtml .= static::promotionCard($promotion);
}*/
?>
<?//=static::collection(['id' => 'promotions', 'title' => 'Promotions'], $promotionsHtml)?>
<? } ?>
</div>
<? // Filtered restaurants ?>
<div id="filtered-restaurants-container" class="mt-4 px-4 px-<?=static::BREAKPOINT?>-0">
<h2 class="eds-display-text-title-m fw-medium" style="font-family: var(--springroll-font-display)">Restaurants in the area</h2>
<style>
.collection_card:focus, .restaurant_card:focus {
outline: 2px solid var(--bs-dark);
Arguments
array:2 [ "id" => "dealsandcoupons" "title" => "Deals & Coupons" ]
array:3 [ 0 => Restaurant {} 1 => Restaurant {} 2 => Restaurant {} ]
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/routes
/restaurant_list.php
}
return static::restaurantList($request);
}
public static function restaurantsByStateAndCity(array $params, array $request) {
$state = \EDS\undasherize($params['state']);
$city = \EDS\undasherize($params['city']);
$request = array_merge($request, static::getStateAndCityIfRestaurantsAvailable($state, $city));
$address = "$city, $state";
$request['search'] = $address;
$geocode_data = \ZipCode::getGeoLocation($address);
if ($geocode_data) {
$request['lat'] = $geocode_data[0];
$request['lng'] = $geocode_data[1];
}
return static::restaurantList($request);
}
private static function getStateAndCityIfRestaurantsAvailable(?string $state_or_abbr, ?string $city) {
$state_or_abbr = trim($state_or_abbr ?: '');
$city = trim($city ?: '');
$states = DataService::getStates();
$state_name = (
$state_or_abbr && array_key_exists($state_or_abbr, $states)
? $state_or_abbr
: (getStateFullName($state_or_abbr) && array_key_exists(getStateFullName($state_or_abbr), $states)
? getStateFullName($state_or_abbr)
: null)
);
$city_name = $state_name && in_array($city, $states[$state_name]) ? $city : null;
return ['state' => $state_name, 'city' => $city_name];
}
// Components
Arguments
array:9 [ "aid" => "restaurants/rhode-island/cumberland" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Rhode Island" "city" => "Cumberland" "search" => "Cumberland, Rhode Island" "lat" => 41.9721816 "lng" => -71.4061876 ]
/
home
/deploy
/EHungry-5-boyan
/Web
/Services
/Router.php
* ```
*
* @return mixed
*/
public static function handle(string $method, string $url, array $request, array $route_classes) {
$_REQUEST['_VERSION'] = 4; // Important for some methods that rely on the version
$account_id_string = Account::getAccountIdString();
$decoded_url = urldecode($url); // Handle encoded characters like `%20`
$unprefixed_url = $account_id_string
? preg_replace("/^\/$account_id_string/", '', $decoded_url)
: $decoded_url;
foreach ($route_classes as $route_class) {
$routes = $route_class::ROUTES;
foreach ($routes as $path => $handler) {
$params = [];
if (preg_match("/^$path\/?$/i", "$method $unprefixed_url", $params)) {
return $route_class::$handler($params, $request);
}
}
}
http_response_code(404);
return '<div class="px-4 py-3">' . \EDS\Alert(['variant' => 'danger'], 'Not Found') . '</div>';
}
}
Arguments
array:5 [ 0 => "GET /restaurants/rhode-island/cumberland" "state" => "rhode-island" 1 => "rhode-island" "city" => "cumberland" 2 => "cumberland" ]
array:9 [ "aid" => "restaurants/rhode-island/cumberland" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Rhode Island" "city" => "Cumberland" "search" => "Cumberland, Rhode Island" "lat" => 41.9721816 "lng" => -71.4061876 ]
/
home
/deploy
/EHungry-5-boyan
/Web
/marketplace
/router.php
require_once(CORE_PATH . 'auth/forgotpassword.php');
require_once(CORE_PATH . 'auth/login.php');
require_once(CORE_PATH . 'auth/register.php');
require_once(CORE_PATH . 'marketplace/assets/assets.php');
require_once(__DIR__ . '/routes/landing.php');
require_once(__DIR__ . '/routes/campaigns.php');
require_once(__DIR__ . '/routes/product.php');
require_once(__DIR__ . '/routes/restaurant_list.php');
require_once(__DIR__ . '/routes/restaurant_details.php');
require_once(__DIR__ . '/routes/support.php');
require_once(__DIR__ . '/routes/generatedfilesroute.php');
$handler_output = \eHungry\Services\Router::handle(
$_SERVER['REQUEST_METHOD'],
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH),
$_REQUEST,
[
\AccountSettings\ProfileInfoRoutes::class,
\AccountSettings\BasicInformationRoutes::class,
\AccountSettings\ChangePasswordRoutes::class,
\AccountSettings\AddressRoutes::class,
\AccountSettings\PaymentMethodRoutes::class,
\AccountSettings\CommunicationRoutes::class,
\AccountSettings\CampaignsRoutes::class,
\AccountSettings\AccountRoutes::class,
\AccountSettings\OrderRoutes::class,
\AccountSettings\CouponRoutes::class,
\Auth\ForgotPasswordRoutes::class,
\Auth\LoginRoutes::class,
\Auth\RegisterRoutes::class,
LandingRoute::class,
CampaignsRoute::class,
ProductRoute::class,
RestaurantListRoute::class,
RestaurantPageRoute::class,
SupportRoutes::class,
Arguments
"GET""/restaurants/rhode-island/cumberland"array:4 [ "aid" => "restaurants/rhode-island/cumberland" "status" => [] "controller" => "marketplace" "form" => "home" ]
array:20 [ 0 => "AccountSettings\ProfileInfoRoutes" 1 => "AccountSettings\BasicInformationRoutes" 2 => "AccountSettings\ChangePasswordRoutes" 3 => "AccountSettings\AddressRoutes" 4 => "AccountSettings\PaymentMethodRoutes" 5 => "AccountSettings\CommunicationRoutes" 6 => "AccountSettings\CampaignsRoutes" 7 => "AccountSettings\AccountRoutes" 8 => "AccountSettings\OrderRoutes" 9 => "AccountSettings\CouponRoutes" 10 => "Auth\ForgotPasswordRoutes" 11 => "Auth\LoginRoutes" 12 => "Auth\RegisterRoutes" 13 => "Marketplace\LandingRoute" 14 => "Marketplace\CampaignsRoute" 15 => "Marketplace\ProductRoute" 16 => "Marketplace\RestaurantListRoute" 17 => "Marketplace\RestaurantPageRoute" 18 => "Marketplace\SupportRoutes" 19 => "Marketplace\GeneratedFilesRoute" ]
/
home
/deploy
/EHungry-5-boyan
/Web
/controllers
/marketplace.php
<? include(CORE_PATH . 'marketplace/router.php');
Arguments
"/home/deploy/EHungry-5-boyan/Web/marketplace/router.php"
/
home
/deploy
/EHungry-5-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-5-boyan/Web/controllers/marketplace.php"
Environment & details:
| Key | Value |
| aid | "restaurants/rhode-island/cumberland"
|
empty
empty
empty
| Key | Value |
| loc | "en_US"
|
| cart | Cart {}
|
| Key | Value |
| UNIQUE_ID | "aTSebJ6XVla95gBv0E0kuAAAAA0"
|
| SCRIPT_URL | "/restaurants/rhode-island/cumberland"
|
| SCRIPT_URI | "http://www.springroll.com.5.boyan.ehungry.net/restaurants/rhode-island/cumberland"
|
| HTTP_HOST | "www.springroll.com.5.boyan.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.216.186"
|
| HTTP_X_FORWARDED_FOR | "216.73.216.186"
|
| 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"
|
| 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.5.boyan.ehungry.net"
|
| SERVER_ADDR | "127.0.0.1"
|
| SERVER_PORT | "80"
|
| REMOTE_ADDR | "127.0.0.1"
|
| DOCUMENT_ROOT | "/home/deploy/EHungry-5-boyan/Web"
|
| REQUEST_SCHEME | "http"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-5-boyan/Web"
|
| SERVER_ADMIN | "root@localhost"
|
| SCRIPT_FILENAME | "/home/deploy/EHungry-5-boyan/Web/index.php"
|
| REMOTE_PORT | "51720"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurants/rhode-island/cumberland"
|
| REQUEST_URI | "/restaurants/rhode-island/cumberland"
|
| SCRIPT_NAME | "/restaurants/rhode-island/cumberland"
|
| PHP_SELF | "/restaurants/rhode-island/cumberland"
|
| REQUEST_TIME_FLOAT | 1765056108.124
|
| REQUEST_TIME | 1765056108
|
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