Loading Image HTTP Error Wordpress
When I upload an image in Wordpress, I get an HTTP error. Even though the images are uploaded to the upload.Yet folder, it shows an error.
I tried with .htaccess .. SecFilterEngine Off SecFilterScanPOST Off .. but did not work.I also tried with permission for the uploads folder issue. I have no error in debug.log only a few of the PHP notes I have wordpress 3.3, windows with apache server.
source to share
Just try to add below code theme's functions.php file:
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
for more options to resolve this issue please follow this link HOW TO RETRIEVE HTTP ERROR WHEN UPLOADING IMAGES
source to share
Installing the "GD Default" plugin, which "Sets GD as the default WP_Image_Editor class".
Plugin is available (here): https://github.com/getsource/default-to-gd/blob/master/default-to-gd.php
It has the function:
<?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' );
source to share
I am using Ubuntu and was unable to upload images ( http error
) to a WordPress site on my localhost. In my case, I tried to load into meida via explorer (without dragging and dropping) and saw that I could not access this location (on my external hard drive).
So I copied the file to my desktop and was able to download it without any problem.
source to share