"Class 'Campaign' not found"
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
templates4.0
/
customer
/
header.php
            if (count($unavail) > 0) {
                echo '<style type="text/css">'.join(', ', $unavail).' {display:none !important;}</style>';
                echo '<script type="text/javascript">window.UNAVAILABLE_MENU_IDS = '.JE($unavailable_menu_ids).'</script>';
            }
        } ?>
 
        <script type="text/javascript">
            var UrlTag = <?=JE((isSpringroll()?'restaurant/':'').(isset($account) ? $account->url_tag : ''))?>;
            var template = '<?=$templateName?>';
            var formname = '<?=urlencode($_REQUEST['form'])?>';
            var menulink = '<?=!isMarketplace()?formatCustomerOrderLink([$restaurant, $menu]):''?>';
            var checkoutlink = '<?=formatCustomerLink('checkout')?>';
        </script>
        <script>
            /* http://writing.colin-gourlay.com/safely-using-ready-before-including-jquery/ */
            (function(w,d,u){w.readyQ=[];w.bindReadyQ=[];function p(x,y){if(x=="ready"){w.bindReadyQ.push(y);}else{w.readyQ.push(x);}};var a={ready:p,bind:p};w.$=w.jQuery=function(f){if(f===d||f===u){return a}else{p(f)}}})(window,document)
        </script>
 
        <? include_once(CORE_PATH . 'templates3.0/customer/schema.php');
        include_once(CORE_PATH . 'templates4.0/customer/google_analytics.php');
 
        if (isset($account) && $account->getFacebookPixelId()) { ?>
            <!-- Facebook Pixel Code -->
            <script>
            !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
            n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
            n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
            t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
            document,'script','https://connect.facebook.net/en_US/fbevents.js');
            fbq('init', '<?=$account->getFacebookPixelId()?>');
            fbq('track', 'PageView');
            </script>
            <noscript><img height="1" width="1" style="display:none"
            src="https://www.facebook.com/tr?id=<?=$account->getFacebookPixelId()?>&ev=PageView&noscript=1"
            /></noscript>
            <!-- DO NOT MODIFY -->
            <!-- End Facebook Pixel Code -->
 
        <? }
 
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
controllers
/
customer.php
}
 
if (!isset($cart) || !is_object($cart)) {
    $GLOBALS['cart'] = \Cart::getCurrent();
}
 
//unset callback data in the event someone didn't hit the callback validation page
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();
 
Arguments
  1. "/home/deploy/EHungry-2-joel/Web/templates4.0/customer/header.php"
    
/
home
/
deploy
/
EHungry-2-joel
/
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
  1. "/home/deploy/EHungry-2-joel/Web/controllers/customer.php"
    

Environment & details:

Key Value
aid
"restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
empty
empty
Key Value
PHPSESSID
"slr36i774elultk4o7qfvq1uu3"
Key Value
loc
"en_US"
customer_account_id
10134
cart
Cart {}
restaurant_id
13731
menu_id
16699
Key Value
UNIQUE_ID
"aWV7yUe9RgbMSUjyQty5NQAAAAo"
SCRIPT_URL
"/restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
SCRIPT_URI
"http://www.springroll.com.2.joel.ehungry.net/restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
HTTP_HOST
"www.springroll.com.2.joel.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.9"
HTTP_X_CONFKEY
"Main_Domain:14844"
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=slr36i774elultk4o7qfvq1uu3"
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.2.joel.ehungry.net"
SERVER_ADDR
"127.0.0.1"
SERVER_PORT
"80"
REMOTE_ADDR
"216.73.216.9"
DOCUMENT_ROOT
"/home/deploy/EHungry-2-joel/Web"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-2-joel/Web"
SERVER_ADMIN
"root@localhost"
SCRIPT_FILENAME
"/home/deploy/EHungry-2-joel/Web/index.php"
REMOTE_PORT
"42120"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
REQUEST_URI
"/restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
SCRIPT_NAME
"/restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
PHP_SELF
"/restaurant/sunrisekitchenny/order/main/egg-foo-young/109-vegetable-egg-foo-young"
REQUEST_TIME_FLOAT
1768258505.941
REQUEST_TIME
1768258505
empty
0. Whoops\Handler\PrettyPageHandler