I seem to be having a problem with all things related to shipping in ubercart. Originally, we were trying to set up UPS as the only shipping option but it was impossible to generate shipping quotes after we set up the UPS module. When you clicked "calculate shipping" during checkout, the status bar flashed for a microsecond and an error message immediately popped up saying that there was an error calculating the shipping quote and to call to complete the order.
I realized we hadn't yet set up a default origin address for the store, and figured that was the problem. No dice. I double, triple and quadruple checked our UPS account info... still no luck. The only thing that allows you to actually process the order at this point is a flat rate, but then when you try to process the shipping manually on the backend, we're still getting errors.
In fact, pretty much anywhere on the site that has to do with a shipping address, we get one or many errors that all look like this (these are the errors returned when you choose to manually set up shipping for an order):
"warning: in_array(): Wrong datatype for first argument in /home/sexy/html/modules/ubercart/shipping/uc_shipping/uc_shipping.module on line 1123.
warning: in_array(): Wrong datatype for first argument in /home/sexy/html/modules/ubercart/shipping/uc_shipping/uc_shipping.module on line 836.
warning: in_array(): Wrong datatype for first argument in /home/sexy/html/modules/ubercart/shipping/uc_shipping/uc_shipping.module on line 1334."
Similar errors pop up sometimes when updating the UPS module info, and I believe sometimes on the checkout page. Every single line of code that these errors refer to looks like this:
if (!in_array($address, $addresses)){
or
if (!in_array($store_address, $addresses)){
I feel like this has to be an indication of why none of the shipping options are working but I cannot figure out what's wrong. I'm more of a designer than a web developer so troubleshooting this sort of problem is not necessarily my forte. Please help ASAP as our store is basically crippled until we can figure out what's wrong.
Thanks!!






Joined: 03/18/2008