Jump to content
rst

404 error on page save

Recommended Posts

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

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 ?

 

Share this post


Link to post
Share on other sites

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>

 

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

As far I know the only fix is to disable mod_security. You should contact your hosting provider.

  • Like 2

Share this post


Link to post
Share on other sites

seems like this is the actual error that gets triggered

exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY'

 

Share this post


Link to post
Share on other sites
14 hours ago, rst said:

exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41-0' for key 'PRIMARY'

Can be related?

 

Share this post


Link to post
Share on other sites

yeah i saw those posts, didnt help with my error

  • Like 1

Share this post


Link to post
Share on other sites

@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...

2017-07-01_110819.png.ec4fd6cc4b5ae720a67a3c9b851921ee.png

...otherwise you need to put in a support request to your host and ask for it to be disabled.

  • Like 1

Share this post


Link to post
Share on other sites

thanks for your help, unfortunately the hosting company wont allow me to make this edit

 

Share this post


Link to post
Share on other sites
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.

  • Like 2

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...