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

Critical error - array_key_exists() expects parameter 2 to be array, null given

Open micso opened this issue 5 years ago • 5 comments

Magento v2.3.2 Module v2.39.5

[2020-12-10 11:49:53] main.CRITICAL: ShipperHQ save order package error: Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/vendor/shipperhq/module-shipper/src/Helper/Package.php on line 249

This error each time appears in system.log after the order creation in the admin panel.

micso avatar Dec 10 '20 12:12 micso

Hello @micso can you please tell us what version of PHP is your server running on?

ibraheemnabeelfauzi avatar Dec 10 '20 17:12 ibraheemnabeelfauzi

Hi, I'm using PHP 7.2.34

micso avatar Dec 11 '20 19:12 micso

Any idea when the module will be fixed? My client is still waiting for a response.

micso avatar Dec 17 '20 12:12 micso

Hi misco, I wasn't able to replicate your error simply by following the steps you described. After setting up a fresh Magento v2.3.2 (php 7.2.34) and installing Module v2.39.5, I placed an order from the admin order section and was able to see no errors reported in var/log/system.log.

I tried a few different ways of placing orders, with and without the dimensional feature enabled, using a new order and reordering previously placed orders. I've scheduled to have this reviewed by the dev team. I'll be sure they know the urgency here, thanks for emphasizing.

wsadasmit avatar Dec 17 '20 23:12 wsadasmit

Hi @misco, we've released a fix for this issue with version 2.39.6 this morning. Please update to this version via Composer.

wsadasmit avatar Dec 18 '20 16:12 wsadasmit