14 replies [Last post]
brakk's picture
Offline
Cool profile pic award.
Joined: 08/14/2008
Juice: 20
Was this information Helpful?

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?

jethrocon@drupal.org's picture
Offline
Joined: 08/26/2008
Juice: 6
1.5 error USPS quote "undefined: Missing value for Country

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

mimetic2's picture
Offline
Joined: 08/07/2007
Juice: 478
Re: 1.5 error USPS quote "undefined: Missing value for Country

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>

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: 1.5 error USPS quote "undefined: Missing value for Count

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?

schaub123's picture
Offline
Bug FinderGetting busy with the Ubercode.PayPal Hero
Joined: 10/08/2007
Juice: 458
Re: Re: 1.5 error USPS quote "undefined: Missing value for Count

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

brakk's picture
Offline
Cool profile pic award.
Joined: 08/14/2008
Juice: 20
Re: Re: Re: 1.5 error USPS quote "undefined: Missing value for C

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

jethrocon@drupal.org's picture
Offline
Joined: 08/26/2008
Juice: 6
where there error occurs

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)

brakk's picture
Offline
Cool profile pic award.
Joined: 08/14/2008
Juice: 20
Re: UC 1.4 USPS quote "undefined: Missing value for Country"

I started getting this error after upgrading from 1.3 to 1.4

yoeff's picture
Offline
Joined: 07/02/2008
Juice: 40
Re: UC 1.4 USPS quote "undefined: Missing value for Country"

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

mimetic2's picture
Offline
Joined: 08/07/2007
Juice: 478
Re: Re: UC 1.4 USPS quote "undefined: Missing value for Country"

bump

soapcrafters's picture
Offline
Joined: 09/17/2008
Juice: 58
Re: Re: Re: UC 1.4 USPS quote "undefined: Missing value for Coun

I'm having the same issue. Missing value for Country error and no USPS quotes.
Pam

mattsteven's picture
Offline
Joined: 02/18/2009
Juice: 9
Some patch lovin

It seems that they accepted only parts of this patch into Ubercart as of 2.0. Affected users can take the countries they need out of this patch as needed and add them to the new country mapping file manually, it seems to do the trick.

http://drupal.org/files/issues/317758_uc_usps_country_names-5.x.patch

Anyone with the power to review this bug and add the rest of the countries may want to consider it... probably a lot of lost business going on for UC users.

http://drupal.org/node/602778

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Some patch lovin

mattsteven: No, http://drupal.org/node/317758 is a totally different issue, unrelated to this thread. See below.

soapcrafters: Is it really the same issue as the original post from a year ago? You're using UC 1.4 or 1.5 and having a problem getting quotes on the *cart* page?

all: The issue mentioned by the OP, getting international quotes on the *cart* page in older versions of UC, was because there used to be only one textfield to enter ZIP code on that page - there was no place to enter a country. So the quotes modules received only ZIP information, not country information, which is insufficient for a quote. IIRC this issue was fixed a year ago - it's certainly working fine in UC 1.8. To avoid this error upgrade to the latest UC 1.x or turn off the shipping quotes on the cart page, at admin/store/settings/cart/edit/panes

<tr>.
Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Some patch lovin

Actually, there was a problem in 2.0 where the USPS module didn't recognize most of the countries. This was fixed in http://drupal.org/node/609444.

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: Some patch lovin

Yeah, I know - my point was that that's not the problem this thread is discussing. This thread is about a specific problem that was solved almost a year ago. If the recent posters really have the same problem as the original poster, then http://drupal.org/node/609444 is not going to help. I spelled out the solution for the original problem for anyone who finds this thread and really does have that old original problem.

If they have the new problem that is fixed by http://drupal.org/node/609444 then it is wrong and misleading to say "I have the same problem" here. There are several other relevant (and recent) threads that discuss the new UC 2.0 problem and its solution.

<tr>.