• Resolved thefitrv

    (@thefitrv)


    First – this is NOT A BITDEFENDER ISSUE. Don’t have it. Don’t use it. Never have.

    In the back end of my site only, some featured images do not display. Not all of them, but it is the same images consistently, even after downloading, re-uploading, etc.
    Featured images are working fine in the front end, thankfully.

    All was well – naturally – before today’s update.
    In the back end, featured images that work, have URLs that look like this:
    https://www.mysite.com/wp-content/uploads/2015/11/Thanksgiving-640x492.jpg

    Images that Don’t Work have URLs that look like this:
    https://www.mysite.com/wp-admin/media-upload.php?post_id=5777&type=image&TB_iframe=1

    In the front end, thankfully, they all have URLs like this:
    https://www.mysite.com/wp-content/uploads/2015/11/Thanksgiving-640x492.jpg

    I can’t determine any logic between which featured images it will display properly, vs whatever-that-other-junk-is.

    Going to try downgrading to see if that fixes things.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter thefitrv

    (@thefitrv)

    Downgraded to 4.3.1 and I can now see all the featured images.

    When will the 4.4 cake be finished baking?

    I don’t know if this helps or not, but there is some discussion about issues with SSL in 4.4. A discussion is here:

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

    There is talk of a 4.4.1 update in that thread, which changes something with SSL. You mentioned some images work fine with https so I’m not sure if that’s it or not.

    – Scott

    Thread Starter thefitrv

    (@thefitrv)

    Thanks, Scott. Yes, some of them (and consistently the same ones) work fine with https through the back end, and some (also consistently the same) do not.

    Hopefully, this gets fixed soon. I generally do try to keep current, and it’s been a pretty smooth ride thus far.

    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');

    add to your functions.php and all will be well (disables WP 4.4 responsive images feature)

    I’m experiencing the same exact problem on a site I’m working on. The featured images are still linked in the back end, but when I view a post (custom or otherwise) that has a featured image, I just see “Set Featured Image,” and if I try to re-link the featured image, once I close the media manager, nothing happens on the post page. The “Featured Image” box still says “Set Featured Image,” and if I save the post, the link between that post and the featured image is broken.

    I’ll probably downgrade at some point here, but here’s to hoping there’s something simple to fix in WP instead.

    sdk, I tried your code—didn’t work for me.

    Thread Starter thefitrv

    (@thefitrv)

    Floregonian – thanks for that. I had it on my list to try sdk’s code. Won’t bother now.

    Hopefully, this gets fixed.

    i grabbed it from somewhere – my issue was related to HTTPS, not sure if that’s the case on your end…

    @sdk, I’m sure it does exactly what it’s supposed to do—it’s just that turning off the responsive images feature didn’t solve the problem I had. I was glad to have something to try!

    @thefitrv, I rolled my site back to 4.2.5 and everything works again. Interestingly, neither 4.3 nor 4.3.1 worked for me, either. I need to figure out what’s going on, though. Don’t want to have a site stuck in 2015 forever.

    Just checking to see if anyone has an update on this issue. I’ve noticed that the broken featured image glitch on the backend only happens when using Chrome and Firefox. The issue does not occur with Safari and IE.

    Thread Starter thefitrv

    (@thefitrv)

    Has anyone tried the new 4.4.1 to see if it still has the problem?
    (I’m not too anxious to be the first.)

    @thefitrv I just installed the 4.4.1 last night and it did “not” fix the issue on the backend featured image. We’ve also noticed issues on future posts regarding HTTP and HTTPS mixed content for anyone viewing the page (on the front end) as HTTPS (how and why some people are viewing HTTPS is still a mystery since that’s not shared or set as a default).
    It seems to be a combined issue of wordpress using mixed content on a SSL connection and “certain” web browsers handling that differently. We could always remove the cert since we changed our log-in access to internal (IP access restriction) only and no secure content is shared on the front end on any page for those browsing. We’re looking at our options.

    Very frustrating, let me know if you have any luck.
    Thank you

    Thread Starter thefitrv

    (@thefitrv)

    Shot in the dark here, but I was also experiencing a problem with another plugin. Turns out that was a PHP version issue.

    For those having the problem, what PHP version are you using? Is anyone using 5.6?

    I have the problem with wordpress 4.4.1 and php 5.4.43. Yes we are using https. No on bitdefender (It was fine under 4.3.1) The featured image field in the admin shows a grid checkerboard gray square with the title of the featured image on top.

    On Other site: 4.4.1 Under Php 5.6 it actually works better. I see the featured image on top of the checkerboard gray square. No https use on this site though.

    Thread Starter thefitrv

    (@thefitrv)

    Another question for those having the issue.
    Are you using Cloudflare and the Cloudflare plugin?
    There is a “protocol rewriting” option and I’m wondering if it could be part of the problem.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Featured Images Broken in Back End after 4.4 Update’ is closed to new replies.