Jump to:

23375 Posts in 18175 Topics by 2866 members

General Questions

SilverStripe Forums » General Questions » error saving page

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 660 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    error saving page Link to this post

    Hi!
    I install Silverstipe on Aruba Server with linux. Here I have the following problem: when I save a page (for example Page or News Page) I have the following error:

    500//There has been an error
    console.error(fullMessage);}

    If I try to save a second time the error disappear and I can save my page.
    With server windows this doesn't happen..
    Any idea?

  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Re: error saving page Link to this post

    try adding...

    SS_Log::add_writer(new SS_LogFileWriter('sserrors.txt', SS_Log::ERR);


    to your config and then looking at the file produced in sapphire folder

    or search your (apache?) error logs

  • bebabeba
    Avatar
    Community Member
    192 Posts

    Re: error saving page Link to this post

    The message is this:

    Error at sapphire/core/model/MySQLDatabase.php line 536: Couldn't run query:
    INSERT INTO "SiteTree_versions" ("ShowInMenus", "ShowInSearch", "ProvideComments", "Status", "MenuTitle", "MetaTitle", "MetaKeywords", "MetaDescription", "Priority", "HomepageForDomain", "ToDo", "LastEdited", "ClassName", "Created", "URLSegment", "Title", "Content", "ExtraMeta", "HomePageForDomain", "Sort", "HasBrokenFile", "HasBrokenLink", "ReportClass", "CanViewType", "CanEditType", "Version", "ParentID", "RecordID", "AuthorID") VALUES ('1', '1', '0', 'Saved (new)', null, null, null, null, '0.9', null, null, '2011-08-23 08:43:31', 'Page', '2011-08-23 08:43:25', 'new-page', 'New Page', null, null, null, '6', '0', '0', null, 'Inherit', 'Inherit', 2, '5', 94, 1)

    Column 'HomePageForDomain' specified twice (http://mysito/admin/EditForm)

    any ideas? I'm on linux so I table start with initial capital letters. For example: SiteTree_Live, SiteConfig but SiteTree_versions

  • martimiz
    Avatar
    Forum Moderator
    1067 Posts

    Re: error saving page Link to this post

    Looks like for some reason the field "HomePageForDomain" is found twice in the CMS form. That shouldn't be the case... Does this happen on a fresh install?

    660 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.