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.
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)){
You could try changing it to:
if (is_array($usps_ship_active) && in_array($serviceName, $usps_ship_active)){
Reggie, that fixed it...thank god for people like you!
No problem, glad to help.