Jump to content

Urgent: Can't Add New Language- Unknown Column 'date_Format_Lite' In 'field List'


Guest

Recommended Posts

Hi,

 

I am trying to add a new Language(Vietnamese) to my Shop.(Version 1.4.6) but I get an error "An error occurred while creating object. lang (Unknown column 'date_format_lite' in 'field list')"

 

I used the default values for these fields:

Date Format: Y-m-d

Date Format(full): Y-m-d H:i:s

 

Please help I need to fix this on my production shop.

Link to comment
Share on other sites

Did you make a clean install of PS 1.4.6, or was it an upgrade from an older version? if so, which version and how did you do the upgrade?

Hi, it's a clean install of "prestashop_1.4.6.2"

 

Error Screenshot: post-305386-0-75396000-1325271719_thumb.png

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

I had the same bug with my dutch translation. It seems that in some cases there are missing tables in de database. This script helped me out with my problem (maybe u have to alter the script for your needs ;) )

 

Execute this SQL script in your phpMyAdmin (This wil add the missing tables and values to your database

 

ALTER TABLE `ps_lang` ADD `date_format_lite` char(32) NOT NULL DEFAULT

'Y-m-d' AFTER language_code;

ALTER TABLE `ps_lang` ADD `date_format_full` char(32) NOT NULL DEFAULT

'Y-m-d H:i:s' AFTER date_format_lite;

UPDATE `ps_lang` SET `date_format_lite` = 'd/m/Y' WHERE `iso_code` IN

('fr', 'es', 'it');

UPDATE `ps_lang` SET `date_format_full` = 'd/m/Y H:i:s' WHERE `iso_code`

IN ('fr', 'es', 'it');

UPDATE `ps_lang` SET `date_format_lite` = 'd.m.Y' WHERE `iso_code` =

'de';

UPDATE `ps_lang` SET `date_format_full` = 'd.m.Y H:i:s' WHERE `iso_code`

= 'de';

UPDATE `ps_lang` SET `date_format_lite` = 'm/d/Y' WHERE `iso_code` =

'en';

UPDATE `ps_lang` SET `date_format_full` = 'm/d/Y H:i:s' WHERE `iso_code`

= 'en';

 

Grtz Highlive

Link to comment
Share on other sites

  • 3 months later...

Hi I have this problem in Hebrew

 

this is the message i receive -

An error occurred while creating object.

lang (Unknown column 'date_format_lite' in 'field list').

 

i need sum help with this

 

please

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

 

I had the same bug with my dutch translation. It seems that in some cases there are missing tables in de database. This script helped me out with my problem (maybe u have to alter the script for your needs ;) )

 

Execute this SQL script in your phpMyAdmin (This wil add the missing tables and values to your database

 

ALTER TABLE `ps_lang` ADD `date_format_lite` char(32) NOT NULL DEFAULT

'Y-m-d' AFTER language_code;

ALTER TABLE `ps_lang` ADD `date_format_full` char(32) NOT NULL DEFAULT

'Y-m-d H:i:s' AFTER date_format_lite;

UPDATE `ps_lang` SET `date_format_lite` = 'd/m/Y' WHERE `iso_code` IN

('fr', 'es', 'it');

UPDATE `ps_lang` SET `date_format_full` = 'd/m/Y H:i:s' WHERE `iso_code`

IN ('fr', 'es', 'it');

UPDATE `ps_lang` SET `date_format_lite` = 'd.m.Y' WHERE `iso_code` =

'de';

UPDATE `ps_lang` SET `date_format_full` = 'd.m.Y H:i:s' WHERE `iso_code`

= 'de';

UPDATE `ps_lang` SET `date_format_lite` = 'm/d/Y' WHERE `iso_code` =

'en';

UPDATE `ps_lang` SET `date_format_full` = 'm/d/Y H:i:s' WHERE `iso_code`

= 'en';

 

Grtz Highlive

Unfortunately, It was not work at my PS. Error message is "duplicate date_format_lite"
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...