I corrected the URL in fedex.php and lines in fedex.twig. uninstalled, cleared cash, restarted, etc as per instructions.
however i still having trouble. Services checkbox selections still don't stay selected in fedex setup module.
from website checkout page i get " Warning: No Shipping options are available."
from admin side OC logs getting this message:
2018-02-15 19:14:33 - PHP Warning: in_array() expects parameter 2 to be array, null given in /.../.../public_html/catalog/model/extension/shipping/fedex.php on line 180
line 180 consists of:
if (in_array(strtoupper($code), $this->config->get('shipping_fedex_service'))) {
$title = $this->language->get('text_' . $code);
$delivery_time_stamp = $rate_reply_detail->getElementsByTagName('DeliveryTimestamp');
if ($this->config->get('shipping_fedex_display_time') && $delivery_time_stamp->length) {
$title .= ' (' . $this->language->get('text_eta') . ' ' . date($this->language->get('date_format_short') . ' ' . $this->language->get('time_format'), strtotime($delivery_time_stamp->item(0)->nodeValue)) . ')';
}
$rated_shipment_details = $rate_reply_detail->getElementsByTagName('RatedShipmentDetails');
foreach ($rated_shipment_details as $rated_shipment_detail) {
$shipment_rate_detail = $rated_shipment_detail->getElementsByTagName('ShipmentRateDetail')->item(0);
$shipment_rate_detail_type = explode('_', $shipment_rate_detail->getElementsByTagName('RateType')->item(0)->nodeValue);
if (count($shipment_rate_detail_type) == 3 && $shipment_rate_detail_type[1] == $this->config->get('shipping_fedex_rate_type')) {
$total_net_charge = $shipment_rate_detail->getElementsByTagName('TotalNetCharge')->item(0);
break;
}
}
$cost = $total_net_charge->getElementsByTagName('Amount')->item(0)->nodeValue;
$currency = $total_net_charge->getElementsByTagName('Currency')->item(0)->nodeValue;
$quote_data[$code] = array(
'code' => 'fedex.' . $code,
'title' => $title,
'cost' => $this->currency->convert($cost, $currency, $this->config->get('config_currency')),
'tax_class_id' => $this->config->get('shipping_fedex_tax_class_id'),
'text' => $this->currency->format($this->tax->calculate($this->currency->convert($cost, $currency, $this->session->data['currency']), $this->config->get('shipping_fedex_tax_class_id'), $this->config->get('config_tax')), $this->session->data['currency'], 1.0000000)
);
}
I see the problem is in parameter 2 but which one of these is parameter 2?
my fedex.php

my fedex.twig
