WordPress 413 request entity too large

New Page

How to Fix 413 Request Entity Too Large Error in WordPress

Last updated on February 7, 2018 by the editorial team | Reader Disclosure Disclosure : Our content is reader approved. This means that if you click on some of our links, we may earn a commission. Find out how WPBeginner is funded, why it matters, and how you can support us.

Share 110 Share Tweeter Share Facebook Messenger WhatsApp E-mail

Do you see the 413 request entity too large error in WordPress? This error usually occurs when trying to upload a WordPress theme or plugin file. In this article, we will show you how to easily fix error 413: Request Entity Too Large in WordPress.

WordPress error 413: Request entity too large WordPress Error 413 - Request Entity Too Large

What Causes the WordPress 413 Request Entity Too Large Error?

This error usually occurs when you try to upload a file that exceeds the maximum file upload limit on your WordPress site.

Your web server will not be able to load the file and you will see the 413 request entity too large error page.

Example of request entity too large error 413 Example of request entity too large error 413

Typically, most WordPress hosting companies have their servers set up so that WordPress users can easily upload large images and other media.

However, sometimes this setting is not high enough to load large plugin or theme files.

It would also prevent you from uploading large files to the media library. In this case, you will see a different message clearly indicating that the file size exceeds the maximum allowed limit.

File size exceeds maximum upload size limit File size exceeds maximum upload size limit

That being said, let’s take a look at how to fix the WordPress 413 request entity too large error.

Fixing 413 Request Entity Too Large Error in WordPress

There are several ways to fix the request entity too large error in WordPress. We will cover all of these methods and you can try the one that works best for you.

Method 1. Increase upload file size limit via functions file

Simply add the following code to the functions.php file of your theme or site-specific plugin.

1

of them

3

@ini_set(‘upload_max_size’, ’64M’);

@ini_set(‘post_max_size’, ’64M’);

@ini_set(‘max_execution_time’, ‘300’);

You can increase the values ​​in upload_max_size and post_max_size to be larger than the file you are trying to upload. You should also increase max_execution_time to the time you think the file will take to load. If you are unsure, you can try doubling this value.

Method 2. Increase upload file size limit via .htaccess file

For this method, you will need to edit the .htaccess file and add the following code at the bottom:

1

of them

3

4

php_value upload_max_filesize 64M

php_value post_max_size 64M

php_value max_execution_time 300

php_value max_input_time 300

For more information on how to increase the file upload size limit, see our guide on how to increase the maximum file upload size in WordPress.

Method 3. Manually upload the file via FTP

If the 413 error only occurs when you upload a particular file, you might consider manually uploading the file via FTP.

If you are trying to upload a WordPress theme, see our guide on how to install a WordPress theme and skip to the “Install a WordPress theme via FTP” section.

If you are trying to upload a plugin, please refer to our guide on how to install a WordPress plugin and go to the “Manually install a WordPress plugin using FTP” section.

For other files, see our guide on how to manually upload WordPress files via FTP.

We hope this article helped you learn how to fix WordPress request entity error 413 too large. You can also check out our list of the most common WordPress errors and how to fix them.

If you liked this article, please subscribe to our YouTube channel for WordPress tutorial videos. You can also find us on Twitter and Facebook.

Share 110 Share Tweeter Share Facebook Messenger WhatsApp E-mail

Google Google Ubersetzer

Google Translator from Google

Google Traduction


Video WordPress 413 request entity too large

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…