How to fix the 413 request entity too large error in WordPress

How to fix the 413 request entity too large error in WordPress

Are you facing the 413 request entity too large error in WordPress and looking for a solution to fix it? Here in this article, we will provide an easy solution to fix this type of error in your WordPress website.

The “413 request entity too large” error message in WordPress is caused when you reach the limit of your file upload. The limit is generally set up by web hosts but should be big enough for most media files. The issue is when you try to upload a plugin or theme file directly to your website.
When you choose a hosting provider it will configure your server to upload files but sometimes for large files, it won’t be able to upload for this configuration. It shows you an error message when you try to upload large files in your media library.
413 request entity too large error in WordPress

Fix the 413 request entity too large error in WordPress

There are different ways to fix the 413 error in your WordPress website. To solve this error you need to increase the limit of your file upload size.

Increase upload file size limit via .htacces file

You can easily increase the upload file size limit by editing the .htaccess file. You just need to add some code to this file. Add the following code snippets at the end of the file and save the 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

Increase upload file size limit via function.php

Another easiest and quickest way to limit upload file size limit is to edit the function.php file. Add the following code in your function.php file.

@ini_set( 'upload_max_size' , '64M' );

@ini_set( 'post_max_size', '64M');

@ini_set( 'max_execution_time', '300' );

Upload file via FTP

If you just need to add only one big file to your website then you can just add the file manually via FTP. Connect your website with an FTP client and your files like themes or plugins or other media files using the FTP client.

Wrapping up

Following the process, you will be able to fix the  413 request entity too large error in WordPress. You can see our other articles to learn How to fix the password reset key error in WordPress

How to fix error too many redirects issues in WordPress

How to fix the “This site is experiencing technical difficulties” error in WordPress

We hope this article will help you. If you like this article please like our Facebook page to stay connected.