Forums / Addon Shipping Modules / Fatal error: Cannot use string offset as an array in upsxml.php

Fatal error: Cannot use string offset as an array in upsxml.php

Locked

Started by yaby on 1 Sep 2007, 12:33 AM · Views: 5,308

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Sep 2007, 12:33 AM
#1
yaby avatar

yaby

New Zenner

Join Date:
Nov 2005
Posts:
60
Plugin Contributions:
0

Fatal error: Cannot use string offset as an array in upsxml.php

my user got this error message when click on the 'estimate shipping' button, or 'checkout'

/home/yabycosm/public_html/shop/includes/modules/shipping/upsxml.php on line 262

to reproduce it i had to log in to her account to get this error message. it doesn't seem to be coming up with every account. is anyone able to help me with this?

line 262 in the code is this:

$eta_array = explode("-", $this->servicesTimeintransit[$type]["date"]);

1 Sep 2007, 1:06 AM
#2
yaby avatar

yaby

New Zenner

Join Date:
Nov 2005
Posts:
60
Plugin Contributions:
0

Re: Fatal error: Cannot use string offset as an array in upsxml.php

the address is in Ireland, and it seems to do this specifically with Ireland so far.. is there any way to fix this?

22 Sep 2007, 5:46 AM
#3
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: Fatal error: Cannot use string offset as an array in upsxml.php

I am also facing this error.:frusty:

23 Sep 2007, 5:39 AM
#4
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: Fatal error: Cannot use string offset as an array in upsxml.php

Hi All

Has anyone got the solution to that line of code?
I add $eta_array = array(); and it does not help either:frusty:

19 Oct 2007, 5:40 PM
#5
cjjune avatar

cjjune

Zen Follower

Join Date:
Apr 2007
Posts:
139
Plugin Contributions:
0

Re: Fatal error: Cannot use string offset as an array in upsxml.php

Help :cry:
I still can't get it.
Can somebody help to solve this error.

Thanks in advance.