When your Web server sets a particular HTTP request size limit, this indicates that the client has encountered a response that is too large for the 413 entity. This occurs when the request issued by the client is too large and can not be processed. by the web server. An example of a request that could cause this error if a client tries to download a large file to the server (such as a large media file).
This certainly depends on the type of web server you are currently working on, which determines which instructions to configure. Whether you want to prevent users from uploading large files to your web server or increasing the download size limit, the following section explains how.
When a user tries to download a large file and media in WordPress. In response, the Web server then sends you an error indicating that the entity exceeds the maximum download limit. Generally, the WordPress hosting server has configured its server. In addition, the user can easily download large media and images in WordPress.
In addition, but in the case of downloading a theme and large plugins. This parameter does not work and creates a "413 Request Entity Too Large" error.
Method 1: Increasing Upload File Size by Function File in cPanel
- Go to cPanel and open the file manager.
- Navigate to the WordPress theme folder (wp-content / themes).
- Next, select the functions.php file.
- Download the Function.php file
- Finally, open the file in your text editor.
- Scroll down the file and look for the line:
- Finally, add the code before.
- @ini_set ('upload_max_size', '64M');
- @ini_set ('post_max_size', '64M');
- @ini_set ('max_execution_time', '300');
Method 2: By Increasing Upload File Size with .htacces File
Another way to eliminate this error is to edit your .htacces file.
- Download the .htaccess file from cPanel.
- Find the #FIN WordPress line in the file and add the code after it.
- php_value upload_max_filesize 64M
- php_value post_max_size 64M
- php_value max_execution_time 300
- php_value max_input_time 300
Method 3: Edit the Upload File Size using the php.ini File
If you still encounter the same problem using the method above. Then you should edit your php.ini file in the root directory.
- First, go to the Mamp, Xampp and Wamp folders.
- Then open the php.ini file and add the code.
- upload_max_filesize = 64M
- post_max_size = 64M
- max_execution_time = 300
Method 4: Manually Upload the File via FTP
Sometimes, if you download a large plugin or theme, the large error entity appears on the screen. So for that, download the plugin and the big theme via FTP.
- First, download the zip file of the plugin and the theme.
- Extracting the zip file will create a new folder with the same name.
- Now manually download this folder to the website via FTP.
For the download of plugins:
Go to the path / wp-content / plugins / and download the folder extracted from the zip file.
For download themes:
Navigate to the path / wp-content / themes / and download the extracted folder from the zip file.
That's all hope this article will help you know how to fix the 413 Query Entity Error Too Big in WordPress.