Solved: How to fix WordPress HTTP Error while uploading video
When you are on fire to write something or updating website or blog, http error brings big headache. We Creed Hosting able to fix all the errors and issues of wordpress. This errors is most commonly caused by wrong file permissions or php file size.
The first two fixes did not work for me but have for some people.
- PHP Upload Size
I’m not alone. The two million plus hits returned by a quick Google search for the cause of this problem make it abundantly clear that this problem is common, and that there is neither a simple explanation why it occurs nor a single solution that prevents it from happening. Here is a summary of some of the “solutions” that have been proposed:
- Increase PHP memory:
Add this code
define('WP_MEMORY_LIMIT', '64M') into your wp-config.php file. This setting may not work if your host does not allow you to increase the PHP memory limit, so I suggest talking to your support directly and ask them to change the limit for you. You’ll skip the hassle.
- Disable mod_security
mod_security is an open source firewall that could be creating the HTTP image upload error. mod_security can be disabled by adding the code below to the .htaccess file on the server.
For more detailed information on how to edit the .htaccess file, check out this article.
Note that cPanel users can disable mod_security in the Security menu by selecting Modsec Manager and unchecking the box for the domains they wish to disable mod_security for.
- .Disable plugins:
If the problem appears after installing a plugin, deactivate it and try it again. Some plugins can trigger the error. Otherwise, the fastest way to determine if a plugin is creating an issue is to disable all plugins and see if the issue persists. If this resolves the issue, proceed with enabling them one by one to see which plugin caused the problem.
- Change php.ini and /or .htaccess settings:
Edit the value defined for php_value memory_limit,
php_value memory_limit 512M
Note that the .htaccess file is not a WordPress file. For more on editing the .htaccess file, check out this link.
php.ini: Edit the value defined for memory_limit,
memory_limit = 512M
The php.ini file is not a WordPress file. If you are unfamiliar with how to edit it, contact our support team.
- Install a newer version of php
This is the fix that did the trick for me. It basically involves modifying what version of PHP backend is responsible for processing your
.php files. The PHP backend should be changed from the FastCGI version to the non-FastCGI versions as described below.
- Change upload folder permissions
Upload directory file permission may cause this error. just change 755.