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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

error saving content need a little help [edited]


Go to End


13 Posts   3181 Views

Avatar
EmmPee

Community Member, 3 Posts

22 December 2009 at 12:03am

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

Avatar
servalman

Community Member, 211 Posts

22 December 2009 at 12:07am

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 ?

Thanks

Avatar
EmmPee

Community Member, 3 Posts

22 December 2009 at 12:33am

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

Avatar
tobych

Community Member, 97 Posts

22 December 2009 at 6:03am

Edited: 24/12/2009 9:29am

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

http://doc.silverstripe.org/doku.php?id=suggested-web-hosts

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 127.0.0.1] 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
</LocationMatch>

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:

http://httpd.apache.org/docs/2.2/faq/

Avatar
servalman

Community Member, 211 Posts

22 December 2009 at 7:37am

Hi

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 87.231.106.127] File does not exist: /var/www/vhosts/delair.fr/httpdocs/jsparty/tiny_mce2/plugins/blockquote, referer: http://www.delair.fr/admin
[Mon Dec 21 19:21:15 2009] [error] [client 87.231.106.127] File does not exist: /var/www/vhosts/delair.fr/httpdocs/jsparty/tiny_mce2/plugins/blockquote, referer: http://www.delair.fr/admin
[Mon Dec 21 19:21:15 2009] [error] [client 87.231.106.127] File does not exist: /var/www/vhosts/delair.fr/httpdocs/jsparty/tinymce_advcode/langs/fr.js, referer: http://www.delair.fr/admin
[Mon Dec 21 19:21:15 2009] [error] [client 87.231.106.127] File does not exist: /var/www/vhosts/delair.fr/httpdocs/jsparty/tinymce_ssbuttons/langs/fr.js, referer: http://www.delair.fr/admin
[Mon Dec 21 19:22:37 2009] [error] [client 87.231.106.127] PHP Fatal error: Out of memory (allocated 131072000) (tried to allocate 81 bytes) in /var/www/vhosts/delair.fr/httpdocs/sapphire/core/model/MySQLDatabase.php on line 454, referer: http://www.delair.fr/admin

Go to Top