Skip to content

Exception in checkout when fallback carrier is applied. #141

Description

@iwanzijderveld

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions