• Resolved martinjacobson

    (@martinjacobson)


    Hello, I have three WordPress installations all on the same server (Lunarpages). I have tested this with vanilla themes and with no plugins loaded and the behavior is the same on all three WordPress installations. . Immediately upon update to 4.4, I have been unable to successfully add images to posts using the media library.

    When using the Media Library in Post or Admin locations, the Media Library is unable to load any images in the tiled images mode. It doesn’t appear to be a database problem since the images display correctly as long as they already exist in a post, I just can’t add new content.

    Any files which are uploaded can be shown if I switch to the list view in the Media Library admin pane, but unfortunately that doesn’t help, since I can’t use the list view when adding media to a post.

    Any help would be much appreciated.

    Some images of the problem:
    Media Library not loading in tile view

    Media Library loading in list view

Viewing 15 replies - 1 through 15 (of 44 total)
  • Hello. I have the exact same issue as Martin. It’s very bloody annoying. Can someone please saunter into the forum and enlighten us as to how to solve this stickler?

    Ditto, except I don’t get anything in the media library in either tile or list mode. The “loading” indicator simply spins.

    I have tried the suggestion from this thread: https://wordpress.org/support/topic/after-upgrade-to-44-media-files-are-not-showing/page/2

    which led to this one:
    http://wptavern.com/how-to-fix-images-not-loading-in-wordpress-4-4-while-using-ssl

    Adding code to functions.php which resulted in a fatal php error: add_filter function not recognized)

    Also tried the diff’s in wp-includes functions.php and post.php from this ticket:

    https://core.trac.wordpress.org/ticket/25449

    …without success. I have checked all logs (no hints), have deactivated all 60-plus plugins on five sites in this multisite installation and switched to Twenty twelve theme; same result.

    We are running under https.

    Anyone have any other suggestions?

    Many thanks!

    PS – Also tried this suggestion re: apparently related issue, without success:

    http://stackoverflow.com/questions/8438193/wordpress-images-not-showing-up-in-the-media-library

    Thanks.

    Thread Starter martinjacobson

    (@martinjacobson)

    PS – Also tried this suggestion re: apparently related issue, without success:

    http://stackoverflow.com/questions/8438193/wordpress-images-not-showing-up-in-the-media-library

    Thanks.

    That definitely does not work. I get the following error on the site when this is added:

    Fatal error: Call to undefined function add_filter() in /home/martin13/public_html/monicajacobson.com/wp-includes/functions.php on line 5177

    Thanks for the tip, though.

    Thread Starter martinjacobson

    (@martinjacobson)

    By the way, I am NOT running under https.

    Thread Starter martinjacobson

    (@martinjacobson)

    One workaround would be to change the code so I can view the media library as a list view. Why is there no option for this? Can anyone suggest what I could change to enable the list view to be accessed from within posts?

    Given that this appears to be a 4.4.1 regression to this bug: https://core.trac.wordpress.org/ticket/25449 I wonder whether this might not warrant some urgent and comprehensive attention? Especially since the previous patches don’t seem to be working now.

    This is a debilitating bug. It prevents our authors from uploading, displaying, modifying, and basically managing images, pdfs, etc on the site. That’s clearly a pretty severe limitation in a CMS.

    We, and others experiencing the same thing, will surely appreciate any help!

    Thanks in advance!

    Thread Starter martinjacobson

    (@martinjacobson)

    Again, I’m not on https. So I don’t know if the issue I’m having is the same one as yours, Reggie.
    It does make WordPress essentially useless for any media-heavy Web sites (like all of mine).

    Well, we’ve tried it both ways now, under http and https. Just upgraded WordPress to 4.4.1 manually, purged any/all legacy files. Updated all plugins.

    Media library spins and spins under grid view. Cannot attach images to posts as featured because can’t get grid to work.

    This site has been around quite a while i.e. 5-6 years. Originally a WPMU site, with half a dozen different blogs. Don’t know whether that matters…

    Will now do a manual inspection of the database. Maybe something hinky’s going on there. Will let you know if I stumble over anything.

    Good luck!

    Thread Starter martinjacobson

    (@martinjacobson)

    Cool, in the meantime I am going to try to figure out how to add the list view to all instances of the Media Library interface.

    Got side tracked but discovered this:

    Looking at the media library page with Chrome console open, I found error messages complaining about mixed http/https content, some of which was blocked cold and prevented from loading. To try to cure that, I installed the SSL Insecure Content Fixer plugin.

    This did not fix grid view, but it did allow some images to display in list view which had previously been blocked. I know you said you’re not running under https, but wondered whether some https content might have crept into your site somewhere?

    Also, we’re running the ShortPixel Image Optimizer plugin. With that activated, we get an error message in the Chrome console of “Invalid response from server” which repeats six times, then gives up.

    Chasing that, I came across an older post suggesting that such a response could be due to a misconfigured reverse proxy server. So, my next step is to run that past the sysadmins managing our reverse proxy setup. Might learn something next week…

    Good luck meanwhile…

    Thread Starter martinjacobson

    (@martinjacobson)

    So at this point I have given up on getting this actually fixed.
    All I need to do is to get the modal media library (the one seen in posts, featured image selection etc.) to default to the list view rather than the grid view.

    Here’s an example of someone wanting to do the opposite, force users to use the grid view:
    http://wordpress.stackexchange.com/questions/181307/how-to-remove-list-view-from-media-library

    Looks like that will work. But since I’ve never done any real WordPress development, I have no idea where I should put this code snippet. I tried adding it to the TwentyTen theme’s functions.php, but it didn’t seem to do anything. I’m not sure if the theme’s functions.php is even relevant to affect WordPress’s interface elements. Any help? The snippet I want to use is this:

    add_action('admin_init', function() {
        $_GET['mode'] = 'list';
    }, 100);
    Thread Starter martinjacobson

    (@martinjacobson)

    Any chance this is related?
    https://core.trac.wordpress.org/ticket/29566

    Looks like it.

    For me, I finally just moved my site to a test server running straight http and viola…media library grid view worked as advertised.

    Before doing that I tried a couple of plugins designed to cure mixed content issues, but they didn’t help with the grid view.

    I tried the code snippet approach also, in theme functions.php file first, then in wp-includes/functions.php and got no help from either. So I’m afraid I’m not much help.

    Maybe at some point someone knowledgeable about all this might chime in…

    Good luck!

    Breaking news…

    While looking to move my production site to http from https I discovered that there was an old plugin hiding in the mu-plugins directory that had been there since 2010. (I inherited this site…)

    Deactivated that and the media library instantly started working again. Grid view, attaching images, the works.

    So, if you haven’t already done so, you might want to look to see whether you have any obsolete plugins lurking in the mu-plugins directory…

    Good luck!

Viewing 15 replies - 1 through 15 (of 44 total)
  • The topic ‘Media Library won't load display images’ is closed to new replies.