News:

Support the VirtueMart project and become a member

Main Menu

USPS 4.2 exception when no domestic options selected in configuration

Started by bcohen0, September 26, 2010, 02:36:06 AM

Previous topic - Next topic

bcohen0

Hello, In case anyone is interested, I discovered that when I shut off all the domestic options for usps4.2 I get an exception on line 318 because $usps_ship_active is null. I suspect the same thing would be seen for $usps_intl_active if you shut off all the international options.


klattr1

I am experiencing the same issue. I am only using FedEx for domestic shipping and only USPS for international shipping. I get the "Warning: in_array() expects parameter 2 to be array, null given..." error as well.

Anyone have fixes for this? The error goes away if I enable 1 USPS domestic shipping option but I really don't want that and would prefer FedEx to handle domestic shipping for many reasons.

Here's the line of code it's referencing:
if (in_array($serviceName, $usps_ship_active)){

lowmips

You could try changing it to:


if (is_array($usps_ship_active) && in_array($serviceName, $usps_ship_active)){
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

klattr1


lowmips

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)