413 request entity too large wordpress

It's all about the Tech Work

413 request entity too large wordpress

413 request entity too large wordpress

 

 

Contact Support

When your Web server sets a particular HTTP request size limit, this indicates that the client has encountered a response that is too large for the 413 entity. This occurs when the request issued by the client is too large and can not be processed. by the web server. An example of a request that could cause this error if a client tries to download a large file to the server (such as a large media file).

This certainly depends on the type of web server you are currently working on, which determines which instructions to configure. Whether you want to prevent users from uploading large files to your web server or increasing the download size limit, the following section explains how.

What is the Cause of 413 Request Entity Too Large Error?

When a user tries to download a large file and media in WordPress. In response, the Web server then sends you an error indicating that the entity exceeds the maximum download limit. Generally, the WordPress hosting server has configured its server. In addition, the user can easily download large media and images in WordPress.

In addition, but in the case of downloading a theme and large plugins. This parameter does not work and creates a "413 Request Entity Too Large" error.

Method to Fix the Entity Too Large Error

Method 1: Increasing Upload File Size by Function File in cPanel

  1. Go to cPanel and open the file manager.
  2. Navigate to the WordPress theme folder (wp-content / themes).
  3. Next, select the functions.php file.
  4. Download the Function.php file
  5. Finally, open the file in your text editor.
  6. Scroll down the file and look for the line:
  7. Finally, add the code before.
  • @ini_set ('upload_max_size', '64M');
  • @ini_set ('post_max_size', '64M');
  • @ini_set ('max_execution_time', '300');

Method 2: By Increasing Upload File Size with .htacces File

Another way to eliminate this error is to edit your .htacces file.

  1. Download the .htaccess file from cPanel.
  2. Find the #FIN WordPress line in the file and add the code after it.
  • php_value upload_max_filesize 64M
  • php_value post_max_size 64M
  • php_value max_execution_time 300
  • php_value max_input_time 300

Method 3: Edit the Upload File Size using the php.ini File

If you still encounter the same problem using the method above. Then you should edit your php.ini file in the root directory.

  1. First, go to the Mamp, Xampp and Wamp folders.
  2. Then open the php.ini file and add the code.
  • upload_max_filesize = 64M
  • post_max_size = 64M
  • max_execution_time = 300

Method 4: Manually Upload the File via FTP

Sometimes, if you download a large plugin or theme, the large error entity appears on the screen. So for that, download the plugin and the big theme via FTP.

  1. First, download the zip file of the plugin and the theme.
  2. Extracting the zip file will create a new folder with the same name.
  3. Now manually download this folder to the website via FTP.

For the download of plugins:

Go to the path / wp-content / plugins / and download the folder extracted from the zip file.

For download themes:

Navigate to the path / wp-content / themes / and download the extracted folder from the zip file.

That's all hope this article will help you know how to fix the 413 Query Entity Error Too Big in WordPress.

Bitnami