Order online for takeout: 24. Plain Fried Rice from Yummy Cafe - Savannah. Serving the best Chinese in Savannah, GA.
Whoops! There was an error.
PDOException
(42S22)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_springroll' in 'where clause'
PDOException thrown with message "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_springroll' in 'where clause'"
Stacktrace:
#6 PDOException in /home/deploy/EHungry-7-boyan/PHP/vendor/maximebf/debugbar/src/DebugBar/DataCollector/PDO/TraceablePDO.php:135
#5 PDO:prepare in /home/deploy/EHungry-7-boyan/PHP/vendor/maximebf/debugbar/src/DebugBar/DataCollector/PDO/TraceablePDO.php:135
#4 DebugBar\DataCollector\PDO\TraceablePDO:prepare in /home/deploy/EHungry-7-boyan/Web/classes/DB.php:194
#3 DB:query in /home/deploy/EHungry-7-boyan/Web/classes/Coupon.class.php:634
#2 Coupon:getAllCouponsInBoxForAccount in /home/deploy/EHungry-7-boyan/Web/templates3.0/customer/footer.php:24
#1 include_once in /home/deploy/EHungry-7-boyan/Web/controllers/customer.php:889
#0 require in /home/deploy/EHungry-7-boyan/Web/index.php:49
COPY
Stack frames (7)
6
…
/
vendor
/
maximebf
/
debugbar
/
src
/
DebugBar
/
DataCollector
/
PDO
/
TraceablePDO.php
135
5
…
/
vendor
/
maximebf
/
debugbar
/
src
/
DebugBar
/
DataCollector
/
PDO
/
TraceablePDO.php
135
4
DebugBar
\DataCollector
\PDO
\TraceablePDO
prepare
/
home
/
deploy
/
EHungry-7-boyan
/
Web
/
classes
/
DB.php
194
3
/
home
/
deploy
/
EHungry-7-boyan
/
Web
/
classes
/
Coupon.class.php
634
2
Coupon
getAllCouponsInBoxForAccount
/
home
/
deploy
/
EHungry-7-boyan
/
Web
/
templates3.0
/
customer
/
footer.php
24
1
/
home
/
deploy
/
EHungry-7-boyan
/
Web
/
controllers
/
customer.php
889
0
/
home
/
deploy
/
EHungry-7-boyan
/
Web
/
index.php
49
/home
/deploy
/EHungry-7-boyan
/PHP
/vendor
/maximebf
/debugbar
/src
/DebugBar
/DataCollector
/PDO
/TraceablePDO.php
*/
public function lastInsertId($name = null)
{
return $this->pdo->lastInsertId($name);
}
/**
* Prepares a statement for execution and returns a statement object
*
* @link http://php.net/manual/en/pdo.prepare.php
* @param string $statement This must be a valid SQL statement template for the target DB server.
* @param array $driver_options [optional] This array holds one or more key=>value pairs to
* set attribute values for the PDOStatement object that this method returns.
* @return TraceablePDOStatement|bool If the database server successfully prepares the statement,
* PDO::prepare returns a PDOStatement object. If the database server cannot successfully prepare
* the statement, PDO::prepare returns FALSE or emits PDOException (depending on error handling).
*/
public function prepare($statement, $driver_options = array())
{
return $this->pdo->prepare($statement, $driver_options);
}
/**
* Executes an SQL statement, returning a result set as a PDOStatement object
*
* @link http://php.net/manual/en/pdo.query.php
* @param string $statement
* @return TraceablePDOStatement|bool PDO::query returns a PDOStatement object, or FALSE on
* failure.
*/
public function query($statement)
{
return $this->profileCall('query', $statement, func_get_args());
}
/**
* Quotes a string for use in a query.
*
* @link http://php.net/manual/en/pdo.quote.php
* @param string $string The string to be quoted.
Arguments
"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_springroll' in 'where clause' "
/home
/deploy
/EHungry-7-boyan
/PHP
/vendor
/maximebf
/debugbar
/src
/DebugBar
/DataCollector
/PDO
/TraceablePDO.php
*/
public function lastInsertId($name = null)
{
return $this->pdo->lastInsertId($name);
}
/**
* Prepares a statement for execution and returns a statement object
*
* @link http://php.net/manual/en/pdo.prepare.php
* @param string $statement This must be a valid SQL statement template for the target DB server.
* @param array $driver_options [optional] This array holds one or more key=>value pairs to
* set attribute values for the PDOStatement object that this method returns.
* @return TraceablePDOStatement|bool If the database server successfully prepares the statement,
* PDO::prepare returns a PDOStatement object. If the database server cannot successfully prepare
* the statement, PDO::prepare returns FALSE or emits PDOException (depending on error handling).
*/
public function prepare($statement, $driver_options = array())
{
return $this->pdo->prepare($statement, $driver_options);
}
/**
* Executes an SQL statement, returning a result set as a PDOStatement object
*
* @link http://php.net/manual/en/pdo.query.php
* @param string $statement
* @return TraceablePDOStatement|bool PDO::query returns a PDOStatement object, or FALSE on
* failure.
*/
public function query($statement)
{
return $this->profileCall('query', $statement, func_get_args());
}
/**
* Quotes a string for use in a query.
*
* @link http://php.net/manual/en/pdo.quote.php
* @param string $string The string to be quoted.
Arguments
"""
SELECT id FROM coupon WHERE account_id = 72378 AND is_springroll = 0 AND show_in_coupon_box = 1 AND enabled = 1 \n
\t\t AND (maximum_discount = 0 OR maximum_discount IS NULL OR (maximum_discount > discounted_amount_total AND maximum_discount - discounted_amount_total > dollar_discount)) AND expires_at > now() AND starts_at <= now() AND is_single_use < 1 ORDER BY priority ASC, display_name LIMIT 6
"""
array:1 [
1000 => true
]
/home
/deploy
/EHungry-7-boyan
/Web
/classes
/DB.php
}
/**
* Logs all query statistics to Splunk. Depends whether this was enabled through {@link queryLogEnabled()}.
* @see Splunk::logQueries()
*/
public static function logStatsToSplunk() {
Splunk::logQueries(static::$pdo->getExecutedStatements());
}
/**
* Backwards compatibility method that goes directly into PDO to run hardcoded queries.
* @param string $query
* @return bool|int|PDOStatement Returns a PDOStatement in case of SELECT-ish queries, number of affected rows for
* other queries, or false in case of database errors
* @deprecated Use {@link statement()}, {@link select()} and the likes for simple calls, Eloquent for Model-based
* queries, or the query-builder.
*/
public static function query($query) {
$stmt = static::$pdo->prepare($query, [PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true]);
try {
if ($stmt) {
$stmt->setFetchMode(PDO::FETCH_ASSOC);
$stmt->execute();
}
} catch (PDOException $e) {
static::dberror('['.$e->getCode().'] '.$e->getMessage(), $query);
}
if (!$stmt || static::$pdo->errorCode() != PDO::ERR_NONE) {
$errorInfo = static::$pdo->errorInfo();
static::dberror("[$errorInfo[1]] $errorInfo[2]", $query);
return false;
}
$command = strtoupper(strtok(trim($query), " \t\n\r"));
return in_array($command, ['SELECT', 'DESCRIBE', 'SHOW', 'EXPLAIN'])? $stmt : $stmt->rowCount();
}
/**
Arguments
"""
SELECT id FROM coupon WHERE account_id = 72378 AND is_springroll = 0 AND show_in_coupon_box = 1 AND enabled = 1 \n
\t\t AND (maximum_discount = 0 OR maximum_discount IS NULL OR (maximum_discount > discounted_amount_total AND maximum_discount - discounted_amount_total > dollar_discount)) AND expires_at > now() AND starts_at <= now() AND is_single_use < 1 ORDER BY priority ASC, display_name LIMIT 6
"""
array:1 [
1000 => true
]
/home
/deploy
/EHungry-7-boyan
/Web
/classes
/Coupon.class.php
if (!$include_single_use) {
$sql .= ' AND is_single_use < 1';
}
$sql .= ' ORDER BY priority ASC, display_name';
if ($limit > 0) {
$sql .= ' LIMIT ?';
$db_conn->bindParameter($sql, 1, $limit, "integer");
}
if ($offset > 0) {
// Offset always needs a limit, so we check if a limit was set
if ($limit > 0) {
// A limit was set above, so we just add the offset
$sql .= ' OFFSET ?';
} else {
// A limit was not provided, so we add a limit of 1,000 coupons to make sure get all of them
$sql .= ' LIMIT 1000 OFFSET ?';
}
$db_conn->bindParameter($sql, 1, $offset, "integer");
}
$result = $db_conn->query($sql);
if ($result && $result->rowCount() > 0) {
while ($row = $result->fetch()) {
$rbs[] = new Coupon($row["id"]);
}
return $rbs;
}
return null;
}
public function getQualifiedCustomers() {
$db_conn = DB::conn();
if ($this->getNeverOrdered()) {
$sql = "select c.id from customer c, customer_account a WHERE a.account_id=? AND c.id=a.`customer_id` AND c.id not in (SELECT distinct customer_id FROM customer_order WHERE account_id=? AND is_deleted = 0) GROUP BY c.id";
$db_conn->bindParameter($sql, 1, $this->getAccountId(), "integer");
$db_conn->bindParameter($sql, 1, $this->getAccountId(), "integer");
} else {
$having = array();
if ($this->getSpentAtLeast() > 0) {
$s = "sum(total_price) > ?";
Arguments
"""
SELECT id FROM coupon WHERE account_id = 72378 AND is_springroll = 0 AND show_in_coupon_box = 1 AND enabled = 1 \n
\t\t AND (maximum_discount = 0 OR maximum_discount IS NULL OR (maximum_discount > discounted_amount_total AND maximum_discount - discounted_amount_total > dollar_discount)) AND expires_at > now() AND starts_at <= now() AND is_single_use < 1 ORDER BY priority ASC, display_name LIMIT 6
"""
/home
/deploy
/EHungry-7-boyan
/Web
/templates3.0
/customer
/footer.php
</div>
<? if (!isset($hideRightColumn) || $hideRightColumn == false) { ?>
<aside class="rightaside">
<? if (!$_REQUEST['mobiledetect']->isMobile() || $_REQUEST['mobiledetect']->isTablet()) {
include(CORE_PATH."templates3.0/customer/widgets/openwidget.php");
include(CORE_PATH."templates3.0/customer/widgets/announcementwidget.php");
}
//if coupon box not hidden
if (is_object($_REQUEST['_TEMPLATE_SETTINGS']['hide_coupons_box']) && !$_REQUEST['_TEMPLATE_SETTINGS']['hide_coupons_box']->getValue()
&& (
(isset($showCart) && $showCart) //show on pages where cart is shown
|| (is_object($_REQUEST['_TEMPLATE_SETTINGS']['show_coupons_display_box_homepage']) && $_REQUEST['_TEMPLATE_SETTINGS']['show_coupons_display_box_homepage']->getValue() && $_REQUEST['form'] == 'home') //show on homepage when enabled
)
) {
$totalCouponsToDisplay = 5;
// We grab 6 coupons with no offset. Even though we are displaying only 5, we grab 6
// to determine whether we should show a "Load More" button
$coupons_in_box = Coupon::getAllCouponsInBoxForAccount($account->getId(), true, false, $totalCouponsToDisplay + 1, 0);
if ($coupons_in_box) {
$couponsDisplayed = 0; // keeps track of how many coupons have been displayed ?>
<div class="widget couponbox">
<header><span class="h3 sep">Coupons</span></header>
<div class="inner clearfix">
<ul id="coupon-list">
<? foreach ($coupons_in_box as $coupon) {
// If we have shown all the coupons we were going to show, we are done
if ($couponsDisplayed == $totalCouponsToDisplay) {
break;
} ?>
<li>
<a href="<?=formatCustomerLink('mycoupons', ['redeem' => $coupon->getId()])?>">
<span class="desc"><?=$coupon->getBriefCouponDescription()?></span>
<span class="btn-cont"><span class="btn btn-mini btn-danger">Use</span></span>
</a>
</li>
Arguments
/home
/deploy
/EHungry-7-boyan
/Web
/controllers
/customer.php
$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']) && $_REQUEST['_VERSION'] != 4) {
$cart = Cart::getCurrent();
//FIXME: it's technically possible to end up with $template = null
if (!$_REQUEST['contentonly']) {
$template = !isset($_REQUEST["altdoc"])? "app/$part" : "app/alt$part";
}
} else {
$template = !isset($_REQUEST["altdoc"])? "customer/$part" : "customer/alt$part";
}
if ($_REQUEST['_VERSION'] == 4) {
return CORE_PATH."templates4.0/$template.php";
} else {
return CORE_PATH."templates3.0/$template.php";
}
Arguments
"/home/deploy/EHungry-7-boyan/Web/templates3.0/customer/footer.php "
/home
/deploy
/EHungry-7-boyan
/Web
/index.php
echo 'OK';
exit;
}
// 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-7-boyan/Web/controllers/customer.php "
Environment & details:
GET Data
Key
Value
aid
"restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
POST Data
empty
Files
empty
Cookies
empty
Session
Key
Value
loc
"en_US "
customer_account_id
72378
cart
Cart {}
restaurant_id
9186
menu_id
11651
app_banner_shown
true
Server/Request Data
Key
Value
UNIQUE_ID
"arele1PCObQRaodGSjLdfgAAAAc "
SCRIPT_URL
"/restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
SCRIPT_URI
"http://www.springroll.com.7.boyan.ehungry.net/restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
HTTP_HOST
"www.springroll.com.7.boyan.ehungry.net "
HTTP_X_REAL_IP
"216.73.216.42 "
HTTP_X_FORWARDED_FOR
"216.73.216.42 "
HTTP_SCHEME
"https "
HTTP_EHENV
"TODO "
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.68 () mod_wsgi/4.6.5 Python/3.7 PHP/7.2.34 "
SERVER_NAME
"www.springroll.com.7.boyan.ehungry.net "
SERVER_ADDR
"127.0.0.1 "
SERVER_PORT
"80 "
REMOTE_ADDR
"127.0.0.1 "
DOCUMENT_ROOT
"/home/deploy/EHungry-7-boyan/Web "
REQUEST_SCHEME
"http "
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/deploy/EHungry-7-boyan/Web "
SERVER_ADMIN
"root@localhost "
SCRIPT_FILENAME
"/home/deploy/EHungry-7-boyan/Web/index.php "
REMOTE_PORT
"45320 "
GATEWAY_INTERFACE
"CGI/1.1 "
SERVER_PROTOCOL
"HTTP/1.1 "
REQUEST_METHOD
"GET "
QUERY_STRING
"aid=restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
REQUEST_URI
"/restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
SCRIPT_NAME
"/restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
PHP_SELF
"/restaurant/yummycafesavannah/order/main/fried-rice/24-plain-fried-rice "
REQUEST_TIME_FLOAT
1790420347.036
REQUEST_TIME
1790420347
Environment Variables
empty
Registered Handlers
0. Whoops\Handler\PrettyPageHandler