How to Fix the HTTP Image Upload Error in WordPress

When you upload image in your website, this bug can occurs. Today, i will show you how to fix the HTTP image upload error. First, we need know the cause of this problem.


  1. The cause the HTTP image upload error

There are many causes that WordPress can’t find exactly, so that being said the most important ‘s finding all solutions, it’s more usefull.

2. Solution for the HTTP image upload error

2.1 Your PHP values

I have tested many websites in a long time, the common cause is PHP memory limit. In this case you should contact to your hosting provider, require them to increase your PHP memory at least 128 MB.  My advice you should do yourself. it’s better for you  to increase other PHP values. I will show how to increase PHP values generally.

  • First you login your Cpanel account, go to your config.php to set again. You put this code in bottom the file:

  • You also edit in your PHP.ini file, If you have PHP.ini file

You increase your memory limit until you can upload your images well.

  • You can increase in your .htaccess file with the following code.  But with this way, some hosting don’t allow to increase PHP info generally so if your website occurs 500 error, is it a disaster? You need calm down and you go to again your php.ini to delete this code and you can continue to use code for your config file or PHP.ini file

2.2 Plugin conflict

  • You may have installed a plugin that’s causing this issue. Please proceed to disable one plugin at a time. Clear your cache and browser history and revisit media uploader to upload your image ( keep the pixel size small ) and see if you are successful.

2.3 Using .htaccess file

There is .htacccess file is important do you don’t edit code in this file, uses this file to manipulate how Apache (server) serves files from its root directory, and subdirectories.

An easy fix is be to add the following code in your .htacccess file



2.4 Changing  Image Editor Library 
This ‘s new method, you can add the following code in your function.php

$editors ) {

    $gd_editor = 'WP_Image_Editor_GD';
    $editors = array_diff( $editors, array( $gd_editor ) );
    array_unshift( $editors, $gd_editor );
    return $editors;
add_filter( 'wp_image_editors', 'wpb_image_editor_default_to_gd'

That’s all, hopefully this article helped you know how to Fix the HTTP Image Upload Error in WordPress. If you have any further questions for us, don’t hesitate to put it up in the comments. See you again in orther tutorials!

Leave a Reply

Your email address will not be published. Required fields are marked *