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?

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' );
}
  • 1
    Please explain how it works and why it should help the OP. Thanks. – kaiser Mar 21 '16 at 16:26
  • I found the solution here but I don't know how it works. It did for me :) link – ricardocouto Mar 23 '16 at 14:47

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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