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?
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.
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.
Who is online
Users browsing this forum: No registered users and 3 guests