Zen Cart Logo
Forums / Bug Reports / Undefined Constant - gift certificate checkout

Undefined Constant - gift certificate checkout

Views: 369

Results 1 to 3 of 3
24 Oct 2019, 2:45 PM
#1
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Undefined Constant - gift certificate checkout

V156c
php 7.2x
mysql 5.7

Received this warning when a customer tried to use a gift certificate. Customer could not tell me how it happened, and I have been unable to reproduce this with a specific checkout sequence.

[21-Oct-2019 19:29:13 America/New_York] Request URI: /index.php?main_page=checkout_confirmation, IP address: xxxxx
#1  ot_gv->collect_posts() called at [/usr/www/users/xxx/includes/classes/order_total.php:162]
#2  order_total->collect_posts() called at [/usr/www/users/xxx/includes/modules/pages/checkout_confirmation/header_php.php:71]
#3  require(/usr/www/users/xxx/includes/modules/pages/checkout_confirmation/header_php.php) called at [/usr/www/users/xxx/index.php:36]
--> PHP Warning: Use of undefined constant error - assumed 'error' (this will throw an Error in a future version of PHP) in /usr/www/users/xxx/includes/modules/order_total/ot_gv.php on line 236.
24 Oct 2019, 3:07 PM
#3
edadk avatar

edadk

Zen Follower

Join Date:
Nov 2008
Posts:
191
Plugin Contributions:
0

Re: Undefined Constant - gift certificate checkout

Thank you for the quick reply. I will make the string wrapping changes.

I also see that there's change to a line in the function apply_credit() , should I also make that change also or is that something for v157 only?

 -  global $db, $order, $messageStack;
 +  global $db, $order;