How to Fix the 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.

how to fix the 413 request entity too large error in wp

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 WordPress hosting file limit size varies for uploads but you can upload any size of file using FTP clients.

Fix 413 Request Entity Too Large Error

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

  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 you can easily upload any size of files using FTP client such as FileZilla.

If you are trying to upload themes in your website then you can see this guide on how to upload themes manually.

If you are trying to upload plugins in your website you can check this guide on how to install plugins manually.

We hope this tutorial on how to fix the 413 request entity too large error 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

avatar
  Subscribe  
Notify of