UC 1.4 USPS quote "undefined: Missing value for Country"

Posts: 9
Joined: 08/14/2008
Cool profile pic award.

I recently upgraded to UC 1.4 and now whenever I get a shipping quote from the shopping cart screen I get the error "undefined: Missing value for Country" for USPS quotes. UPS works fine and if I continue to the checkout page, both work ok.

Any way to fix this?

Posts: 3
Joined: 08/26/2008

I get this error in version 1.5. I have reverted back to 1.4 for the shipping module only and it works again
any help available from the ubercart guys?

cheers

Posts: 141
Joined: 08/07/2007

I made another thread but i get the same error (i starred out the important information)

?xml version="1.0" encoding="UTF-8"?>
<AccessRequest xml:lang="en-US">
  <AccessLicenseNumber>*************</AccessLicenseNumber>
  <UserId>*****</UserId>
  <Password>****</Password>
</AccessRequest>

<?xml version="1.0" encoding="UTF-8"?>
<RatingServiceSelectionRequest xml:lang="en-US">
  <Request>
    <TransactionReference>
      <CustomerContext>Complex Rate Request</CustomerContext>
      <XpciVersion>1.0001</XpciVersion>
    </TransactionReference>
    <RequestAction>Rate</RequestAction>
    <RequestOption>rate</RequestOption>
  </Request>
  <PickupType>
    <Code>01</Code>
  </PickupType>
  <CustomerClassification>
    <Code>03</Code>
  </CustomerClassification>
  <Shipment>
    <Shipper>
      <ShipperNumber>47ER11</ShipperNumber>
      <Address>
        <City>Ventura</City>
        <StateProvinceCode>CA</StateProvinceCode>
        <PostalCode>93003</PostalCode>
        <CountryCode>US</CountryCode>
      </Address>
    </Shipper>
    <ShipTo>
      <Address>
        <StateProvinceCode></StateProvinceCode>
        <PostalCode>90036</PostalCode>
        <CountryCode></CountryCode>
      </Address>
    </ShipTo>
    <ShipFrom>
      <Address>
        <StateProvinceCode>CA</StateProvinceCode>
        <PostalCode>93006</PostalCode>
        <CountryCode>US</CountryCode>
      </Address>
    </ShipFrom>
    <ShipmentWeight>
      <UnitOfMeasurement>
        <Code>LBS</Code>
      </UnitOfMeasurement>
      <Weight>1.0</Weight>
    </ShipmentWeight>
    <Service>
      <Code>03</Code>
      <Description>UPS Ground</Description>
    </Service>
    <Package><PackagingType><Code>04</Code></PackagingType><PackageWeight><UnitOfMeasurement><Code>LBS</Code><Description>Pounds</Description></UnitOfMeasurement><Weight>1.0</Weight></PackageWeight><PackageServiceOptions><InsuredValue><CurrencyCode>USD</CurrencyCode><MonetaryValue>4.99</MonetaryValue></InsuredValue></PackageServiceOptions></Package></Shipment>
</RatingServiceSelectionRequest>



undefined:
Missing value for Country.

<?xml version="1.0"?>
<IntlRateResponse><Package ID="0"><Error><Number>-2147219080</Number><Source>;IntlRate.UnpackIntlRateNode</Souurce>

Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

fwiw, I don't think the problem is the 1.5 release... the only thing that changed between 1.4 and 1.5 anywhere near shipping modules was the small tweak to the UPS module to change a default form value on the product node form. Any other ideas?

Posts: 9
Joined: 08/14/2008
Cool profile pic award.

I started getting this error after upgrading from 1.3 to 1.4

Posts: 170
Joined: 10/08/2007
Bug FinderGetting busy with the Ubercode.PayPal Hero

Ok, can you tell me where you were in the process when this xml was generated. The country code is indeed missing and will cause an error. Did you have a country code in the screen? Just trying to figure out if the country was present on the screen but not passed to UPS. I'm assuming you mean UPS, not USPS?

--

Christopher Schaub
LuteGrass, LLC
http://www.lutegrass.com

Posts: 9
Joined: 08/14/2008
Cool profile pic award.

After adding a product to the shopping cart, the customer is taken to the shopping cart screen where it shows a summary and has a box that says "estimated shipping cost:" and a field to enter the zip code. If you enter a zip code and click "calculate", that's when the error shows up.

I mean USPS, not UPS. UPS works fine.

If the customer continues to the checkout page and enters their address, all works fine.

Thanks

Posts: 3
Joined: 08/26/2008

version 1.5
ok there is no error at all when in the check out where you put your delivery details including country. USPS gets the quote fine
however when int he cart view there is a button to calculate delivery with a post code box
putting a us postcode in here used to work but not in version 1.5
now it comes up with the undefined country error - which in its own way makes sense
(its possible i also skipped version 1.4)

Posts: 9
Joined: 07/02/2008

I'm on 1.5 and I'm still have an error:

<?xml version="1.0"?>
<IntlRateResponse><Package ID="0"><Error><Number>-2147219080</Number><Source>;IntlRate.UnpackIntlRateNode</Source><Description>Missing value for Country.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></IntlRateResponse>

Any help would be great.

Thanks

Posts: 141
Joined: 08/07/2007

bump