Totally Zenned
- Join Date:
- Aug 2004
- Posts:
- 732
- Plugin Contributions:
- 0
Did UPS update anything?
Anyone know if UPS updated anything on their end which could mess up the UPSXML shipping module?
One of our customers contacted us from Brazil, saying that when he proceeded to the checkout area, there was nothing but a WHITE screen. I looked at our debug log file and saw the following:
[29-Oct-2008 13:59:25] PHP Fatal error: Cannot use string offset as an array in /home/user/public_html/store/includes/modules/shipping/upsxml.php on line 262
So I went to that file (upsxml.php) and saw the following function which was throwing the error:
if (isset($this->servicesTimeintransit[$type])) {
$eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);
$months = array (" ", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
$eta_arrival_date = $months[(int)$eta_array[1]]." ".$eta_array[2].", ".$eta_array[0];
// $_type .= ", ETA: ".$eta_arrival_date;
$_type .= "";
}
I don't know what could have possibly changed to cause this, but we certainly didn't do anything. So I commented that function out and now it APPEARS to be working. If you do hear any information about a UPS code change, please let us know.
- Jeff