Top Rated SEO Tool - Special Deal  GO!
How To Fix “Request Entity Too Large” In WordPress

How To Fix “Request Entity Too Large” In WordPress

Last modified: February 4, 2020

FAQ
bluehost

A 413 error is usually seen when you’re attempting to upload a file that exceeds the upload size allowed by your WordPress site. Normally, WordPress hosting companies have servers configured to handle large files. However, sometimes this size is not high enough to upload large files for plugins/themes.

There are numerous ways to change this. These solutions are:

Solution One: Increase Upload File Size Limit Via Functions File

Using an FTP client, find your theme’s functions.php file. Right click on it and find the edit option. Then add this code to the file.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

You can change the values in the first two lines to be more than the file you’re uploading. You might also need to increase the max_execution_time if it could take awhile to upload.

When the changes are made, remember to save the file and ensure it is uploaded to your server.

Solution Two: Increase Upload File Size Limit Via .htaccess File

This option is great if you like to change your website’s theme a lot. It is similar in that you have to access your .htaccess file via a FTP client with the edit option.

Then find the code that relates to the max loading size and time and change it so it reads like the code below.

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Remember, you should always make sure that the filesize and time values exceed what you need. After you’ve finished, remember to save and upload the file back to your website’s server.

Solution Three: Manual Upload

You can also upload the files directly via FTP. You will need to upload the document into the right directory. This will depend on what you’re trying to upload. Plugins should be uploaded into the ‘plugins‘ folder and themes in the ‘theme‘ folder. These can be found in the WP-content folder.

You will still need to activate the item in your WordPress dashboard. But if the upload has been successful, you shouldn’t experience any difficulties.

Final Word: Increase The Capacity Of Your WordPress Site

This error is caused because the file you’re trying to upload is too big. You can’t break down the file, so you need to find a way to upload it. Use our three solutions above to ensure you can upload the necessary files to your WordPress website.

Save 4 Later
Email these links to yourself