[RESOLVED]: Wordpress error "413 request entity too large"

The error called “413 request entity too large error in WordPress” might be risky at times. People choose WordPress for the look and feel appearance. The plugin and theme play the main role in the look and feel appearance. 413 are the error exists when you try to upload plugin or theme in WordPress. It doesn’t mean that the error will have occurred whenever you upload plugin or themes.

Let us phrase the exact reason of 413 errors:

We used to set some limitations for file upload right! If the file upload goes beyond the limitation then the webserver throws error called “413”. The actual failure is from the webserver because it fails to upload the file when it covers full limitation setup. A good server must configure regularly to upload more images and files. Usually, you will be well-known that a company used to deal with a big array of technical settings in office. They will upload more and more number of images and media files without a count.

If you configure the server regularly then it would be easy for you to upload the images and media files. The failure of configuration result in stating message such as “the file size goes more than the limited setup”.

How to resolve request entity too large error?

Here, we are recommending three methods to fix 413 errors.

Solution 1: Use FTP for file upload:

There is a difference between one file upload and more file upload. If you find the error when you upload one specific file then try by uploading the file using FTP.

Plugin: For uploading plugin file, just follow the installation process for the plugin and then click on the section “Manually install a WordPress plugin using FTP”.

Themes: For uploading theme file, install the theme in WordPress and then click on the section “Installing a WordPress theme using FTP”.

Solution 2: Do changes in .htaccess file to increase the limitation of file upload:

Go to .htaccess file for increasing the limitation of file upload.

Code:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Just add the above code into .htaccess file specifically at the bottom. So, there is no option for you to add at first or middle.

Solution 3: Use functions file to increase file upload:

Go to the theme file functions.php and add the below-mentioned code into the file:

Code:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Here, 64M in upload_max_size and 64M in post_max_size is the limitation for file upload. To upload more files, change the value instead of 64. It completely depends upon your choice.

To increase or decrease the file upload time, make changes in max_execution_time.

Hope, you found the right solution for fixing 413 errors. We are happy to share more and more solutions to your problem.
Author
bhawanisingh
Views
4,316
First release
Last update
Rating
0.00 star(s) 0 ratings
Top