Support » Fixing WordPress » Can't upload jpg in media

  • Resolved peterphonic

    (@peterphonic)


    Current config:
    WP Version : 4.5.2 :
    PHP 5.5/MySQL ? :
    Plugins : iTheme Security, Akismet, Contact Form 7, Instagram Slider Widget, iThemes Security, Jetpack by WordPress.com, LayerSlider WP, Master Slider Pro, Visual Composer Pricing Boxes, WPBakery Visual Composer :
    Theme: The Moon :
    Host : eHost.com :
    Problem description :

    Image upload in my media doesn’t work correctly. When I try to add JPG image, I get the error “HTTP error”. On the other hand, it is working really well with PNG image. There is something else strange : If I try to add test.jpg, I got an error but when I browse to wp-content/uploads with cPanel, I can see various test.jpg files (but not the one with the original size), but I can’t see test.jpg in my media files.

    I strongly suspect the problem is coming from one of the plug-in coming with The Moon. Indeed, when I switch The Moon with a default theme, I then can add jpg without problem.

    Any idea how to resolve this problem?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try disabling all plugins, then test uploading a .jpg and after each try, activate one and only one plugin.

    When you get to the point where you cannot upload a .jpg, the culprit is the last plugin activated. It could be that the responsible plugin may just have a conflict with one of the other plugins, you can test that by deactivating each of the *other* plugins, not the suspected culprit, in turn and testing after each one is deactivated.

    When you’re sure of the problem-causing plugin, post in that plugin author’s forum, or the theme developer’s forum.

    Good luck!

    Thread Starter peterphonic

    (@peterphonic)

    Solved the problem, I added this in function.php of my theme :

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

    Excellent! Glad you solved it, and thank you for posting your solution – no doubt it will help others. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't upload jpg in media’ is closed to new replies.