How to Fix 413 Request Entity Too Large Error in WordPress (2023)

Themeisle content is free. If you make a purchase through referral links on our site, we earn a commission.Learn more

Looking for ways to fix "413 request entity is too large” Error on your WordPress website? 🤔

Or in some situations you may see this error as “413 The payload is too large."

In both cases, the HTTP error "413 Request Entity too large" appears when you try to upload a file that exceeds your server upload limit.

Since this is a server-level HTTP error, it is not specific to WordPress. However, many WordPress sites may encounter this error due to the configuration of their server.

The solution 🎯 to this problem is to upload smaller files or increase your web server's upload limit if possible. In emergency situations, you can also bypass the error by uploading the file via FTP.

👉 In this article, we will show you how to fix 413 Request Entity too large error by reducing the file size and/or increasing the upload limit of your WordPress site.

Let's begin.

📚 Table of Contents:

  1. Upload smaller files
  2. Upload the file via FTP instead
  3. Editor PHP. ini
  4. Edit the functions.php file
  5. Rediger .htaccess-fil
  6. Edit the nginx.conf file

How to fix 413 Request Entity for big error in #WordPress 🐛

What causes the 413 Request Entity Too Large error?

How to Fix 413 Request Entity Too Large Error in WordPress (1)

Each hosting server sets an upload limit, which is usually enough to upload a file to a WordPress site.

Some files, whether images, plugins or themes, are larger than your typical files and take up more disk space.

When you try to upload such files to your WordPress site, they exceed the upload limit and overload the server.

Then the server will show you the error "413 Request Entity too large".

The error itself provides further insight into the problem when broken down into the following parts: "413", "Request Entity" and "too large".

  • "413" refers to the 4xx HTTP errors, which are generally related to problems between a hosting server and the browser.
  • "Request Unit" refers to the request to the server.
  • And "too big" refers to the request being much larger than what the server can handle.

Fortunately, the error is easy to fix 😎 by reducing the file size or increasing the upload limit.

In the next section, we will show you how to fix the error and upload large files to your WordPress site. 👇

Sådan rettes 413 Request Entity Too Large Error

Below we present six different solutions to this problem. The first two solutions focus on working around the problem, while the last four solutions involve adjusting your server's settings to fix the problem permanently.

⚠ Before proceeding,make a backup copyYour entire site just in case.

In the following guide, go to the back end of your site and make changes to important WordPress files. It's a risky business. One misstep and you could end up with a broken website.

If something goes wrong, you can use the backup to get your website up and running in no time. So make a backup before diving into the solutions.

1. Upload smaller files

The simplest solution is to upload a small file to your WordPress website.

If you are uploading a picture, make sure to do soreduce sizewith tools likeLille PNGAndIMG2Go.

💡 Also uses an image optimization solution such asOptimolcan also help.

If you are uploading a plugin or theme, try to find an alternative plugin or theme that is packaged in a smaller size.

For many of you, it may not be possible to upload a smaller file. In this case, try the next solution.

2. Upload the file via FTP instead

Another way around this issue is to try uploading the file via FTP instead of doing it from your WordPress dashboard.

Depending on your server's configuration, this may or may not work. However, it is good to check for two reasons:

  1. If it works, you can upload the file to your server.
  2. If that doesn't work, you can be sure that it's a server-level problem rather than something wrong with WordPress itself.

You can upload plugins and themes directly to the appropriate folder.

You can upload media files directly to the appropriate pageUploadsRing binder. However, you need to use a plugin like Add from Server to register themWordPress media libraryif you want to access these files in the media library.

👉 For more information seeour complete WordPress FTP guide.

3. PHP.ini editor

The PHP.ini files control file transfer sizes, file timeouts, and resource limits. You can use this file to increase the upload limit of your WordPress site.

Here's how you do itcPanel- The steps at your host may be slightly different if your host does not offer cPanel.

Trin 1:Open your hosting account and go tocPaneland look for themPHP. ThisFil.

With some hosting providers, the file is located in the file manager. So if you can't find the PHP.ini file in cPanel, open the file manager in cPanel.

Trin 2:I amfile management, find the PHP.ini file in itpublic_htmlfolder or iFolder named after your website.

How to Fix 413 Request Entity Too Large Error in WordPress (2)

Trin 3:Right-click on the PHP.ini file and select itEdit. You should be able to see the following code:

max_execution_time (maximum upload time)upload_max_filesize (maximum upload size)post_max_size (maximum post size)

Trin 4:change itValuesto a number of your choice. And met themSave Changeskey before leaving.

Now open your WordPress dashboard and see if you can upload the file without encountering the error.

Do you need more help? ⌛ Then check out this guideChanging the PHP.ini file.

4. Edit the functions.php file

Thefunctions.phpFile is part of your design and determines how design works on your website. It also allows you to add new features to your website.

You can increase your website's upload limit via the functions.php file.

Although the function.php file can be accessed via the file manager, we do not recommend using it directly.

The function.php file is super important. So it is too risky to change it directly. Standard practice is to use a child theme or a free plugin as code snippets.

Creating a child themeis a time-consuming and difficult task. Therefore, we recommend using the plugin.

Step 1: Install and activate code snippetson your WordPress website.

Trin 2:In the left menu of your WordPress website you will find a new menu called Snippets. Go tocut outand selectAdd new.

Trin 3:Copy and paste the following code infunctionsSection:

@ini_set( "upload_max_size", "64M" );@ini_set( "post_max_size", "64M");@ini_set( "max_execution_time", "300" );

Be sureenter a titleand then pressSave to computerAndactivatePress before leaving the page.

If you still can't upload a large file to your site, try increasing the values ​​forupload_max_sizeAndpost_max_size.

How to Fix 413 Request Entity Too Large Error in WordPress (3)

5. Skift .htaccess file

If your WordPress site is hosted on an Apache server, you can increase the upload limit by modifying the .htaccess file. Here's how you do it:

Trin 1:Use a tool such asIlokationAnddnscheckerto ensure your servers are running on Apache.

Trin 2:Open your hosting account and go tocPanel → Dateimanager → public_html → .htaccess.

Right clickon .htaccess and then selectEdit.

Alternatively, you can connect to your server via FTP and edit the .htaccess file that way.

Trin 3:After thatcopy and pastethe following code at the end of the file:

php_value upload_max_filesize 64Mphp_value post_max_size 64Mphp_value max_execution_time 300php_value max_input_time 300

Save to computerfile before exiting and then try uploading large files to your wordpress site.

How to Fix 413 Request Entity Too Large Error in WordPress (4)

6. Edit the nginx.conf file

Apart from these, there is another method that involves the nginx.conf file that you need to use if your serverusing Nginx instead of Apache(because Nginx does not support .htaccess file). To implement this method, you must have advanced technical skills. So this method is best left to developers who know how to find the file and make changes to it.

The nginx.conf file contains a directive that looks like this:

server { ... client_max_body_size 18M;}

All you need to do is change the number to 64 million and see if you can upload large files to your site.

Go to the top

Fix 413 Request Entity too big error

It"413 request entity is too large"message, AKA"413 The payload is too large”, is a common HTTP error that can occur in WordPress.

How to fix 413 Request Entity for big error in #WordPress 🐛

It appears when you try to upload a large image, plugin or theme that exceeds your server's upload limits.

To overcome this obstacle, you can either reduce the file size or increase the server's upload limits.

To reduce the file size, you can use 🧩Image compression toolsor find small alternative plugins and themes.

To increase server upload limits, you can modify certain WordPress files such as PHP.ini, functions.php, .htaccess and nginx.conf.

📌 For more information about these error types, seeour complete guide to HTTP error codes.

That's it folks! 🤩 That brings us to the end of this tutorial.

Do you have questions about 413 Request Entity Too Big Error? So let us know in the comments section below.

FAQs

How to Fix 413 Request Entity Too Large Error in WordPress? ›

How to solve 413 Request Entity Too Large error. To solve this error, you simply need to increase the server resources whose limits lead to the error. Those are the file upload size and the maximum time allowed for executing PHP scripts.

How do I fix 413 content too large? ›

Fix 413 Request Entity Too Large Error — Modifying Upload Size
  1. Modify the Upload Size value (in Megabytes) to your preference.
  2. Finally, click Save Changes. Tip. If the file size you want to allow is greater than what we have set, adjust the Upload Size to be greater than the file size. Classic Interface. New Interface.

What is server error 413 Elementor? ›

How to solve 413 Request Entity Too Large error. To solve this error, you simply need to increase the server resources whose limits lead to the error. Those are the file upload size and the maximum time allowed for executing PHP scripts.

What is error 413 Request Entity Too large in WordPress? ›

What Is the “Error 413 Request Entity Too Large” Error? HTTP Error 413 indicates that the request made cannot be managed by the server, and this is because it involves a file or a block of data or, again, a group of files that are too large compared to the maximum limit that the server can manage.

What does HTTP Error 413 mean? ›

The 413 status code indicates that the request was larger than the server is able to handle, either due to physical constraints or to settings. Usually, this occurs when a file is sent using the POST method from a form, and the file is larger than the maximum size allowed in the server settings.

How do I fix error 413 in Chrome? ›

How to Fix the 413 Request Entity Too Large Error in WordPress?
  1. Fix 1: Upload Smaller Files. ...
  2. Fix 2: Upload the Large File to Server via SFTP. ...
  3. Fix 3: Modify PHP. ...
  4. Fix 1: Clear Browsing Data. ...
  5. Fix 2: Reset Chrome to Factory Default. ...
  6. Fix 3: Reset the Network Adapter.
Sep 27, 2022

How to solve the page cannot be displayed because an internal server error has occurred? ›

Description of HRESULT The page cannot be displayed because an internal server error has occurred. This problem occurs because a script mapping is not valid. Make sure that the script-mapping points to the ISAPI.

How do you resolve the requested page cannot be accessed because the related configuration data for the page is invalid? ›

The requested page cannot be accessed because the related configuration data for the page is invalid. This problem can occur if the specified portion of the IIS configuration file is locked at a higher configuration level. Unlock the specified section, or don't use it at the higher level.

How do I fix Elementor in WordPress? ›

7 Reliable Ways To Fix Elementor Editor Not Loading Errors
  1. Enable Switch Editor Loader.
  2. Check Other Plugin Conflicts.
  3. Update PHP Version & Increase PHP Memory Limit.
  4. Update Elementor Latest Version.
  5. Check .htaccess File.
  6. Increase Apache Service Limit.
  7. Change Your Current Theme.
Jan 26, 2022

Why am I getting a server error in Elementor? ›

These are a few of the most common: The website does not have enough memory – Elementor requires a minimum of 128MB of RAM to work correctly (if the website includes other plugins, we recommend 512MB). It is possible that the RAM assigned to the website is insufficient to satisfy its demands, resulting in a 500 error.

Why can't i load Elementor WordPress? ›

Update Elementor

It may be the case that Elementor is failing to load because you're using an outdated version of the plugin. Outdated plugins can cause conflicts with other tools or with the latest version of WordPress. If you see a notice about a newer version of Elementor, you'll need to run the necessary updates.

How do I change the size limit in WordPress? ›

Modify wp-config.php File

Open the file in any text editor and add the following code. @ini_set( 'upload_max_size' , '20M' ); @ini_set( 'post_max_size', '13M'); @ini_set( 'memory_limit', '15M' ); Save your changes, and it should increase your file upload size.

How do I set a file size limit in WordPress? ›

What Is the Maximum Upload Size in WordPress? Uploading large files to a server consumes a lot of the server's resources. To prevent users from causing server timeouts, the default maximum upload size in WordPress typically ranges from 4 MB to 128 MB. Usually, the hosting provider sets this limit at the server level.

How do I reduce request size in WordPress? ›

Reduce HTTP requests on your WordPress site
  1. Combine CSS & Javascript.
  2. Minify code (HTML, CSS, Javascript)
  3. Enable lazy load.
  4. Remove unneeded images.
  5. Reduce image file size.
  6. Disable unneeded plugins.
  7. Reduce external scripts.
  8. Use a CDN.
Nov 17, 2021

How do I fix error 413 Express? ›

To fix the “413 Request Entity Too Large” error in an Express application, you only have to update the server initialization file. This is generally called index. js or server. js and is where you initialize the Express server.

How do I fix error 413 in Nginx? ›

Fixing Error “413 Request Entity Too Large” in Nginx

As explained earlier, Nginx only accepts requests with a payload of less than MB. This restrictive limitation is the cause of the “413 Request Entity Too Large” error. To avoid this, you can simply set the client_max_body_size option to a larger value.

How do I reset my Chrome size? ›

Windows and Linux: Press F11. Mac: Press ⌘ + Ctrl + f. Chrome OS: At the top of your keyboard, press the full screen key.
...
Next to "Zoom," choose the zoom options you want:
  1. Make everything larger: Click Zoom in. .
  2. Make everything smaller: Click Zoom out. .
  3. Use full-screen mode: Click Full screen. .

How do I get rid of Chrome connection error? ›

How To Fix the “Your Connection Is Not Private” Error
  1. Try Reloading the Page.
  2. Manually Proceed (Unsafe)
  3. Are You in a Cafe or Airport?
  4. Check Your Computer's Clock.
  5. Try in Incognito Mode.
  6. Clear Browser Cache and Cookies.
  7. Try Clearing the SSL State on Your Computer.
  8. Change DNS Servers.
Mar 29, 2023

What is WordPress internal server error? ›

The 500 internal server error can appear on any site, not just WordPress sites. Mostly it is caused due to plugin or theme issues, but it may also occur due to exhausted PHP memory limit, corrupted files, or coding issues.

What are the troubleshooting steps we need to follow to fix a WordPress internal server error Godaddy? ›

Fix a WordPress internal server error
  1. Disable your . htaccess file. ...
  2. Increase your memory limits. ...
  3. Disable all your plugins. ...
  4. Re-upload WordPress core files. ...
  5. Switch to a default WordPress theme. ...
  6. More info.

How do I get rid of page not found error? ›

How to Fix the 404 Not Found Error
  1. Retry the web page by pressing F5, clicking/tapping the refresh/reload button, or trying the URL from the address bar again. ...
  2. Check for errors in the URL. ...
  3. Move up one directory level at a time in the URL until you find something. ...
  4. Search for the page from a popular search engine.
Dec 7, 2022

What are the troubleshooting steps we need to follow to fix a WordPress internal server error? ›

Let's take a look at ten tips you can use to fix this issue in WordPress.
  1. Back up your website.
  2. Try reloading the page.
  3. Clear your browser cache.
  4. Access your error logs.
  5. Check for the 'Error Establishing a Database Connection. '
  6. Look for permission errors.
  7. Increase your PHP memory limit.
  8. Check for problems with your .
Jan 14, 2021

How do I redirect to an error page in web config? ›

To configure the custom errors mode, perform the following:
  1. Open your web.config file.
  2. Inside the <system. web> section, change the <customErrors> tag in one of the following ways: <customErrors mode="Off" /> <customErrors mode="RemoteOnly" /> <customErrors mode="On" />
  3. Save and close the web. config .

What is the error message appeared when the server Cannot find the requested source? ›

What Causes the 404 Error Message? The 404 error not found means the browser has connected and sent the request to the web server. However, the latter can't find the requested resource. As a result, the browser can't load the web page, showing a 404 error.

How do I fix errors in WordPress? ›

Getting started with WordPress error troubleshooting

You can start by clearing your cache. A cache helps your browsers load sites faster by storing data. Clearing it helps you get rid of outdated content, which may be enough to fix your issue. You should also consider updating your theme, plugins, and WordPress core.

How to fix a problem with WordPress? ›

In this beginner's guide, we will show you how to troubleshoot WordPress errors, step by step.
  1. Research Your Error Message. ...
  2. Create a Complete Backup of Your WordPress Site. ...
  3. Clear Browser Cache. ...
  4. Clear Your WordPress Cache. ...
  5. Deactivate All Plugins Installed on Your Website. ...
  6. Switch to a Default WordPress Theme. ...
  7. Refresh Permalinks.
Apr 26, 2023

Why can't i edit my WordPress page with Elementor? ›

There may be a plugin which is causing this issue.

Try to deactivate all of your plugins (besides Elementor) and see if the Edit with Elementor link returns. If this solves the issue, reactivate each plugin, one by one, until the problem returns. This will help you discover which plugin is causing the problem.

How do I clear my Elementor server cache? ›

To clear the cache, simply go to Elementor >> Tools >> Clear Cache. We can also try checking in another browser, or in an incognito browser.

What is common Elementor error? ›

The most common list of Elementor errors includes the Elementor widgets panel not loading. Elementor widgets stop loading when you use a lot of plugins, multiple addons for elementor, or if there's limited PHP memory on the server. This is the users' most annoying problem, making the page builder unusable.

How do I increase my Elementor memory limit? ›

You can check your memory limit by navigating to wp-admin -> Elementor -> System Info. To increase your memory limit, you will have to modify the wp-config. php file of yours. Add this following line of code just above this line ” /* That's all, stop editing!

How do I get Elementor to work? ›

Step 1: From your dashboard, click Plugins > Add New. Step 2: In the search field, enter Elementor and locate Elementor Website Builder. Step 3: Click Install Now. After installation, click Activate.

Why can't I load my WordPress site? ›

One of the most common reasons for WordPress sites not loading is the Max Execution Time. You should increase your execution time limit after appropriately setting up or installing WordPress on your site. Without increasing, you'll most likely interrupt loading your website properly.

What is angular 413 payload too large? ›

As explained in MDN, the HTTP 413 Payload Too Large response status code indicates that the request entity performed by the client is larger than the limits defined by the server. As a result of this, the server might close the connection or return a Retry-After header field.

What is nginx 413 content too large? ›

Fixing Error “413 Request Entity Too Large” in Nginx

As explained earlier, Nginx only accepts requests with a payload of less than MB. This restrictive limitation is the cause of the “413 Request Entity Too Large” error. To avoid this, you can simply set the client_max_body_size option to a larger value.

How do I clear my browser cookies? ›

Clear all cookies
  1. On your Android device, open Chrome .
  2. At the top right, tap More. Settings.
  3. Tap Privacy and security. Clear browsing data.
  4. Choose a time range, like Last hour or All time.
  5. Check Cookies and site data and uncheck all other items.
  6. Tap Clear data. Clear.

What is 413 error in .NET core? ›

IIS has a limit for the size of the files users can upload to an application. If the file size exceeds the limit, the application will throw “Error in HTTP request, received HTTP status 413 (Request Entity Too Large)” error.

What is the maximum size of file upload in angular? ›

In the FileManager component, you can upload the files with default file size 30mb (default size). For example, minimum file size is 0 and maximum file size can be up to 30000000 bytes for uploading a file in the File Manager component.

What is the default payload size limit in Express? ›

Express applications that use the body-parser middleware have a default limit to the request body size that the application will handle. This default limit is 100kb. So, if your application receives a request with a body that exceeds this limit, the application will throw a “Error: Request entity too large”.

How to set maximum file upload size in Angular? ›

You can restrict the maximum allowed file size (in bytes) by using the maxFileSize property. If the selected file exceeds the maximum size, an error message will be displayed.

What is the default size of NGINX 413? ›

The default value is 1 MB.

How to increase maximum upload file size in WordPress NGINX? ›

Go to your WordPress Dashboard → Plugins → Add new, search “Increase Max Upload Filesize”, then Install and Activate the plugin. Once installed, go to plugin settings and simply enter the value for upload size. Click the Save Changes button to apply the new upload size.

What is the maximum URL size in NGINX? ›

In nginx, the maximum allowed URI length is defined by the large_client_header_buffers directive, which consists of two values: number and size of buffers. It defaults to 4 8k , which means Nginx caps each request line to 8 kilobytes.

References

Top Articles
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated: 12/09/2023

Views: 6627

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.