paypaldp and PHP 8.1

Started by swguy on 12 Dec 2023, 10:54 AM · Views: 2,464

Results 1 to 5 of 5
12 Dec 2023, 10:54 AM
#1
swguy avatar

swguy

Administrator

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

paypaldp and PHP 8.1

Is anyone using PayPal Pro with PHP 8.1+? I'm getting a boatload of warnings about undefined array keys.

[11-Dec-2023 04:46:41 America/Los_Angeles] Request URI: /store/index.php?main_page=checkout_process, IP address: XXXXXXXXXXXXXX Language id 1
#0 /home/xxx/public_html/store/includes/modules/payment/paypaldp.php(1057): zen_debug_error_handler()
#1 /home/xxx/public_html/store/includes/classes/payment.php(297): paypaldp->after_process()
#2 /home/xxx/public_html/store/includes/modules/pages/checkout_process/header_php.php(16): payment->after_process()
#3 /home/xxx/public_html/store/index.php(35): require('/home/xxx/...')
--> PHP Warning: Undefined array key "paypal_ec_payer_info" in /home/xxx/public_html/store/includes/modules/payment/paypaldp.php on line 1057.

lines 1046-1060.

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.

12 Dec 2023, 12:07 PM
#2
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
509
Plugin Contributions:
1

Re: paypaldp and PHP 8.1

I'm using paypalwpp (PayPal Express Checkout) the uk with php 8.2.13 no issues. Not pro. I thought pro was being phased out?

Mark Brittain
http:\innerlightcrystals.co.uk\sales\

22 Dec 2023, 11:33 AM
#3
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: paypaldp and PHP 8.1

We were getting a ton of that and switched to square since it appeared that the paypal modules were no longer being developed. Even on express we still get
PHP Warning: Undefined variable $address_book_id in /includes/modules/payment/paypalwpp.php on line 2196.

2 + 2 = 5 for extremely large values of 2

Pez Collectors Store •••••••• My Plugins List

22 Dec 2023, 11:43 AM
#4
swguy avatar

swguy

Administrator

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

Re: paypaldp and PHP 8.1

The problem with payment modules is that they're a huge pain for developers to test, and there are lots of data-dependent potential problems that won't be seen until things are in heavy use. Most storeowners use Express rather than Pro, so it has had more attention and has less issues.

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.

22 Dec 2023, 1:10 PM
#5
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: paypaldp and PHP 8.1

Oh, i totaly get it! I tried looking at the code to see if i could help out and pretty quickly noped out of that idea. Square is saving us money on processing fees anyway.

2 + 2 = 5 for extremely large values of 2

Pez Collectors Store •••••••• My Plugins List