Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For some reason when on checkout page and changing countries, ajax fails to update the state/province list and throws the following error:
TypeError: j is undefined - jquery.js?v=1.4.4 (line 33)
If I use Jquery Update with v5 I get this:
TypeError: object is undefined - jquery.js?v=1.5.2 (line 611)
If you refresh the browser, the state/province list is properly populated, so it is only the ajax refresh that is broken. This was happening with D7.23 and UC 7.35 as well. Updating did not resolve the issue.
Any help would be appreciated
Comments
Comment #1
longwaveThis is likely to be an issue with either your theme, or a contributed or custom module that provides JavaScript; when any JavaScript error occurs, it will stop all other code from running on the same page (such as the Ajax request that updates the states dropdown).
Try changing your theme and see if that resolves it; otherwise you will need to try disabling modules until you find the culprit.
Comment #2
1959mvp CreditAttribution: 1959mvp commentedThanks-
Turned out to be an issue with Clientside Validation module. Turning this module off for the check out form resolved the issue.