Jump to content

Change Address - Country blank fatal error


Chris G 29

Recommended Posts

version 1.4.9.0

 

I've just found a problem. (or I think its just happened). To try to investigate a problem entering customer addresses via safari I switched to a single laguage for the site.

 

Now when I login as a customer I can't add a new address or change my address as the Country field drop down is blank and if I try to proceed I get a fatal error. This seems to be related to PSCFI-2784.

 

I've re-enabled two languages and changed country via back office as suggested but no luck.

 

I'm assuming some config files must have changed by going to one language as I'm sure there were no problems before.

 

 

Some more info.

 

The country is shown correctly in the customer address in the BO.

 

The problem only exists when changing an address or adding a new address, creating a new customer account gives the correct country options using firebug to look at the Your addresses page showed, when creating an address for a new account:

 

<p class="required select">

<label for="id_country">Country</label>

<select id="id_country" name="id_country">

<option value="">-</option>

<option selected="selected" value="8">France</option>

<option value="1">Germany</option>

</select>

<sup>*</sup>

</p>

 

Existing account add or change address:

 

<p class="required select">

<label for="id_country">Country</label>

<select id="id_country" name="id_country">

</select>

<sup>*</sup>

</p>

 

So for some reason the options are not being generated.

 

Address.tpl line 191

 

{if $field_name eq 'Country:name' || $field_name eq 'country'}

<p class="required select">

<label for="id_country">{l s='Country'}</label>

<select id="id_country" name="id_country">{$countries_list}</select>

<sup>*</sup>

</p>

 

Suggests {$countries_list}, is not being expanded.

 

Any ideas ?

 

Chris g

Edited by Chris G 29 (see edit history)
Link to comment
Share on other sites

OK, after moving away from the idea that the change to a single language caused the problem searching the forum gave:

 

http://www.prestasho...-error-message/

 

In the BO go to Shipping / countries. At the bottom of the page under Countries options:

 

for 'Restrict countries in FO by those delivered by active carriers' selecting the radio buttons

 

- yes button selected - drop down empty, address can't be changed

- no button selected - drop down has country, address can be changed ok

 

you can toggle between the two to make the error appear or disappear so I don't think any data has been corrupted.

 

Chris g

Edited by Chris G 29 (see edit history)
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...