Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2

Open to all! Ask other shopowners for help.
Post Reply
User avatar
edfaught
Member
Posts: 49
Joined: Mon Oct 26, 2020 3:22 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 2 times

Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2

Post by edfaught »

I vaguely recall running in to this before but haven't been able to find it in the old forum. Running 1.0.8.1

Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2 in /ext/modules/payment/paypal/express.php on line 393

Fatal error: Uncaught TypeError: Argument 1 passed to Text::input() must be of the type string, null given,
called in /includes/functions/database.php on line 75
and defined in /includes/system/versioned/1.0.7.other/1.0.7.12/text.php:15
Stack trace:
#0 /includes/functions/database.php(75): Text::input(NULL)
#1 /ext/modules/payment/paypal/express.php(393): tep_db_prepare_input(NULL)
#2 {main} thrown in /includes/system/versioned/1.0.7.other/1.0.7.12/text.php on line 15

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2

Post by ecartz »

The easiest would be to change line 393 to

Code: Select all

          $ship_suburb = tep_db_prepare_input($appPayPalEcResult['PAYMENTREQUEST_0_SHIPTOSTREET2'] ?? '');


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply