Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » SOLVED: translations fails - can't save content

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

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

Page: 1
Go to End
Author Topic: 958 Views
  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    SOLVED: translations fails - can't save content Link to this post

    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

  • Digital-Punk.co.uk
    Avatar
    Community Member
    51 Posts

    Re: SOLVED: translations fails - can't save content Link to this post

    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!

    958 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.