Torbz Posted December 15, 2011 Share Posted December 15, 2011 Trying to add ICELAND as a country in my back office. I pick no zip code needed and the last 3 tick boxes to negative. I get this error when I save. Invalid address layoutDuplicate entry '0' for key 'PRIMARY' Anybody have any idea what it actually means without me having to go fishing around in PhpMyAdmin to find out what it relates to? It seems a little abstract to me.... torbz x v.1.4.6.2 Link to comment Share on other sites More sharing options...
Torbz Posted December 16, 2011 Author Share Posted December 16, 2011 Sorry - just want to bump this - failing to move forward.... Anyone? Link to comment Share on other sites More sharing options...
RxB Posted March 19, 2012 Share Posted March 19, 2012 Ok that one I had the same error, the cause seems to be that there is no country identifier in the form, which makes the format verification, which is based on the fact that is has an id_country variable, fail. I don't have the problem on a 1.4.4.1, but on a later version (1.4.7). I'm not certain of the cause, but it could come from the fact that you changed your county table (by removing some countries .. That's what I did on he site that is faulty). Anyway, the only workaround I found is to manually add an empty country in the ps_country table for all countries you want to add. You can then edit those empty countries to you liking without error. Link to comment Share on other sites More sharing options...
Mallee Boy Posted May 26, 2012 Share Posted May 26, 2012 I have the same problem adding Thailand in 1.4.8.2 - so I have entered it manually in database. Link to comment Share on other sites More sharing options...
plutus Posted September 19, 2012 Share Posted September 19, 2012 The cause of the ERROR could be that the country you want to add already exists. You can check it by entering the country name or the ISO code. 1 Link to comment Share on other sites More sharing options...
Hasini Posted September 19, 2012 Share Posted September 19, 2012 The cause of the ERROR could be that the country you want to add already exists. You can check it by entering the country name or the ISO code. I had the same error, and in my case plutus was right, the country existed. You can try searching for it in the empty form box above the country name. Link to comment Share on other sites More sharing options...
makinero Posted July 29, 2014 Share Posted July 29, 2014 Same error in PS1.6. I tried to create a new country called XYZ which doesn't exist, same country code as name with +99 as phone prefix. I still have the error. Link to comment Share on other sites More sharing options...
nospario Posted July 2, 2015 Share Posted July 2, 2015 Same error in PS1.6. I tried to create a new country called XYZ which doesn't exist, same country code as name with +99 as phone prefix. I still have the error. Same problem for me, did you get to the bottom of it makinero? 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