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
Notice: Undefined index: PAYMENTREQUEST_0_SHIPTOSTREET2
-
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
The easiest would be to change line 393 to
Code: Select all
$ship_suburb = tep_db_prepare_input($appPayPalEcResult['PAYMENTREQUEST_0_SHIPTOSTREET2'] ?? '');