Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Error saving content

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

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

Page: 1 2
Go to End
Author Topic: 9229 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    Re: Error saving content Link to this post

    And another thing: wouldn't it be better to say: "RightContent" => "HTMLText" when using a new HtmlEditorField?

    Sorry for all the questions.. I'm only beginning here

  • Tatey
    Avatar
    Community Member
    18 Posts

    Re: Error saving content Link to this post

    Are you aware if mod_security is enabled on your HTTP server? It has rather conservative settings. It's not uncommon for mod_security to identify a "Page Save" as an SQL injection attack and deny the query.

    You could attempt to disable mod_security by appending the following lines in your .htaccess. This file resides in your SilverStripe root directory.

    <IfModule mod_security.c>
    SecFilterEngine off
    </IfModule>

  • redking
    Avatar
    43 Posts

    Re: Error saving content Link to this post

    I'm experiencing the same "Error saving content" with the ArticlePage. Oddly enough, it saves and publishes the content until the browser cache is cleared, then it's gone. Weird. Any fixes for this?

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: Error saving content Link to this post

    same error here... the content is saved, but it keeps me saying "error saving content" my field is created as follows:

    static $db = array(
       'CostIncludes' => 'Text'
    )
    function getCMSFields() {
       $fields->addFieldToTab('Root.Content.Main', new HtmlEditorField('CostIncludes','Cost includes'));
       return $fields;
    }

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Error saving content Link to this post

    You are using a HtmlEditorField. Note that you have to use the FieldType of "HTMLText" instead of "Text" if you want to use a HTMLEditorField to edit it

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: Error saving content Link to this post

    dumb me... thanks for noticing the problem
    now all is working perfect!

    9229 Views
Page: 1 2
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.