PHP 8.3 Error – Undefined array key “address_1”
-
Hi guys,
We’re getting this error on PHP 8.3: Undefined array key “address_1”
File: services/class-rate-service.php:42
The plugin assumes: $package[‘destination’][‘address_1’]; But during Stripe Express Checkout (Apple/Google Pay),address_1is not always set, which triggers the error when calculating shipping.
It looks like this just needs a defensive check
$address_1 = $package[‘destination’][‘address_1’] ?? ”;
Can you please confirm PHP 8.3 compatibility and provide a fix?
Thanks
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.