Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

SOLVED: translations fails - can't save content


Reply

2 Posts   1013 Views

Avatar
Digital-Punk.co.uk

22 October 2008 at 5:03pm (Last edited: 30 October 2008 6:18am), Community Member, 51 Posts

Hi,

I have problem with translations - I can't save translated content. When I press "save" button, I get this error: "Error saving content".

- I put "i18n::enable();" in mysite/config
- I have done db/build...

Here is error description from debug:

Error: DATABASE ERROR: Couldn't run query: INSERT INTO SiteTree_lang SET Created = NOW(), Lang = 'lt' | Unknown column 'Created' in 'field list'
At line 431 in /var/www/html/www.domainname.lt/public_html/site/sapphire/core/model/Database.php

user_error(DATABASE ERROR: Couldn't run query: INSERT INTO SiteTree_lang SET Created = NOW(), Lang = 'lt' | Unknown column 'Created' in 'field list',256) line 431 of Database.php Database->databaseError(Couldn't run query: INSERT INTO SiteTree_lang SET Created = NOW(), Lang = 'lt' | Unknown column 'Created' in 'field list',256) line 108 of MySQLDatabase.php MySQLDatabase->query(INSERT INTO SiteTree_lang SET Created = NOW(), Lang = 'lt',256) line 81 of DB.php DB::query(INSERT INTO SiteTree_lang SET Created = NOW(), Lang = 'lt') line 523 of Translatable.php Translatable->augmentWrite(Array) line 395 of Object.php Object->extend(augmentWrite,Array) line 595 of DataObject.php DataObject->write() line 645 of DataObject.php DataObject->writeWithoutVersion() line 499 of LeftAndMain.php LeftAndMain->save(Array,Form) line 238 of Controller.php Controller->run(Array) line 104 of Director.php Director::direct(/admin/) line 158 of main.php

Where can be my mistake? Can be that it's depend from server configuration?

Server: Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5
X-Powered-By: PHP/5.2.5
Silverstripe: 2.2.2

Avatar
Digital-Punk.co.uk

23 October 2008 at 12:36am Community Member, 51 Posts

Morning is smarter than Evening :)

I found where is problem - translations fails with embargo/expire module. I have uninstalled them and now translations are working!