Jump to content

Recommended Posts

Posted

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

Posted

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 ?

Posted

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.

Posted

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 ?

 

Posted

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
Posted

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

Posted

seems like this is the actual error that gets triggered

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

 

Posted
14 hours ago, rst said:

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

Can be related?

 

Posted

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

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

 

Posted
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

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