HTTP Error – WordPress Media Upload/Image Upload

At least few of the WordPress users might be familiar with this error “HTTP Error ” on WordPress admin area while uploading Images to Media library. It’s a known issue and I am going to give you the simplest way to resolve this error.

Http-error-wp

The error is mainly due to the usage of Imagemagick as the default Image editor. So this can be easily fixed by switching the default image editor to GD.
For this, we will have to create a plugin manually from your cPanel and enable it from WordPress admin area. The steps are as follows;

  1. Go to your “plugin” folder of your wordpress installation through your cPanel FileManager or FTP. “yourdomain.in/wp-content/plugins/
  2. Create a folder “default-to-gd
  3. Get into the folder and create a file called “default-to-gd.php” inside the folder.
  4. Paste the following lines of codes into the file and “Save” it. The following codes will set GD as your default Image Editor instead of Imagemagick.
    <?php
    /*
    Plugin Name: Default to GD
    Plugin URI: http://wordpress.org/extend/plugins/default-to-gd
    Description: Sets GD as default WP_Image_Editor class.
    Author: Mike Schroder
    Version: 1.0
    Author URI: http://www.getsource.net/
    */
    
    function ms_image_editor_default_to_gd( $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', 'ms_image_editor_default_to_gd' );
  5. We have created the required files for the Plugin and now login to your WordPress admin area and Go to “Plugins Or Manage Plugins“.
  6. You should see a plugin called “Default to GD” that we have created from File Manager just now. Click on “Activate the Plugin” and activate it.

Your default image editor has now been changed to GD once you activated the plugin perfectly. Try uploading your Images to your Media now, it should work.

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , | Posted under WordPress | RSS 2.0

Leave a Reply

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


9 + = 14

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>