levviking Posted February 17, 2014 Share Posted February 17, 2014 Hello, i have this error when i acces Localization > Countries: Bad SQL queryUnknown column 'call_prefix' in 'field list' Link to comment Share on other sites More sharing options...
moraira Posted February 17, 2014 Share Posted February 17, 2014 Mine Ps 1.5.6.2 goes well in Localization - Countries. check you have call_prefix in table ps_country, it is int(10) Link to comment Share on other sites More sharing options...
levviking Posted February 17, 2014 Author Share Posted February 17, 2014 thank you, i don't have the call_prefix in table ps_country. It's missing. Link to comment Share on other sites More sharing options...
moraira Posted February 17, 2014 Share Posted February 17, 2014 you can check update sql directory in install directory of a new prestashop douwload. I have found the creation of call_prefix in update file 1.4.0.2.sql maybe you have delete it for error, because it is an very old update. this is the update line for the table ALTER TABLE `PREFIX_country` ADD `call_prefix` int(10) NOT NULL default '0' AFTER `iso_code`; 1 Link to comment Share on other sites More sharing options...
levviking Posted February 18, 2014 Author Share Posted February 18, 2014 Thank you @moraira , i don't understand. This is a command in phpMyAdmin? Link to comment Share on other sites More sharing options...
J.Sahu Posted February 18, 2014 Share Posted February 18, 2014 Yes this is the command you should run on your database. 1 Link to comment Share on other sites More sharing options...
levviking Posted February 18, 2014 Author Share Posted February 18, 2014 Thank you. I will search on google, where to add this line. Link to comment Share on other sites More sharing options...
levviking Posted February 18, 2014 Author Share Posted February 18, 2014 Thank you very much. I found the solution: I run a query with your code, only change is PREFIX to my database prefix. 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