Large Error

How to Fix WordPress 413 Request Entity Too Large Error

If you face a 413 Request Entity Too Large error, the most likely reason is that you are trying to upload a file whose size is higher than the maximum file upload limit on your site. The most common occurrence of WordPress 413 Request Entity error during plugin or theme upload.

Each web hosting company configures its server in a specific file upload limit, and when the server detects a large file, this error page displays.

In certain cases, you might need to upload a file that exceeds the size limit, and you will, unfortunately, face the 413 error.

In order to maintain a healthy environment, the installation of this type of file upload limit is necessary. No one WordPress Support company wants its users to dry up server resources.

And as you know, most of the WordPress users have shared web hosting, and one user can influence another’s performance. The server imposes some limitations to avoid any bad situation.

What is 413 Request Entity Too Large Error?

The 413 request entity too large error occurs when you try to upload a file for your server. Typically, hosting providers have specific configurations on their server to upload media on WordPress. In most cases, default settings are more than enough for your post.

It depends on the type of web server you are using, which will determine which instructions you need to configure. Whether you want to prevent users from uploading too large files to your web server or increasing the size of the upload size, the following section will explain how

Large Error

Causes – WordPress 413 Request Entity Too Large Error Occur

Typically, this error encounter when you are trying to upload a file that exceeds the maximum file upload limit on your WordPress site.

Your web server will fail to upload the file, and you will see a 413 Request Entity too large error page.

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

However, sometimes this setting is not enough to upload large themes or plugin files.

It also prevents uploading large files in the media library. In that case, you will see a different message, clearly saying that the file size exceeds the maximum permissible limit.

That being said, let’s see how the WordPress 413 request unit can fix a huge error.

Large error

How to fix it?

To solve the problem, you can increase the size of your site’s maximum upload file. There are many ways available to get this – let’s take a look at each.

Increase the size of your maximum upload file using the dashboard

The recommended way to increase the size of your site’s maximum upload file is through the cPanel dashboard. Log in to your account and go to Software> Select the PHP version.

Click the switch button on the PHP option.

To modify their prices, click the following item in the list:

  • upload_max_size
  • post_max_size
  • Max_execution_time

Save modified settings, then try uploading your file again. If the error reoccurs, so in the PHP option increases the values.

Increase the size of your maximum upload file using functions.php

Alternatively, a simple tweak for the function of your subject. Pp file may be all necessary to change file size limits. Using an FTP client or cPanel file manager, navigate to your WordPress theme folder (wp-content / themes) and open the function for editing.

Add the following code – You can modify the values ​​for each line as needed.

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

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

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

Save the file, then try uploading your file once. If the error reoccurs, increase the values ​​in the functions. Php file.

That’s All!

Leave a Reply