Website Help
HTTP Status Codes
How to Fix the '413 Entity Too Large' Error in WordPress

How to Fix the '413 Entity Too Large' Error in WordPress

The error ‘413 Entity Too Large’ is a common issue for WordPress websites that usually appears when you are trying to upload a file that exceeds the upload limits on your website.

In such cases, the file won’t be uploaded and you will see the 413 Request Entity Too Large error text.

Note that before modifying any website files, it’s best to do a backup of your website from Site Tools > Security > Backups.

How to Fix the ‘413 Entity Too Large’ Error in WordPress?

You can eliminate the 413 Entity Too Large error by increasing your website limits by adding different rules to your theme or custom plugin.
To do that, go to SiteGround Client Area > Websites > Site Tools next to the desired website and click Site > File Manager. Find the themes folder which should be located inside the wp-content folder > themes.

Screenshot showing how to find the wp-content folder from the File Manager

Then right-click on the file “functions.php” and select Edit. At the end of the file, add these lines:

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

Save the changes before closing the file using the Save button on the top.

Screenshot showing how to save the changes in the functions.php from the File Manager

How to Install Plugins or Themes Larger Than 256MB

In some cases, you may need to install a plugin or theme that exceeds the 256MB limit. This limit is set by the upload_max_filesize and post_max_size values in your server’s PHP settings.

It’s important to note that these values cannot be increased if you’re on a shared hosting plan. They can only be increased further on Cloud servers, and that too, only upon the client’s request.

Themes or plugins larger than 256MB should use the FTP (File Transfer Protocol) method. The FTP method allows you to bypass the file size limit by uploading the files directly to your server. This method involves manually uploading the plugin or theme files to your WordPress directory using an FTP client.

You can find detailed instructions on how to use FTP to upload and install your themes and plugins in the “How to install a WordPress theme using FTP?” section of our How to Install WordPress Themes tutorial.

How to Fix the ‘413 Entity Too Large’ Error in WordPress – Video Tutorial

413 Entity Too Large Name Variations

  • 413 Request Entity Too Large
  • Entity Too Large 413
  • HTTP Error 413
  • 413 Payload Too Large
  • Error 413
  • 413 Request Entity Too Big
  • HTTP Error Code: 413
  • Status Code 413
  • HTTP/1.1 413 Entity Too Large
  • HTTP Status 413 – Entity Too Large

These variations essentially convey the same meaning, indicating that the server cannot process the request due to its large size. This is a standard response for web servers and is part of the HTTP status code system used to communicate the state of requested resources.

Share This Article