paciocco Posted February 2, 2015 Share Posted February 2, 2015 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 More sharing options...
tomerg3 Posted February 2, 2015 Share Posted February 2, 2015 Do you see all the countries and states enabled in the Backoffice? Link to comment Share on other sites More sharing options...
paciocco Posted February 2, 2015 Author Share Posted February 2, 2015 Yes, everything enabled and appears normal on that side. The last previous registration was only a little over a week before the failed attempt, and I probably hadn't even logged into the back office in that time... Link to comment Share on other sites More sharing options...
tomerg3 Posted February 3, 2015 Share Posted February 3, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now