Home
/
WordPress
/
How To Questions
/
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.

You can eliminate the error by increasing your website limits by adding the 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.

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' , '128M');
@ini_set( 'post_max_size', '128M');

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

You can also watch a video tutorial here:

Share This Article