WordPress image upload http error and imagemagick

Avatar
  • Answered
I have several add-on domains on my VPS account with WordPress installations and I can't upload image files to any of my WordPress media libraries without getting an http error. The only image I've been able to successfully upload was a .jpg that was 46kb in size. Anything larger and I get an http error. The problem seems to be with imagemagick. If I add the code below to the functions.php file of my WordPress installation, forcing the use of GD, image upload works fine.

add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}

Is there any way to fix this without having to edit each WordPress installation independently?
Avatar
Scott
Hello kobusaf, Sorry to hear you are having issues with your http error in Wordpress. We have discovered a plugin that usually works as well. It is named "Force Regenerate Thumbnails". You may want to try that as well. Unfortunately that also would be required on each instance. Kindest Regards, Scott M