17 restaurants in the area
Has 3 coupons
Saint Louis Kitchen
RedisException
Stack frames (16)
15
RedisException
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/Cache.class.php
69
14
Redis
setex
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/Cache.class.php
69
13
Cache
Set
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/Cache.class.php
57
12
Cache
SetArray
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/DbFields.php
53
11
DbFields
getFields
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/BaseClass.class.php
474
10
BaseClass
setAttribute
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/BaseClass.class.php
157
9
BaseClass
__construct
…
/vendor
/illuminate
/database
/Eloquent
/Model.php
1386
8
Illuminate
\Database
\Eloquent
\Model
__callStatic
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/SpringrollSetting.class.php
31
7
SpringrollSetting
getSetting
/
home
/deploy
/EHungry-11-boyan
/Web
/marketplace
/routes
/restaurant_list.php
852
6
Marketplace
\RestaurantListRoute
collectionCard
/
home
/deploy
/EHungry-11-boyan
/Web
/marketplace
/routes
/restaurant_list.php
761
5
Marketplace
\RestaurantListRoute
restaurantCollection
/
home
/deploy
/EHungry-11-boyan
/Web
/marketplace
/routes
/restaurant_list.php
511
4
Marketplace
\RestaurantListRoute
restaurantList
/
home
/deploy
/EHungry-11-boyan
/Web
/marketplace
/routes
/restaurant_list.php
96
3
Marketplace
\RestaurantListRoute
restaurantsByStateAndCity
/
home
/deploy
/EHungry-11-boyan
/Web
/Services
/Router.php
52
2
eHungry
\Services
\Router
handle
/
home
/deploy
/EHungry-11-boyan
/Web
/marketplace
/router.php
31
1
include
/
home
/deploy
/EHungry-11-boyan
/Web
/controllers
/marketplace.php
2
0
require
/
home
/deploy
/EHungry-11-boyan
/Web
/index.php
30
/
home
/deploy
/EHungry-11-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-11-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
"describe_springroll_setting_1"86400"a:5:{s:2:"id";s:1:"N";s:10:"created_at";s:2:"DT";s:11:"modified_at";s:2:"DT";s:8:"key_name";s:1:"S";s:5:"value";s:1:"S";}"
/
home
/deploy
/EHungry-11-boyan
/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
"describe_springroll_setting_1""a:5:{s:2:"id";s:1:"N";s:10:"created_at";s:2:"DT";s:11:"modified_at";s:2:"DT";s:8:"key_name";s:1:"S";s:5:"value";s:1:"S";}"86400
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/DbFields.php
$this->table = $table;
}
public function getFields($withTypes = false):array {
//FIXME: workaround for BaseClass objects that are not present in the database. check BaseClass::NO_TABLE
if (!$this->table) {
return [];
}
if (!$this->typesCache) { //not in the local cache, let's fetch it
$cacheKey = "describe_{$this->table}_1"; //this "1" meant "include ID" in the old code
//TODO: replace with Cache::Remember
$this->typesCache = Cache::GetArray($cacheKey);
if (!$this->typesCache || self::SKIP_CACHE) { //not in the cache either, let's generate it
$this->typesCache = collect(DB::select("DESCRIBE $this->table"))
->pluck('Type', 'Field')
->transform(['DbFields','simplifyType'])
->all();
Cache::SetArray($cacheKey, $this->typesCache);
}
}
if (!$this->fieldsCache && !$withTypes) {
$this->fieldsCache = array_keys($this->typesCache);
}
return $withTypes? $this->typesCache : $this->fieldsCache;
}
/**
* Separates all attributes into custom and pure fields (those present on the database table).
* @param array $values
* @return array 0 => custom fields, 1 => pure fields
*/
public function splitCustom(array $values) {
$tableFields = array_flip($this->getFields());
$customFields = array_diff_key($values, $tableFields);
$pureFields = array_intersect_key($values, $tableFields);
Arguments
"describe_springroll_setting_1"array:5 [ "id" => "N" "created_at" => "DT" "modified_at" => "DT" "key_name" => "S" "value" => "S" ]
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/BaseClass.class.php
* Checks for either legacy or Laravel-style getters (getField() or getFieldAttribute()).
* @param string $key
* @return string
*/
private function findAnyGetMutator($key):string {
return $this->findAnyMutator('get', $key);
}
public function setAttribute($key, $value) {
if ($key == 'key_name' && in_array($key, $this->fields()->getFields())) {
//TODO: another special case, there's a field with the same name as the setter for the Eloquent PK at TemplateAccountSettings
return parent::setAttribute($key, $value);
}
//first we check for the mutated setters
if ($setter = $this->findAnySetMutator($key)) {
return $this->$setter($value);
}
if (in_array($key, $this->fields()->getFields()) || array_key_exists($key, $this->attributes)) {
//this is an existing database field, so let's set it as an attribute
return parent::setAttribute($key, $value);
} elseif (property_exists($this, $key)) {
//support for legacy setter of custom props
return $this->$key = $value;
} else {
//probably a custom prop (sometimes used in legacy code), so let's set it directly on the object as usual
if (DevLevel > 0) {
trigger_error('Custom property set at '.static::class.": $key", E_USER_NOTICE);
}
return $this->$key = $value;
}
}
/**
* Sets the "created_at" field, similarly to {@link HasTimestamps::setCreatedAt()}.
*
* We had to override this method because of the legacy setters, as follows: Eloquent is based on setXyzAttribute()
* setters, but we also allow setXyz() for legacy reasons, and this happens at {@link setAttribute()}. When
* {@link updateTimestamps()} is called, it calls setUpdateAt() (which works fine because our configured field is
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/BaseClass.class.php
*/
protected static $restaurantDates = [];
/**
* @param int|array|ParameterHandler $idOrAttr An ID, so the entry is loaded from the database, or a list of attributes to be pre-filled into a new entry.
*/
public function __construct($idOrAttr = null) {
if (is_numeric($idOrAttr)) {
//legacy behavior
if ($entry = static::find($idOrAttr)) {
//TODO: find a way to have default attributes respected in the same way Eloquent does - probably a mix of array_merge() and array_filter() (so we clear empty values from the found entry), or maybe we'll need a custom merger so the final attribute array doesn't miss any field
$this->setRawAttributes($entry->attributes, true);
$this->exists = true;
}
$this->setAttribute('id', $idOrAttr);
parent::__construct();
} elseif (is_array($idOrAttr) || $idOrAttr instanceof ParameterHandler) {
parent::__construct($idOrAttr); //default Eloquent behavior + our custom fill()
} else {
$this->setAttribute('id', -1); //FIXME: legacy behavior as well... can we ditch this someday please????
parent::__construct();
}
}
/**
* We've overwritten the original query builder to include extra methods :)
* @param \Illuminate\Database\Query\Builder $query
* @return Builder|EloquentModel|eHungry\Illuminate\Database\Eloquent\Builder
*/
public function newEloquentBuilder($query) {
return new eHungry\Illuminate\Database\Eloquent\Builder($query);
}
protected static function boot() {
parent::boot();
//Registering events in a better way - https://laravel.com/docs/5.7/eloquent#events
//Based on the Ardent implementation (https://goo.gl/ieFB59), taken from Yii/Rails models
$eventTypes = ['sav', 'creat', 'updat', 'delet', 'restor', 'retriev'];
$tenses = ['ing', 'ed']; //There's NO retrieving event! a check was not placed here for performance
Arguments
"id"-1
/
home
/deploy
/EHungry-11-boyan
/PHP
/vendor
/illuminate
/database
/Eloquent
/Model.php
*/
public function __call($method, $parameters)
{
if (in_array($method, ['increment', 'decrement'])) {
return $this->$method(...$parameters);
}
return $this->newQuery()->$method(...$parameters);
}
/**
* Handle dynamic static method calls into the method.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic($method, $parameters)
{
return (new static)->$method(...$parameters);
}
/**
* Convert the model to its string representation.
*
* @return string
*/
public function __toString()
{
return $this->toJson();
}
/**
* When a model is being unserialized, check if it needs to be booted.
*
* @return void
*/
public function __wakeup()
{
$this->bootIfNotBooted();
/
home
/deploy
/EHungry-11-boyan
/Web
/classes
/SpringrollSetting.class.php
public $timestamps = true;
public const CREATED_AT = 'created_at';
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
"where"array:2 [ 0 => "key_name" 1 => "hide_low_rating_restaurants" ]
/
home
/deploy
/EHungry-11-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-11-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-11-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:1 [ 0 => Restaurant {} ]
/
home
/deploy
/EHungry-11-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/missouri/st-peters" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Missouri" "city" => "St Peters" "search" => "St Peters, Missouri" "lat" => 38.7874699 "lng" => -90.6298922 ]
/
home
/deploy
/EHungry-11-boyan
/Web
/Services
/Router.php
$_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)) {
$query = [];
if ($query_string = parse_url($_SERVER['REQUEST_URI'], PHP_URL_QUERY)) {
parse_str($query_string, $query);
}
return $route_class::$handler($params, $request, $query);
}
}
}
return self::notFound();
}
public static function notFound(): string {
http_response_code(404);
\EDS\Portal::input('meta-robots', 'noindex,nofollow');
ob_start();
?>
<div class="mt-4 py-5 text-center">
<? if (isSpringroll()) { ?>
<img style="width: 100px" src="<?=getAssetUrl('error-page.png')?>" srcset="<?=getAssetUrl('error-page@3x.png')?> 3x, <?=getAssetUrl('error-page@2x.png')?> 2x" alt=" " aria-hidden="true" />
<hgroup class="my-4">
<h3 class="eds-display-text-title-s mb-2">Oops! This one's missing</h3>
<p class="eds-interface-text-l-regular mb-0">This page is as empty as a dumpling without its filling.</p>
</hgroup>
Arguments
array:5 [ 0 => "GET /restaurants/missouri/st-peters" "state" => "missouri" 1 => "missouri" "city" => "st-peters" 2 => "st-peters" ]
array:9 [ "aid" => "restaurants/missouri/st-peters" "status" => [] "controller" => "marketplace" "form" => "home" "state" => "Missouri" "city" => "St Peters" "search" => "St Peters, Missouri" "lat" => 38.7874699 "lng" => -90.6298922 ]
[]
/
home
/deploy
/EHungry-11-boyan
/Web
/marketplace
/router.php
require_once(CORE_PATH . 'checkout/cart.php');
require_once(CORE_PATH . 'checkout/coupons.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\CouponRoutes::class,
\Checkout\TipRoutes::class,
LandingRoute::class,
CampaignsRoute::class,
Arguments
"GET""/restaurants/missouri/st-peters"array:4 [ "aid" => "restaurants/missouri/st-peters" "status" => [] "controller" => "marketplace" "form" => "home" ]
array:23 [ 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\CouponRoutes" 15 => "Checkout\TipRoutes" 16 => "Marketplace\LandingRoute" 17 => "Marketplace\CampaignsRoute" 18 => "Marketplace\ProductRoute" 19 => "Marketplace\RestaurantListRoute" 20 => "Marketplace\RestaurantPageRoute" 21 => "Marketplace\SupportRoutes" 22 => "Marketplace\GeneratedFilesRoute" ]
/
home
/deploy
/EHungry-11-boyan
/Web
/controllers
/marketplace.php
<? include(CORE_PATH . 'marketplace/router.php');
Arguments
"/home/deploy/EHungry-11-boyan/Web/marketplace/router.php"
/
home
/deploy
/EHungry-11-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-11-boyan/Web/controllers/marketplace.php"
Environment & details:
| Key | Value |
| aid | "restaurants/missouri/st-peters"
|
empty
empty
| Key | Value |
| PHPSESSID | "oahph5l4dksm7h8k37qi3dhhdg"
|
| Key | Value |
| loc | "en_US"
|
| cart | Cart {}
|
| Key | Value |
| UNIQUE_ID | "aep-0ziyLUvvG7o67g_98QAAAA0"
|
| SCRIPT_URL | "/restaurants/missouri/st-peters"
|
| SCRIPT_URI | "http://www.springroll.com.11.boyan.ehungry.net/restaurants/missouri/st-peters"
|
| HTTP_HOST | "www.springroll.com.11.boyan.ehungry.net"
|
| HTTP_X_REAL_IP | "216.73.217.30"
|
| HTTP_X_FORWARDED_FOR | "216.73.217.30"
|
| 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=oahph5l4dksm7h8k37qi3dhhdg"
|
| 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.11.boyan.ehungry.net"
|
| SERVER_ADDR | "127.0.0.1"
|
| SERVER_PORT | "80"
|
| REMOTE_ADDR | "127.0.0.1"
|
| DOCUMENT_ROOT | "/home/deploy/EHungry-11-boyan/Web"
|
| REQUEST_SCHEME | "http"
|
| CONTEXT_PREFIX | "" |
| CONTEXT_DOCUMENT_ROOT | "/home/deploy/EHungry-11-boyan/Web"
|
| SERVER_ADMIN | "root@localhost"
|
| SCRIPT_FILENAME | "/home/deploy/EHungry-11-boyan/Web/index.php"
|
| REMOTE_PORT | "36952"
|
| GATEWAY_INTERFACE | "CGI/1.1"
|
| SERVER_PROTOCOL | "HTTP/1.0"
|
| REQUEST_METHOD | "GET"
|
| QUERY_STRING | "aid=restaurants/missouri/st-peters"
|
| REQUEST_URI | "/restaurants/missouri/st-peters"
|
| SCRIPT_NAME | "/restaurants/missouri/st-peters"
|
| PHP_SELF | "/restaurants/missouri/st-peters"
|
| REQUEST_TIME_FLOAT | 1776975571.968
|
| REQUEST_TIME | 1776975571
|
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