Exception in checkout when fallback carrier is applied.
When I complete an order and go to the success page, I get the following error:
(Exception(code: 0): Deprecated Functionality: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /var/www/html/vendor/shipperhq/module-shipper/src/Helper/Data.php on line 344
It appears that when a fallback is used the $shippingRate->getCarrierType(); in \ShipperHQ\Shipper\Observer\AbstractRecordOrder::getDefaultCarrierShipMethod returns null. And passing null to array_key_exists has been deprecated.
Hello @iwanzijderveld,
Thank you for flagging this, and for including the error logs and file paths, they were helpful in pinpointing the issue.
Our engineering team has this queued for a fix in an upcoming release, and we'll let you know as soon as the update is available.
Thanks, ShipperHQ Support Team
Hello @iwanzijderveld,
We have released a new version that addresses the behavior you reported: https://github.com/shipperhq/module-shipper/releases/tag/20.61.9.
Please download this update and run some tests! Let us know the results.
Thanks, ShipperHQ Support Team