1

When uploading an image in WP with regular http, everything works fine.

When uploading an image with HTTPS I get an error that says - "HTTP error." in red.

Why is the HTTPS causing this problem? How do I fix it?

thank you!

Edit, uploading images with HTTPS in WP admin works but does not work via the theme/front-end? I guess this is a theme issue?

1 Answer 1

-1

Adding this to my theme's functions.php solved this same problem for me:

add_filter( 'wp_image_editors', 'change_graphic_lib' );

function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
2
  • 1
    Please explain how it works and why it should help the OP. Thanks.
    – kaiser
    Commented Mar 21, 2016 at 16:26
  • I found the solution here but I don't know how it works. It did for me :) link Commented Mar 23, 2016 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.