1 restaurant in the area
Restaurants in the area
RedisException
Stack frames (11)
10
RedisException
/
home
/deploy
/EHungry-4-boyan
/Web
/classes
/Cache.class.php
69
9
Redis
setex
/
home
/deploy
/EHungry-4-boyan
/Web
/classes
/Cache.class.php
69
8
Cache
Set
/
home
/deploy
/EHungry-4-boyan
/Web
/eds
/ordering
/restaurant.php
66
7
EDS
\Restaurant
headerImageUrl
/
home
/deploy
/EHungry-4-boyan
/Web
/eds
/ordering
/restaurant.php
14
6
EDS
\Restaurant
image
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/routes
/restaurant_list.php
889
5
Marketplace
\RestaurantListRoute
card
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/routes
/restaurant_list.php
609
4
Marketplace
\RestaurantListRoute
restaurantList
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/routes
/restaurant_list.php
96
3
Marketplace
\RestaurantListRoute
restaurantsByStateAndCity
/
home
/deploy
/EHungry-4-boyan
/Web
/Services
/Router.php
47
2
eHungry
\Services
\Router
handle
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/router.php
30
1
include
/
home
/deploy
/EHungry-4-boyan
/Web
/controllers
/marketplace.php
2
0
require
/
home
/deploy
/EHungry-4-boyan
/Web
/index.php
30
/
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
"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
"restaurant_header_image_14204"86400"https://ehungry-4-boyan-a-bucket.s3.us-west-2.amazonaws.com/web/documents/jadechinaspringdale/headerbg_5b3879190c27b.jpg"
/
home
/deploy
/EHungry-4-boyan
/Web
/eds
/ordering
/restaurant.php
$template = new \Template($template_id);
$template_settings = \TemplateAccountSetting::getAllForAccountAndTemplate($account->id, $template->id);
$url = null;
if (isset($template_settings['header_choice'])) {
if (strpos($template_settings['header_choice']->getValue(), 'defaultheader_') !== false) {
$version = $template->version ?: 3;
$url = '/web/default' . ($version === 4 ? '4.0' : '3.0') . '/img/samples/' . $template_settings['header_choice']->getValue();
} elseif ($template_settings['header_choice']->getValue() === 'color' && is_object($template_settings['header_color']) && $template_settings['header_color']->getValue() != '') {
// N/A
} elseif (isset($template_settings['header_image']) && $template_settings['header_image']->getValue() != '') {
$has_1x_header_image = isset($template_settings['header_image_1x']) && $template_settings['header_image_1x']->getValue() != '';
$url = $template_settings[$has_1x_header_image ? 'header_image_1x' : 'header_image']->getUrl();
}
}
if (!$url) {
$url = '/web/default3.0/img/samples/defaultheader_pizza1.jpg';
}
\Cache::Set($account->getRestaurantHeaderImageCacheKey(), $url);
return $url;
}
public static function openStatus($attrs, \Cart $cart, \Restaurant $restaurant, $showHoursIfOpen = false, $showHoursIfClosed = false, $fillStatusIfOpen = false) {
$hoursInfos = $restaurant->getTodaysHoursInfo();
$earliestOpen = $hoursInfos['earliestOpen'];
$isOpen = false;
$opensSoon = false;
$opensSoonKey = 'restaurant_status_opens_soon_' . $restaurant->id;
$openUntilKey = 'restaurant_status_open_until_' . $restaurant->id;
$closedUntilKey = 'restaurant_status_closed_until_' . $restaurant->id;
$orderingClosedUntilKey = 'restaurant_status_ordering_closed_until_' . $restaurant->id;
if (\Cache::Get($opensSoonKey) && \Cache::Get($opensSoonKey) >= $restaurant->getLocalTime()) {
$opensSoon = true;
$nextOpenTime = \Cache::Get($opensSoonKey);
} elseif (\Cache::Get($openUntilKey) && \Cache::Get($openUntilKey) >= $restaurant->getLocalTime()) {
$isOpen = true;
} elseif (\Cache::Get($closedUntilKey) && \Cache::Get($closedUntilKey) >= $restaurant->getLocalTime()) {
//closed
Arguments
"restaurant_header_image_14204""https://ehungry-4-boyan-a-bucket.s3.us-west-2.amazonaws.com/web/documents/jadechinaspringdale/headerbg_5b3879190c27b.jpg"
/
home
/deploy
/EHungry-4-boyan
/Web
/eds
/ordering
/restaurant.php
<?
namespace EDS;
class Restaurant {
public static function image($attrs = [], $children = [], \Account $account = null) {
if (is_null($account)) {
return '';
}
$props = defaults($attrs, [
'class' => '',
'style' => '',
]);
$header_image_url = static::headerImageUrl($account);
$logo_image_url = $account->getCachedLogoFileName();
ob_start();
?>
<div
class="flex-shrink-0 d-flex justify-content-between <?=$props['class']?>"
style="background-image: url('<?=$header_image_url?>'); background-size: cover; background-position: top center; background-repeat: no-repeat; <?=$props['style']?>"
<?=stringify_attrs(omit($attrs, array_keys($props)))?>
>
<div
class="align-self-start d-flex justify-content-center align-items-center border-5 border-white rounded-1 m-2 mt-auto bg-white p-1"
style="width: 4.5rem; height: 4.5rem; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.10)"
>
<? if ($logo_image_url) { ?>
<img class="w-100" src="<?=$logo_image_url?>" alt="Restaurant logo" />
<? } ?>
</div>
<?=stringify_children($children)?>
</div>
<?
return ob_get_clean();
}
Arguments
Account {}
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/routes
/restaurant_list.php
return ob_get_clean();
}
private static function card(\Cart $cart, \Restaurant $restaurant, $attrs = []) {
$props = \EDS\defaults($attrs, [
'class' => '',
]);
$account = new \Account($restaurant->account_id);
$is_open = $restaurant->getHasPickupBase() || $restaurant->getHasDeliveryBase() || $restaurant->getHasDineInBase();
$distance = $restaurant->distance_from_customer . ' mi';
$badge = $restaurant->coupon_count ? (\EDS\Icon(['icon' => 'ticket-alt', 'variant' => 'solid']) . 'Has ' . $restaurant->coupon_count . ' coupon' . ($restaurant->coupon_count > 1 ? 's' : '')) : '';
ob_start();
?>
<div class="restaurant_card d-flex flex-column flex-md-row <?=$props['class']?>" <?=\EDS\stringify_attrs(\EDS\omit($attrs, array_keys($props)))?>>
<?=\EDS\Restaurant::image(
['class' => 'restaurant_card-image'],
$badge ? ('<div class="restaurant_card-badge 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="p-3 eds-interface-text-m-regular">
<div class="d-flex gap-2 align-items-baseline">
<? // Display name ?>
<div>
<div class="restaurant_card-title eds-display-text-title-xs flex-fill"><?=$restaurant->display_name?></div>
<div class="eds-copy-text-s-regular mt-1"><?=$restaurant->getFullAddress(false)?></div>
</div>
</div>
<?=\EDS\Restaurant::openStatus(['class' => 'mt-1'], $cart, $restaurant, false, true, true)?>
<div class="d-flex flex-wrap align-items-baseline mt-2" style="--eds-bullet-spacing-before: 0.5rem">
<span class="bullet-separated"><?=$distance?></span>
<?=\EDS\Restaurant::rating(['class' => 'bullet-separated'], $restaurant)?>
<?=\EDS\Restaurant::priceRange(['class' => 'bullet-separated'], $restaurant)?>
<? if (\RAHCampaign::isActiveForRestaurant($restaurant)) { ?>
<div class="bullet-separated"><?=\RAHCampaign::badge()?></div>
<? } ?>
Arguments
array:1 [ "class" => "restaurant_card-image" ]
nullAccount {}
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/routes
/restaurant_list.php
max-height: none !important;
}
}
</style>
<div id="filtered-restaurants" class="d-flex flex-column gap-3 mt-3">
<? if (!$filtered_restaurants) { ?>
No restaurants match your search.
<? } ?>
<? foreach ($filtered_restaurants as $restaurant) {
$GLOBALS['account'] = new \Account($restaurant->account_id); // Unfortunately needed for `formatCustomerOrderLink`
?>
<?=\EDS\html('a', [
'id' => 'restaurant_' . $restaurant->id,
'class' => 'overflow-hidden rounded-2 border bg-white text-dark text-decoration-none',
'href' => formatCustomerOrderLink([$restaurant]),
'onclick' => static::confirmNewCart($cart, $restaurant),
], static::card($cart, $restaurant))?>
<? } ?>
</div>
</div>
</div>
<? } else { ?>
<?=static::states()?>
<? } ?>
</div>
<?=\EDS\Dialog(['id' => 'modal-map-restaurant', 'size' => 'medium', 'fullscreen' => false])?>
</section>
<?
if ($nearMeCuisine && !$map_is_shown) {
echo static::nearMeJs();
}
if (count($url_params) > 0) { // sc-60709: use canonical url and noindex for restaurant searches
\EDS\Portal::input('canonical_url', $canonicalUrl);
\EDS\Portal::input('meta-robots', 'noindex');
}
Arguments
Cart {}Restaurant {}
/
home
/deploy
/EHungry-4-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/arkansas/springdale" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Arkansas" "city" => "Springdale" "search" => "Springdale, Arkansas" "lat" => 36.1745244 "lng" => -94.1390137 ]
/
home
/deploy
/EHungry-4-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/arkansas/springdale" "state" => "arkansas" 1 => "arkansas" "city" => "springdale" 2 => "springdale" ]
array:9 [ "aid" => "restaurants/arkansas/springdale" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Arkansas" "city" => "Springdale" "search" => "Springdale, Arkansas" "lat" => 36.1745244 "lng" => -94.1390137 ]
/
home
/deploy
/EHungry-4-boyan
/Web
/marketplace
/router.php
require_once(CORE_PATH . 'checkout/cart.php');
require_once(CORE_PATH . 'checkout/tip.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,
\Checkout\CartRoutes::class,
\Checkout\TipRoutes::class,
LandingRoute::class,
CampaignsRoute::class,
ProductRoute::class,
Arguments
"GET""/restaurants/arkansas/springdale"array:4 [ "aid" => "restaurants/arkansas/springdale" "status" => [] "controller" => "marketplace" "form" => "home" ]
array:22 [ 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 => "Checkout\CartRoutes" 14 => "Checkout\TipRoutes" 15 => "Marketplace\LandingRoute" 16 => "Marketplace\CampaignsRoute" 17 => "Marketplace\ProductRoute" 18 => "Marketplace\RestaurantListRoute" 19 => "Marketplace\RestaurantPageRoute" 20 => "Marketplace\SupportRoutes" 21 => "Marketplace\GeneratedFilesRoute" ]
/
home
/deploy
/EHungry-4-boyan
/Web
/controllers
/marketplace.php
<? include(CORE_PATH . 'marketplace/router.php');
Arguments
"/home/deploy/EHungry-4-boyan/Web/marketplace/router.php"
/
home
/deploy
/EHungry-4-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-4-boyan/Web/controllers/marketplace.php"
Environment & details:
| Key | Value |
| aid | "restaurants/arkansas/springdale"
|
empty
empty
| Key | Value |
| PHPSESSID | "dh1pt0trhvr417hll6qt8tg1fe"
|
| Key | Value |
| loc | "en_US"
|
| cart | Cart {}
|
| customer_account_id | 84948
|
| restaurant_id | 9584
|
| menu_id | 12137
|
| Key | Value |
| UNIQUE_ID | "aZ016bwVrqqG5EaucJFdAwAAAAs"
|
| SCRIPT_URL | "/restaurants/arkansas/springdale"
|
| SCRIPT_URI | "http://www.springroll.com.4.boyan.ehungry.net/restaurants/arkansas/springdale"
|
| HTTP_HOST | "www.springroll.com.4.boyan.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.216.114"
|
| HTTP_X_FORWARDED_FOR | "216.73.216.114"
|
| 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=dh1pt0trhvr417hll6qt8tg1fe"
|
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin"
|
| SERVER_SIGNATURE | "" |
| SERVER_SOFTWARE | "Apache/2.4.66 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34"
|
| SERVER_NAME | "www.springroll.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 | "48012"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurants/arkansas/springdale"
|
| REQUEST_URI | "/restaurants/arkansas/springdale"
|
| SCRIPT_NAME | "/restaurants/arkansas/springdale"
|
| PHP_SELF | "/restaurants/arkansas/springdale"
|
| REQUEST_TIME_FLOAT | 1771910633.224
|
| REQUEST_TIME | 1771910633
|
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