if you use also content_profile with own fields in registration page,
so in the create new account page there are uc_addresses's fields and content_profile's field
there is a problem, error message :

An illegal choice has been detected. Please contact the site administrator.

is required to set the field State/Province also if you have did;

only for default country United States there isn't this alert;

Comments

megachriz’s picture

Status: Active » Closed (cannot reproduce)

I remember having seen this issue on my local install around the time this issue was posted, but now I can no longer reproduce it. I suspect it may have something to do with the version of jQuery installed (with the jQuery Update module installed, you can use an other version of jQuery on your Drupal install).

I suspect it's the following javascript code in ubercart/uc_store/uc_country_select.js that may have failed under some kind of circumstances:

/**
 * Set the select box change behavior for the country selector
 */
Drupal.behaviors.ucCountrySelect = function(context) {
  $('select[id$=-country]:not(.ucCountrySelect-processed)', context).addClass('ucCountrySelect-processed').change(
    function() {
      uc_update_zone_select(this.id, '');
    }
  );
}

As I'm no longer able to reproduce this issue and it's likely it's probably already fixed (i.e. in Ubercart or jQuery), I'm closing this issue now.
Feel free to reopen if you still have this issue, but provide more details about how the issue can be reproduced in this case.