Post by JGAN » Mon Aug 22, 2016 7:30 am

I'm using 2.1.0.2 and trying to get the Fedex shipping extension to work, but all it does is show "ERROR" in red text at checkout. Here is the line from the system log:

Code: Select all

2016-08-21 23:27:18 - FEDEX :: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><v10:RateReply xmlns:v10="http://fedex.com/ws/rate/v10"> <v10:HighestSeverity xmlns:v10="http://fedex.com/ws/rate/v10">ERROR</v10:HighestSeverity>  <v10:Notifications xmlns:v10="http://fedex.com/ws/rate/v10">     <v10:Severity xmlns:v10="http://fedex.com/ws/rate/v10">ERROR</v10:Severity>     <v10:Source xmlns:v10="http://fedex.com/ws/rate/v10">prof</v10:Source>     <v10:Code xmlns:v10="http://fedex.com/ws/rate/v10">1000</v10:Code>     <v10:Message xmlns:v10="http://fedex.com/ws/rate/v10">Authentication Failed</v10:Message>  </v10:Notifications>  <v10:Version xmlns:v10="http://fedex.com/ws/rate/v10">     <v10:ServiceId xmlns:v10="http://fedex.com/ws/rate/v10">crs</v10:ServiceId>     <v10:Major xmlns:v10="http://fedex.com/ws/rate/v10">10</v10:Major>     <v10:Intermediate xmlns:v10="http://fedex.com/ws/rate/v10">0</v10:Intermediate>     <v10:Minor xmlns:v10="http://fedex.com/ws/rate/v10">0</v10:Minor>  </v10:Version> </v10:RateReply></SOAP-ENV:Body></SOAP-ENV:Envelope>
Any ideas?

New member

Posts

Joined
Wed Jan 13, 2016 7:52 pm

Post by JGAN » Mon Aug 22, 2016 10:09 am

Sorry, that was an issue with authorization. This is the actual issue from the log:

Code: Select all

2016-08-22 1:18:04 - PHP Notice:  Trying to get property of non-object in /home/***/public_html/catalog/model/shipping/fedex.php on line 184
Now the shipping options won't even appear when I try to get quotes. ??? ???

New member

Posts

Joined
Wed Jan 13, 2016 7:52 pm

Post by JGAN » Mon Aug 22, 2016 10:16 am

Changed lines 183 and 184 in /catalog/model/shipping/fedex.php from:

Code: Select all

if ($this->config->get('fedex_display_time')) {
     $title .= ' (' . $this->language->get('text_eta') . ' ' . date($this->language->get('date_format_short') . ' ' . $this->language->get('time_format'), strtotime($rate_reply_detail->getElementsByTagName('DeliveryTimestamp')->item(0)->nodeValue)) . ')';
}
To:

Code: Select all

$delivery_time_stamp = $rate_reply_detail->getElementsByTagName('DeliveryTimestamp');
						
if ($this->config->get('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)) . ')';
}
And now it works.

New member

Posts

Joined
Wed Jan 13, 2016 7:52 pm
Who is online

Users browsing this forum: No registered users and 23 guests