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.

General Questions

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

error saving content need a little help [edited]


13 Posts   2078 Views


22 December 2009 at 12:03am Community Member, 3 Posts

I'm thinking a re-install of SS itself is the way to go.


22 December 2009 at 12:07am Community Member, 211 Posts

I don't know,

It should not be that

I mean my site si quite simple, and most of it is functionning expept for those 3 pages.

I want to delete them properly and then recreate.

When I delete them with the admin tool they are also gone from tables like site tree or page wich seems fine .

Do you think there could be trace of them somewhere else ?



22 December 2009 at 12:33am Community Member, 3 Posts

I removed the ecommerce and data_object manager modules from the SS surface directory and the error is gone.


22 December 2009 at 6:03am (Last edited: 24 December 2009 9:29am), Community Member, 97 Posts

If you're having problems saving data, something to rule out if the server is running Apache is a particular mod_security configuration causing you problems.

mod_security is intended to help reduce the chance of hacks by restricting, among other things, what can be sent to a website using POST (rather than the usual GET).

The trouble is, SilverStripe uses an AJAX call when you save a page in the CMS, the AJAX call uses POST, and if there's certain content in your page content, or in whatever else the AJAX call includes, the server might deny the POST and pass an error back, as a result of a false positive. I don't think SilverStripe currently checks for this situation and try to give a useful error message.

A page on the SilverStripe wiki gives some details of hosts that can support SilverStripe, including in some cases (currently just one) the suggestion that you switch off mod_security in order to ensure SilverStripe work (eg Quadra Hosting in Australia):

The article on Quadra's page tells you how to turn off mod_security on their server by adding some code to your .htaccess file. That's something to try on a development site, at least to rule out your theory that mod_security is causing you problems, but you should not turn off mod_security on a live site. To discourage you just pasting in Quadra's code I'll leave it out of this post.

Instead, you should try to find out which, if any, of mod_security's rules (usually pattern matches), and on which pages in your site, are triggering mod_security. Then aim to disable or modify the rule just enough to get your site working.

You should be able to see which mod_security rule, if any, is being triggered, by looking at the Apache error log for your site. Each of mod_security's rules has a number which will be included in the Apache error log.

You'll see something like this in the error log:

[Mon Jan 14 22:30:03 2008] [error] [client] ModSecurity: Access denied with code ... [id "950005"] [msg "Re ...

The ID number there (950005) is the number of a rule in mod_security. You might be able to turn off that particular rule using something like this in your .htaccess file:

<LocationMatch "/sapphire/main.php.*">
SecFilterRemove 950005

If you're on shared hosting and don't have access to the error logs, ask your hosting provider to at least look through the logs and tell you what they can see.

If you need help with mod_security, try asking your question on the #httpd IRC channel, as suggested here:


22 December 2009 at 7:37am Community Member, 211 Posts


Thanks for taking some of your time to help me solve this .

I cheked the error log and this what I get

It seems to have to do with tiny_mce2 and memory

Any suggestion ?

Thanks again

[Mon Dec 21 19:21:12 2009] [error] [client] File does not exist: /var/www/vhosts/, referer:
[Mon Dec 21 19:21:15 2009] [error] [client] File does not exist: /var/www/vhosts/, referer:
[Mon Dec 21 19:21:15 2009] [error] [client] File does not exist: /var/www/vhosts/, referer:
[Mon Dec 21 19:21:15 2009] [error] [client] File does not exist: /var/www/vhosts/, referer:
[Mon Dec 21 19:22:37 2009] [error] [client] PHP Fatal error: Out of memory (allocated 131072000) (tried to allocate 81 bytes) in /var/www/vhosts/ on line 454, referer: