What it is and how to fix a 413 Request Entity Too Large error means your WordPress website can’t handle the size of a file you’re trying to upload. This usually happens when you’re uploading something large, like a theme, plugin, or a large media file, but your server has a file size limit. When this error appears, your upload fails. This can stop you from updating your site or adding new features. That’s why it’s essential to address the issue as soon as possible, ensuring everything runs smoothly.
VIDEO: How To Update WordPress Plugins In cPanel
TABLE OF CONTENTS
How to Fix a 413 Request Entity Too Large Error
Editing the functions.php File
If you need a quick way to resolve the 413 Request Entity Too Large error, you can edit your theme’s functions.php file. This helps increase the temporary file size limit. Here are the steps:
1. Log in to your WordPress dashboard.
2. Go to Appearance → Theme File Editor.
3. Select the functions.php file from the right-hand side.
4. Add this code at the bottom:
@ini_set( 'upload_max_size' , '256M' );
@ini_set( 'post_max_size', '256M');
@ini_set( 'max_execution_time', '300' );
5. Click Update File to save the changes.

This code increases the maximum file upload size to 256MB and the time limit to 300 seconds, which should be enough for most uploads. However, if you’re using a block theme (e.g., Twenty Twenty-Two), edit the functions.php file using Hosted.com®’s File Manager or FileZilla.
Note: This method is fast, but it’s only temporary. If you switch themes or update your theme, the changes may be lost. That’s why this fix is best for testing or quick uploads. For a long-term fix, use a child theme or change your server’s settings.
What to Do Next?
If modifying the functions.php file didn’t work, don’t worry. There are other ways to fix the error, including editing the .htaccess file, changing the php.ini file, or updating the server configuration if you’re using NGINX.
If you continue to experience issues, please contact our Support Team.
Additional Information
413 Request Entity Too Large Error Variations
The 413 Entity Too Large error can also show up as follows:
- HTTP Error 413
- 413 Request Entity Too Large
- 413 Payload Too Large
Common Causes of 413 WordPress Error
Here are some of the most common reasons:
- Your server upload limit is too low. Hosting servers set limits on file sizes.
- PHP settings are too strict. Limits like upload_max_filesize or post_max_size are too small.
- Your web server settings are blocking the upload. This could happen with Apache or NGINX servers.
- There may be plugin or theme issues. While rare, some plugins or custom themes could restrict uploads.
Knowing the reason helps you pick the right fix.
Tips to Prevent a 413 Error
To avoid the 413 Request Entity Too Large error, it’s a good idea to take a few simple steps before uploading anything to your WordPress site.
First, be aware of your hosting provider’s default limits. Every host sets a maximum file size for uploads. Some allow 8MB, while others support 64MB or more. If you’re unsure what your host allows, check your hosting control panel or ask their support team. Knowing these limits can help you plan your uploads better.
Next, always try to use optimized file sizes. If you’re uploading images, compress them before adding them to your site. For videos, consider using a streaming service and embedding the video instead. Keeping file sizes small not only helps avoid upload errors but also improves your site speed.
Finally, choose a host that lets you control PHP settings. Some web hosts make it easy to update values (upload_max_filesize or post_max_size) from the control panel. Others may require you to ask for assistance. Choosing a host that lets you make these changes on your own saves time and gives you more freedom to manage your site.
By following these tips, you’re less likely to run into upload errors and can keep your WordPress site running smoothly.