After upgrading to WordPress 4.4, any images we upload using Add Media appear as broken in the Media Library.

We're using HTTP, not HTTPS.

I have tried:

  1. Chmodding to 744 /wp-content/uploads/ and all subdirectories.
  2. Chmodding to 755 /wp-content/uploads/ and all subdirectories.
  3. Chmodding to 644 all files in /wp-content/uploads/.
  4. De-activating all plugins and switching to TwentyThirteen theme.
  5. Adding the following code to the child theme's functions.php:

    add_filter( 'wp_get_attachment_image_attributes', function( $attr ) {
        if ( isset( $attr['sizes'] ) ) unset( $attr['sizes'] );
        if ( isset( $attr['srcset'] ) ) unset( $attr['srcset'] );
        return $attr;
    }, PHP_INT_MAX );
    add_filter( 'wp_calculate_image_sizes', '__return_false', PHP_INT_MAX );
    add_filter( 'wp_calculate_image_srcset', '__return_false', PHP_INT_MAX );
    remove_filter( 'the_content', 'wp_make_content_images_responsive' );


  1. How to Fix Image Upload Issue in WordPress
  2. after upgrade to 4.4 media files are not showing

The issue remains.

An example image that appears broken is: http://www.arcadenightclub.com.au/wp-content/uploads/2015/12/Xmas-Festivus-Arcade-Nightclub.jpg

  • "Can't upload" and "apear broken" are two hugely different things so please clarify which is the actuall problem, with relevvant error message and image urls if applicable – Mark Kaplun Dec 16 '15 at 4:31
  • The code snippet in part 5. actually comes from my answer here. It looks like your site has currently problems connecting to the database. – birgire Dec 22 '15 at 0:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.