Error
Class 'Menu' not found Error thrown with message "Class 'Menu' not found" Stacktrace: #1 Error in /home/deploy/EHungry-8-simon/Web/controllers/customer.php:396 #0 require in /home/deploy/EHungry-8-simon/Web/index.php:30
Stack frames (2)
1
Error
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
controllers
/
customer.php
396
0
require
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
index.php
30
/
home
/
deploy
/
EHungry-8-simon
/
Web
/
controllers
/
customer.php
                    $_REQUEST['ordering_level'] = ($k + 1);
                    switch ($_REQUEST['ordering_level']) {
                        case 1:
                            $restaurant = Restaurant::getByAccountAndUrlTag($account->getId(), $v);
                            if (is_object($restaurant)) {
                                if (isset($_SESSION['restaurant_id']) && $restaurant->getId() != $_SESSION['restaurant_id']) {
                                    $or = new Restaurant($_SESSION['restaurant_id']);
                                    if ($or->getAccountId() != $restaurant->getAccountId()) {
                                        unset($_SESSION['customer_id']);
                                    }
                                    $cart = Cart::getCurrent();
                                    $cart->clear();
                                }
                                $_SESSION['restaurant_id'] = $restaurant->getId();
                                $menus = $restaurant->getMenus();
                            }
                            break;
                        case 2:
                            if (isset($restaurant) && is_object($restaurant)) {
                                $menu = Menu::getByAccountAndUrlTag($account->getId(), $v);
                                if (is_object($menu)) {
                                    if ($menu->is_hidden) {
                                        $menus[] = $menu;
                                        usort($menus, [Restaurant::class, "sortMenus"]);
                                        $_REQUEST['hidden_menu'] = $menu;
                                    }
                                    $_SESSION['menu_id'] = $menu->getId();
                                }
                            }
                            break;
                        case 3:
                            if (isset($menu) && is_object($menu)) {
                                if ($v == 'view-all' || $v == 'menu' || strpos($v, 'menu?') === 0) {
                                    $category = new Category(-1);
                                    $category->setUrlTag($v);
                                    $category->setDisplayName('All Menu Items');
                                    $category->setMenuId($menu->id);
                                    $_REQUEST['category_id'] = -1;
                                } elseif ($v == 'popular-items') {
                                    $category = new Category(-1);
Arguments
  1. "Class 'Menu' not found"
    
/
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");
 

Environment & details:

Key Value
aid
"restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
empty
empty
Key Value
PHPSESSID
"tdmeikoi3tdmfu7b3taa5i1g40"
Key Value
loc
"en_US"
customer_account_id
41768
restaurant_id
9356
cart
Cart {}
app_banner_shown
true
Key Value
UNIQUE_ID
"aBJFKXs3_UiOszRb4xCnJgAAABA"
SCRIPT_URL
"/restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
SCRIPT_URI
"http://www.springroll.com.8.simon.ehungry.net/restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
HTTP_HOST
"www.springroll.com.8.simon.ehungry.net"
HTTP_X_REAL_IP
"18.222.177.138"
HTTP_X_FORWARDED_FOR
"18.222.177.138"
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=tdmeikoi3tdmfu7b3taa5i1g40"
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
"41206"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
REQUEST_URI
"/restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
SCRIPT_NAME
"/restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
PHP_SELF
"/restaurant/chengsgardenmn/order/main/lunch-special/14-roast-pork-lo-mein"
REQUEST_TIME_FLOAT
1746027817.292
REQUEST_TIME
1746027817
empty
0. Whoops\Handler\PrettyPageHandler