Error
Call to undefined function isPaymentDomain() Error thrown with message "Call to undefined function isPaymentDomain()" Stacktrace: #1 Error in /home/deploy/EHungry-2-joel/PHP/Global.php:572 #0 require in /home/deploy/EHungry-2-joel/Web/index.php:17
Stack frames (2)
1
Error
/
Global.php
572
0
require
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
index.php
17
/
home
/
deploy
/
EHungry-2-joel
/
PHP
/
Global.php
    'faxstatus' => 'faxstatus',
    'files' => 'files',
    'reportcspviolation' => 'reportcspviolation',
    'status' => 'status',
    'smscallback' => 'smscallback',
    'updatehours' => 'updatehours',
    'itsacheckmatecallback' => 'itsacheckmatecallback',
    'itsacheckmatewebhook' => 'itsacheckmatewebhook',
    'shipdaywebhook' => 'shipdaywebhook',
    'supermenuwebhook' => 'supermenuwebhook',
    'ivr' => 'ivr',
];
 
//stories are only accessible on dev servers
if (DevLevel >= 2) {
    $controllers['stories'] = 'stories';
}
 
$path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if (isPaymentDomain()) {
    $controller = 'payments';
} elseif (isSpringroll()) {
    if (strpos($_REQUEST['aid'], 'restaurant/') === 0) {
        $_REQUEST['aid'] = substr($_REQUEST['aid'], strlen('restaurant/'));
    } elseif (strpos($_REQUEST['aid'], 'account/') === 0) {
        $controller = 'account';
    } elseif (strpos($_REQUEST['aid'], 'phonecallback/') === 0) {
        $controller = 'phonecallback';
    } else {
        $controller = 'marketplace';
    }
} else if (preg_match('/\/account-settings\//', $path)) {
    $controller = 'accountsettings';
} elseif (($path === '/auth' || preg_match('#/auth(/.*)?$#', $path)) && !str_starts_with($path, '/'.ManagerAPI::PREFIX)) {
    $controller = 'auth';
} else if (preg_match('/\/checkout\//', $_SERVER['REQUEST_URI'])) {
    $controller = 'checkout';
}
 
if (!$controller) {
Arguments
  1. "Call to undefined function isPaymentDomain()"
    
/
home
/
deploy
/
EHungry-2-joel
/
Web
/
index.php
<? /** @noinspection PhpIncludeInspection - to avoid marking dynamic includes */
 
//TODO create a «root»/_bootstrap.php which can be used by .psysh.php, tests/bootstrap.php and Web/index.php
require(dirname(__DIR__).'/PHP/base_consts.php');
require(dirname(__DIR__).'/PHP/autoloader.php');
initializeAutoLoader();
 
//disabled for now since we already have our own Alerts infrastructure, and it's not worth it to append another cloud provider to the startup of every freaking request; it's also not possible to catch errors this early if we depend on database checks, but we'll leave it here in case we change our mind?
//ErrorHandlers::sentryInit(); //early catch of errors and failsafe for smaller controllers, not in Sentry
 
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/chinawoklevittown/order/main/beef/132-sha-cha-beef"
empty
empty
empty
Key Value
loc
"en_US"
Key Value
UNIQUE_ID
"aYO5ivGuFByff5IpJ8GftAAAAAg"
SCRIPT_URL
"/restaurant/chinawoklevittown/order/main/beef/132-sha-cha-beef"
SCRIPT_URI
"http://www.springroll.com.2.joel.ehungry.net/restaurant/chinawoklevittown/order/main/beef/132-sha-cha-beef"
HTTP_HOST
"www.springroll.com.2.joel.ehungry.net"
HTTP_X_REAL_IP
"216.73.216.159"
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"
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.159"
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
"55332"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/1.0"
REQUEST_METHOD
"GET"
QUERY_STRING
"aid=restaurant/chinawoklevittown/order/main/beef/132-sha-cha-beef"
REQUEST_URI
"/restaurant/chinawoklevittown/order/main/beef/132-sha-cha-beef"
SCRIPT_NAME
"/restaurant/chinawoklevittown/order/main/beef/132-sha-cha-beef"
PHP_SELF
"/restaurant/chinawoklevittown/order/main/beef/132-sha-cha-beef"
REQUEST_TIME_FLOAT
1770240394.956
REQUEST_TIME
1770240394
empty
0. Whoops\Handler\PrettyPageHandler