22437 Posts in 7058 Topics by 2750 members
Page: 1 2
|Go to End|
22 December 2009 at 12:03am
I'm thinking a re-install of SS itself is the way to go.
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 ?
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.
22 December 2009 at 6:03am Last edited: 24 December 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):
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:
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
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 ?
[Mon Dec 21 19:21:12 2009] [error] [client 18.104.22.168] 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 22.214.171.124] 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 126.96.36.199] 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 188.8.131.52] 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 184.108.40.206] 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
Page: 1 2
|Go to Top|