This happens on php 7.1. I contacted the firm who supports this module but they wanted me to pay for them to fix their dang bug.
[16-Dec-2020 20:39:04 UTC] PHP Warning: key() expects parameter 1 to be array, null given in /home/xxxxx/public_html/xxxxx.com/includes/modules/shipping/fedexwebservices.php on line 723
Line 723 is
PHP Code:
if(key($discount) <= $order->info['total']) {
$final_discount = $discount;
continue;
}
I commented out the entire section
PHP Code:
//find largest discount that applies
ksort($discounts);
while(count($discounts) > 0) {
$discount = array_pop($discounts);
if(key($discount) <= $order->info['total']) {
$final_discount = $discount;
continue;
}
}
But the error happens anyway.
Anyone else seen this? It's not an issue except that some services are just creating log file after log file. It does not seem to impact the functioning of the module but maybe it is and we don't realize it.
Bookmarks