module-shipper icon indicating copy to clipboard operation
module-shipper copied to clipboard

Exception in checkout when fallback carrier is applied.

Open iwanzijderveld opened this issue 3 months ago • 2 comments

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.

iwanzijderveld avatar Aug 21 '26 12:08 iwanzijderveld

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

shqsupport avatar Aug 26 '26 15:08 shqsupport

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

shqsupport avatar Oct 02 '26 13:10 shqsupport