rst Posted June 28, 2017 Share Posted June 28, 2017 I am copy pasting a bunch of text into a text area on the page, when I click save I get a 404 error I updated to the latest version of processwire, didnt help. Any ideas ? thanks Link to comment Share on other sites More sharing options...
rst Posted June 28, 2017 Author Share Posted June 28, 2017 I am trying different things, and it looks like if I remove some of the text in the textarea field it saves the page correctly. Is there a way I can increase maximum allowed characters so it doesnt trigger 404 error ? Link to comment Share on other sites More sharing options...
chumneypwire Posted June 28, 2017 Share Posted June 28, 2017 If you go to edit the field in question and go to "Input", you can change the max allowed characters. However, if this is something you didn't edit previously, I don't know how well this will help regarding the 404 error. Link to comment Share on other sites More sharing options...
rst Posted June 29, 2017 Author Share Posted June 29, 2017 yeah i didnt set the limit to max allowed characters. i wonder if it could be some sort of a setting on the server or a database ? Link to comment Share on other sites More sharing options...
PWaddict Posted June 29, 2017 Share Posted June 29, 2017 This might be caused by mod_security. Add the below code on top of your .htaccess file and try again to save the page. <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> 1 Link to comment Share on other sites More sharing options...
rst Posted June 29, 2017 Author Share Posted June 29, 2017 What i just noticed, which i cant explain at all, is that if i remove the word "from" all lower case from the text area on that page, it saves without any problems. i add this word again to the text, i get that error i added mod_security to the .htaccess, its not making any difference Link to comment Share on other sites More sharing options...
PWaddict Posted June 29, 2017 Share Posted June 29, 2017 As far I know the only fix is to disable mod_security. You should contact your hosting provider. 2 Link to comment Share on other sites More sharing options...
rst Posted June 29, 2017 Author Share Posted June 29, 2017 seems like this is the actual error that gets triggered exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY' Link to comment Share on other sites More sharing options...
szabesz Posted June 30, 2017 Share Posted June 30, 2017 14 hours ago, rst said: exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY' Can be related? Link to comment Share on other sites More sharing options...
rst Posted June 30, 2017 Author Share Posted June 30, 2017 yeah i saw those posts, didnt help with my error 1 Link to comment Share on other sites More sharing options...
Robin S Posted June 30, 2017 Share Posted June 30, 2017 @rst, when you get 403 or 404 errors after submitting a form then it is usually mod_security that is to blame, as suggested above. You'll need to get it disabled one way or another. If you are on a cPanel host you can sometimes disable it there... ...otherwise you need to put in a support request to your host and ask for it to be disabled. 1 Link to comment Share on other sites More sharing options...
rst Posted July 5, 2017 Author Share Posted July 5, 2017 thanks for your help, unfortunately the hosting company wont allow me to make this edit Link to comment Share on other sites More sharing options...
Robin S Posted July 5, 2017 Share Posted July 5, 2017 50 minutes ago, rst said: unfortunately the hosting company wont allow me to make this edit Then they are not a company that deserves your money. Time to vote with your wallet and move to a new host. 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now