• hoy

    (@whereskarlo)


    Most thumbnails are broken on 4.4. I have confirmed this on two separate installs. In both cases disabling all plugins doesn’t help. Regenerating thumbnails doesn’t work. Repairing the database using WP_ALLOW_REPAIR doesn’t fix it. Are other people experiencing this? I have cleared all caches, restarted NGINX, turned off Varnish, restarted Apache, MySQL, turned off Memchached, nothing fixes this. How many other people are experiencing this? I also tried switching themes but it didn’t fix it either.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Hi all,

    For those running into this issue because you’re using SSL in the admin area but not on the front end of your site, you can paste the following code into a plugin or into your functions.php file to correct the issue:

    function fix_ssl_srcset( $sources ) {
      foreach ( $sources as &$source ) {
        $source['url'] = set_url_scheme( $source['url'] );
      }
    
      return $sources;
    }
    add_filter( 'wp_calculate_image_srcset', 'fix_ssl_srcset' );

    Thanks Joe … this worked.

    Hi all,

    Just an FYI, this issue has been fixed in WordPress 4.5. You can test the release candidate to see if it resolves things for you.

    See: https://core.trac.www.ads-software.com/ticket/34945

    Joe

    Thanks Joe! We have found the same error in WP 4.4.3 and we can fix it with your patch! ??
    Great also to read it’s fixed in WP 4.5.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Thumbnails broken after 4.4 Upgrade’ is closed to new replies.