Page 1 of 1

Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2

Posted: Mon Apr 19, 2021 7:06 pm
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

Re: Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2

Posted: Mon Apr 19, 2021 8:57 pm
by ecartz
The easiest would be to change line 393 to

Code: Select all

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