How To Fix ‘413 Request Entity Too Large’ WordPress Error
/ / How To Fix ‘413 Request Entity Too Large’ WordPress Error

How To Fix ‘413 Request Entity Too Large’ WordPress Error

Some of the links in this post are affiliate links. This means if you click on the link and purchase the item, We will receive an affiliate commission at no extra cost to you. All opinions remain our own.

Did you come via the annoying ‘413 Request Entity Too Large’ error whereas attempting to add a theme or a plugin file using your WordPress dashboard? Don’t worry, you’re not alone.

This error is pretty widespread amongst WordPress users who use cheap shared hosting plans to host their websites. In this data, we’ll current you with ideas on how one can restore this case by yourself using a few completely totally different methods.

What Is ‘413 Request Entity Too Large Error?

The ‘413 Request Entity Too Large’ error usually occurs in WordPress every time you’re attempting to add recordsdata similar to themes and plugins with greater sizes than the utmost add measurement limits set for WordPress.

To avoid excessive utilization, your web hosting provider models restrict the sizes of recordsdata you'll add and the time your website is allowed to execute PHP scripts. Errors like  ‘413 Request Entity Too Large’ occur every time you try to add recordsdata or execute scripts previous to these default limits.

While these limits are set to your private good, they might properly normally get in the best way in which of your website enhancement. In such circumstances, you'll take points to your private arms and restore them.

How To Fix It

You can restore this error by merely rising the max add measurement limits set for WordPress. Or, you'll avoid the error altogether via the use of an FTP client app to add greater recordsdata.

We’ll current you methods these choices work.

Method 1: Use An FTP Client App

WordPress is software that comes with positive limitations. After all, it’s solely a content management system. You need to make use of further superior devices for performing heavy duties like importing huge recordsdata.

An FTP client app is the proper gadget it's essential to use for importing greater recordsdata into your website and server. FileZilla and WinSCP are every great free FTP apps it's essential to use to enter your server.

ftp-client-app

Download and arrange the software on your laptop computer. Then use the FTP app to log in to your server using the muse entry username and password given to you by your web hosting provider.

To add themes and plugins, navigate to the WP-Content folder using your FTP app and simply drag and drop the recordsdata straight into the Themes or Plugins folder.

With this technique, you gained’t be restricted by any additional measurement limits.

Method 2: Use CPanel PHP INI Editor

Of course, using an FTP client gained’t restore the problem. Especially in case your site is managed by several authors, they might in the end run into a similar error. You can restore this by rising the default add measurement limits on your website.

One of the best strategies to increase your website’s max add measurement limit is to create a PHP.ini file in your server with personalized parameters that stretch the default limits set by WordPress.

To try this, usually, it is necessary to enter server recordsdata and create the PHP.ini file manually. We’ll current you with a simpler technique to technique this process.

If you’re using a shared or a managed WordPress hosting service, you then definately’ll have entry to CPanel. On your CPanel, you’ll uncover an app known as PHP INI Editor beneath the Software class. This gadget means that you may merely create and edit your PHP.ini file. Here’s the best way it really works.

Step 1: Access CPanel

You can enter your website’s CPanel by logging in to your web hosting account. Or, merely type CPanel on the end of your space title (eg: yourwebsite.com/cpanel).

Enter the CPanel username and password given to you by your web hosting provider to log in to the CPanel. These login particulars are usually included in the welcome email that you just acquire after signing up for a hosting account.

Step 2: Open PHP INI Editor

php-editor-1

Find the PHP INI Editor in your CPanel. It may be found in the Softwares half of the CPanel.

Then open the app and choose your website from the itemizing as to the location.

Step 3: Customize The Parameters

php-editor-2

In the PHP INI Editor, you’ll uncover all of the default parameters set on your account. Find the subsequent parameters in your editor:

upload_max_filesize
post_max_size
max_execution_time

Edit the values for these parameters by setting 64M for every upload_max_filesize and post_max_size. Set 300 for the max_execution_time parameter.

Remember to click on Save while you’re completed modifying.

Note: Your CPanel may look barely completely totally different from the one confirmed in the screenshots. Some of the parameter names may also be barely completely totally different in your PHP INI Editor.

Method 3: Edit .htaccess File

If customizing the parameters in the PHP.ini file didn’t work, you'll try modifying the .htaccess file using a similar technique. Although, this requires modifying the file manually.

Step 1: Access Your Server

To search out the .htaccess file, you may need to first enter the website recordsdata hosted on your server. You can enter your server using an FTP client app or using the CPanel.

file-manager

Follow the instructions we’ve provided in the sooner methods to enter your server. To enter your server recordsdata in CPanel, use the File Manager app.

Step 3: Find And Edit .htaccess File

Once you’re contained in the server, navigate to the public.html folder.

edit-htaccess-1

In this folder, you’ll uncover a file named .htaccess. Right-click on this file and choose Edit to customize the file.

Note: Always create a backup copy of the recordsdata sooner than modifying.

Step 3: Copy And Paste The Parameters

edit-htaccess-2

Copy the subsequent parameters and paste them on the end of your .htaccess file.

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Click Save to keep away from losing the changes.

This will set personalized values on your max add measurement and execution time limits, allowing you to add recordsdata of greater sizes.

In Conclusion

These methods must make it simpler to resolve the error. Remember to not perform all these methods all of a sudden. Try one reply at a time.

If you’re nonetheless encountering the error after following the above choices, then the probabilities are you may have to contact your hosting provider and ask for his or her support because it may be a server-side scenario. Or ponder transferring your website to a greater managed WordPress hosting platform.