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

Error saving content


Reply

14 Posts   9286 Views

Avatar
dio5

12 September 2007 at 6:18am Community Member, 501 Posts

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 :-)

Avatar
Tatey

27 November 2007 at 6:14pm Community Member, 18 Posts

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>

Avatar
redking

25 January 2008 at 11:52am (Last edited: 25 January 2008 6:03pm), 43 Posts

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?

Avatar
dospuntocero

29 June 2008 at 10:46pm Community Member, 54 Posts

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;
}

Avatar
Willr

30 June 2008 at 2:26pm Forum Moderator, 5511 Posts

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

Avatar
dospuntocero

1 July 2008 at 3:52am Community Member, 54 Posts

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