How to solve the 413 Request Entity Too large Error in WordPress – ServerCake

0
196
413 entity error

04413 Request Entity Too large error:

This is one of the error occurs when you are trying to upload a theme or plugin in WordPress.This error occurs usually when uploading a file that exceeds the maximum file upload limit. When the web server is failed to upload the file, it will throw a 413 Request entity too large error.

Usually, all WordPress hosting providers are have configured the server previously, so the uploading of a large size media will be easily done. But in some of the cases, the server settings are not high enough to upload the large size images, themes or plugins. In that servers, it will show you an error message of file size exceeds the maximum upload limit. We will show how to fix the error by following methods. There are multiple methods are used to resolve the issue and you can try the one which works better for you.

Increase Upload limit via function file:]

Add the below code to the functions.php file or a site-specific plugin.
          1. @ini_set( ‘upload_max_size’ , ’64M’ );
          [email protected]_set( ‘post_max_size’, ’64M’);
          [email protected]_set( ‘max_execution_time’, ‘300’ );
This code will help you to increase the upload size limit in WordPress.Also it will incrrease the maximum execution time limit which will increase the time taken for uploading a file.

Increase Upload limit via .htaccess file:

Add the following code in your .htaccess file to increase the uploading size limit.
           1.php_value upload_max_filesize 64M
           2.php_value post_max_size 64M
           3.php_value max_execution_time 300
           4.php_value max_input_time 300
This method also helps you to resolve the issue by increasing the uploading size limit.
We hope that these two methods help you to increase the upload size limit and it will fix the 413 request entity too large error. Please subscribe our channel on YouTube for video tutorials and follow us on Facebook and Twitter. If you have some other ideas to fix the issue, leave it in the comment box.

LEAVE A REPLY

Please enter your comment!
Please enter your name here