Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request Entity Too Large for long posts

Request Entity Too Large

Getting the following error, when posting a lengthy post. Error occurs when the total characters in a post exceeds a certain limit.


The requested resource
does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.

Additionally, a 413 Request Entity Too Large error was encountered while trying to use an ErrorDocument to handle the request.


I am able to upload an image file of more than 10MB since I have increased the limits already.

my .user.ini is as follows:-

file_uploads = On
post_max_size = 100M
upload_max_filesize = 100M
max_input_vars = 5000
memory_limit = 256M


Screen shot shows values. So does not look like a php limit problem.


PHP Memory Limit:[?]256 MB
WP Debug Mode:[?]


Server Environment

Server Info:[?]Apache
PHP Version:[?]7.2.6
PHP Post Max Size:[?]100 MB
PHP Time Limit:[?]300
PHP Max Input Vars:[?]5000


My post is a text file having a lot of lines.


Also added following lines in .htaccess

LimitRequestBody 0
php_value post_max_size 64M


I have no problem in my test box. Any ideas? Many thanks.