Post by ljhost » Wed Jan 01, 2014 6:07 am

I've got a client running OpenCart Version 1.4.9.4 and randomly about a month ago ups stopped working and when you get to the shipping page it spits out:

Warning: array_combine() [function.array-combine]: Both parameters should have an equal number of elements in /home/[username]/public_html/store/catalog/model/shipping/upsxml.php on line 496

How can I fix this / why did it just start happening randomly?

Newbie

Posts

Joined
Wed Jan 01, 2014 6:04 am

Post by ThomasWR » Wed Jan 08, 2014 5:42 pm

Hey
I dont know much about that model. However the warning is telling you, that its trying to combine two arrays of different size. Which makes the exception cast.

Array combine works like this:
<?php
$a = array('green', 'red', 'yellow');
$b = array('avocado', 'apple', 'banana');
$c = array_combine($a, $b);

print_r($c);
?>
Meaning it is having difficulty on what to cast on the specific place.

If you provide upsxml.php here I could probally tell you more.

Newbie

Posts

Joined
Wed Jan 08, 2014 5:31 pm

Post by ljhost » Wed Mar 12, 2014 6:03 am


Newbie

Posts

Joined
Wed Jan 01, 2014 6:04 am

Post by ljhost » Tue Mar 18, 2014 2:30 pm

Any ideas guys?

Newbie

Posts

Joined
Wed Jan 01, 2014 6:04 am

Post by ljhost » Wed Jun 11, 2014 11:37 am

bump :/

Newbie

Posts

Joined
Wed Jan 01, 2014 6:04 am
Who is online

Users browsing this forum: No registered users and 1 guest