Any idea why tracking results from uc_tracking show "December 31, 1969 7:00 pm," prior to the order being picked up or being in the fedex system? Corresponding view from fedex.com is the attached jpeg.

drupal 6.12
ubercart 6.x-2.0-rc3
package tracking 6.x-1.1

Thanks...

Shipment Information
Carrier: FedEx
Tracking #: 796796583928
Status: Shipment information sent to FedEx
Tracking Results
Date Time Location Status
December 31, 1969 7:00 pm ,
December 31, 1969 7:00 pm ,
December 31, 1969 7:00 pm ,
December 31, 1969 7:00 pm ,

Comments

tr’s picture

Status: Closed (fixed) » Fixed

Hmm... Here's what was happening:

Each scan of the package results in an "Event". In most cases, there are many events. This module iterates through the events using the code foreach ($reply->Events as $event). This is the problem. When there are many events, $reply->Events will be an array and PHP will loop and set $event to each event object in turn. But when there is only one event (like in your case), $reply->Events will be an object, not an array, and PHP will iterates over all the member variables of the event object, resulting in bad data. I have committed the fix to the dev version.

Category: support » bug
Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.