Jump to content

No state field appears because "countries is not defined"


Recommended Posts

My site (cigarloversunite.com) suddenly developed a problem in the last month that is preventing anyone to create a new account. When the new user goes to /authentication to register initially the state field did not appear at all. One attempted fix I found on these forums suggested changing the css to make the field always appear, so it does now appear, but nothing appears in the drop down menu once clicked. The reason for this is the browser thinks the countries field has not been filled, so the javascript that populates the state field never enacts. Through dev tools an error shows that states: "Uncaught ReferenceError: countries is not defined" associating the error to the file statesManagement.js.

 

I've tried the solutions presented here (adding "var" in authentication.tpl), as well subbing out statesManagement.js for previous versions, to no effect. Yes, I've cleared the cache, etc.

 

As stated, this is a new problem for a site that has been functioning fine for years (ps ver 1.4). The only thing that I've changed over the last month was the renewal of the SSL certificate, but I haven't found anything that would suggest this could be a problem. 

 

Help?

Link to comment
Share on other sites

It looks like there's a JS error

 

You may want to disable any CCC you are using, and see if it makes a difference, otherwise, it would need to be debugged to find out what is causing the issue.

When I viewed the source, I was able to see var countries...

ReferenceError: countries is not defined
 
 
...ption:not(:first-child)').remove(); var states = countries[$('select#id_country'...
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...