413 Request Entity Too Large Error in WordPress

Are you encountering 413 request entity too large error in your WordPress blog? If WordPress is unable to handle the request while uploading large files from the dashboard then you will face this error. It means your file upload limit size has exceeded than the default limit size sets in your web server. In this tutorial you will learn how to fix the 413 request entity too large error in WordPress.

413 request entity error

Cause of 413 Request Entity Too Large Error

The main cause of this error is file limit size set for the file upload in the web server. Depending on the Website hosting file limit size varies for uploads but you can upload any size of file using FTP clients.

413 Request Entity Too Large Error in WordPress

How to Fix this Error?

You can fix this error easily increasing file upload limit in the web server. You can use any one of this method below to fix 413 Request entity too large issue.

Fix 413 Request Entity Too Large Error in WordPress

  1. Increase File Upload Size in function.php

  2. Increase File Upload Size in .htaccess file

  3. Upload Files Manually Using FTP Client

1. Increase File Upload Size in function.php

You can increase the file upload size easily adding few lines of code in function.php file. You can set the file size to required value in upload max size and post max size below.

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

2. Increase File Upload Size in .htaccess File

You can also increase the file upload size adding below line of code in .htaccess file.

php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300

3. Upload Files Manually Using FTP Client

If you are unable to upload files such as plugins or themes from your WordPress dashboard then need to upload the files of any size using FTP client such as FileZilla.

To upload the themes manually in your website, you can see this guide on how to upload themes manually.

And if you wan to upload the plugins in your website you can refer to this guide on how to install plugins manually.

We hope this tutorial on how to fix the 413 request entity too large issue in WordPress is helpful. If you find this guide helpful do not hesitate to share and follow on facebook and twitter.

You may also like...

Leave a Reply