Forums / Managing Customers and Orders / A Couple of PHP Warnings On Checkout

A Couple of PHP Warnings On Checkout

Views: 1,161

Results 1 to 6 of 6
21 Mar 2025, 1:04 PM
#1
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

A Couple of PHP Warnings On Checkout

I just wanted to post these couple of PHP warnings that I get in my Error Logs in hopes to help with future updates of these files. I know that they do not impact the operation of my site and customers have no issues as these are just warnings....

PHP Warning: Undefined global variable $ in /includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php on line 35.

and also....

PHP Warning: Attempt to read property "title" on null in /includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php on line 35.

Hope this helps.

21 Mar 2025, 1:54 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: A Couple of PHP Warnings On Checkout

NWCE:

I just wanted to post these couple of PHP warnings that I get in my Error Logs in hopes to help with future updates of these files. I know that they do not impact the operation of my site and customers have no issues as these are just warnings....

PHP Warning: Undefined global variable $ in /includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php on line 35.

and also....

PHP Warning: Attempt to read property "title" on null in /includes/templates/custom/templates/tpl_ajax_checkout_confirmation_default.php on line 35.

Hope this helps.
What payment modules are currently enabled? That log indicates that the currently-selected payment module wasn't active during the AJAX checkout confirmation.

21 Mar 2025, 2:05 PM
#3
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: A Couple of PHP Warnings On Checkout

Thanks for your reply lat9!

I have both Paypal Express and Paypal Pro active in my cart....and these are the only forms of payment I show as acceptable on my site.

21 Mar 2025, 2:26 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: A Couple of PHP Warnings On Checkout

NWCE:

Thanks for your reply lat9!

I have both Paypal Express and Paypal Pro active in my cart....and these are the only forms of payment I show as acceptable on my site.
Thanks for that! Are you using the built-in 3-page checkout or OPC?

21 Mar 2025, 3:21 PM
#5
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: A Couple of PHP Warnings On Checkout

I am using the standard 3 page checkout....no additional plugins on the checkout process.

Thanks again for your help with this!

21 Mar 2025, 5:23 PM
#6
nwce avatar

nwce

Zen Follower

Join Date:
Oct 2009
Posts:
444
Plugin Contributions:
0

Re: A Couple of PHP Warnings On Checkout

One quick addition.....I am wondering if this PHP warning set it triggered when people are using a coupon to get their item for free.

Not 100% sure if it corresponds to those orders....but just a thought that it may only be for these orders.