Forums / PayPal Website Payments Pro support / PHP Deprecated Warning

PHP Deprecated Warning

Views: 8,234

Results 1 to 6 of 6
10 Oct 2025, 10:25 PM
#1
nwce avatar

nwce

Zen Follower

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

PHP Deprecated Warning

I am running Zen Cart v.2.1.0 and haven't made any changes to it, my Paypal or my PHP version, but just today I started receiving the PHP deprecated warning of:

[10-Oct-2025 13:55:49 America/Dallas] Request URI: /shop/index.php?main_page=checkout_process, IP address: 74.110.202.141, Language id 1
#0 /home/mystore/public_html/shop/includes/modules/payment/paypalwpp.php(514): zen_debug_error_handler()
#1 /home/mystore/public_html/shop/includes/classes/payment.php(350): paypalwpp->before_process()
#2 /home/mystore/public_html/shop/includes/modules/checkout_process.php(98): payment->before_process()
#3 /home/mystore/public_html/shop/includes/modules/pages/checkout_process/header_php.php(13): require('...')
#4 /home/mystore/public_html/shop/index.php(35): require('...')
--> PHP Warning: Undefined array key "PAYMENTINFO_0_TAXAMT" in /home/mystore/public_html/shop/includes/modules/payment/paypalwpp.php on line 514.

I have read in other posts about it being hard to update the payment modules due to the large variables of testing it.....so just thought I'd post it to possibly help with a future upgrade.

Hope this helps,

Jeff

11 Oct 2025, 2:58 PM
#2
lat9 avatar

lat9

Administrator

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

Re: PHP Deprecated Warning

Hmm, is that repeatable? If so, please enable the module's debug-to-file. Once you've captured the debug-output, send me a PM and I'll send you my direct email address so you can send that debug-output for review.

11 Oct 2025, 3:08 PM
#3
nwce avatar

nwce

Zen Follower

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

Re: PHP Deprecated Warning

Sure thing.....I will turn on the Debug now and send you a PM later today with its output.

Thanks,

Jeff

20 Oct 2025, 8:07 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: PHP Deprecated Warning

While the line numbers are a little different, I think this fix is what should address that.
https://github.com/zencart/zencart/pull/7383/files

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Oct 2025, 8:29 PM
#5
nwce avatar

nwce

Zen Follower

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

Re: PHP Deprecated Warning

Thanks Dr.Byte....yes, this has fixed this PHP...as I have applied it and have had many orders come through without error.

Thanks for posting this!

21 Oct 2025, 12:11 AM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: PHP Deprecated Warning

Yep, this is the fix. I have applied it to several carts already.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.