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.

0


source to share


6 answers


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

+2


source


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' );

      

+1


source


Try uploading the image via File-Zilla or other ftp solutions instead of the built-in utility?

just a suggestion.

0


source


I faced the same problem. The problem was the Wordfence plugin firewall. I put it in "learning mode" and the download worked fine.

0


source


Doesn't work for me My solution (for CentOS and PHP in FastCGI mode):

1) Open /etc/httpd/conf.d/fcgid.conf

2) Add or change values ​​for the following parameters:

FcgidConnectTimeout 20
MaxRequestLen 64000000
FcgidMaxRequestLen 64000000

      

3) restart apache

apachectl restart

      

0


source


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.

0


source







All Articles