WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Some Libraries Show Broken Images

[Resolved] Some Libraries Show Broken Images

Viewing 6 replies - 1 through 6 (of 6 total)
  • I found the problem. The plugin was using a default URL path for sites that didn’t have an Upload URL Path specified in their settings. I just made sure that all the sites had the right path in their settings, and everything works!

    Plugin Author joost de keijzer

    @joostdekeijzer

    Hi tortoise262,

    Thanks for the elaborate report & the fix!

    I will put the issue on my todo to see if NSM can fix the absence of an url path itself.

    RICE

    @christopherr2d2

    This is the same problem I’ve been trying to tackle!

    Mind if I ask what URL path you used to make it work, @tortoise262? I’m not familiar with such wizardry 🙂

    ChristopherR2D2,

    Go to the site’s media library to get it. After opening the media info, right click on the image to find the image URL. (In Chrome, you can click “Copy image URL” or “Open image in new tab.”) Copy the URL up to the upload date. Don’t include the upload date or the slash at the end. For example, if the image URL is…
    http://downingtowndoes.com/files/2013/01/Downingtown-Seal.png
    Then the Upload Path is…
    “http://downingtowndoes.com/files”

    Here’s where I ran into trouble again: Looking at the Site Settings, I saw that there might be any combination of the fields “Upload Path”, “Upload Url Path”, and “Fileupload Url”. Depending on when the sites were created (I think), the Settings might include 1, 2, or all 3 of these fields, and NSM seemed a little inconsistent on which field the plugin would check. (Maybe the Plugin Author could shed some light on this.)

    I believe you’d be safe updating all of these fields, but it couldn’t hurt to write down what’s originally there in case you need to revert it later.

    Plugin Author joost de keijzer

    @joostdekeijzer

    Hi all,

    I’ve looked into the matter some more.

    The plugin “asks” WordPress for the available images for a site (using the available functions in the system). It doesn’t handle or change any of the “Upload Path”, “Upload Url Path” or “Fileupload Url” settings.

    What I do know is that since WP3.5, the way to access MS files has changed, deprecating the use of the ms-files.php url’s.

    I guess your sites are now WP3.5 sites upgraded from an earlier version?

    Did you change any settings to “remove” the ms-files.php way of displaying images?

    Would it be possible to retrieve an original (broken) image path and post it to the forum here?

    Thanks!

    I guess your sites are now WP3.5 sites upgraded from an earlier version?

    Yes. Even older, probably. I don’t know in what version they were created because I only started helping with this project a month ago.

    Did you change any settings to “remove” the ms-files.php way of displaying images?

    The only thing I did was change the fields in the Site Settings. I didn’t edit any PHP files and I doubt that any of my collaborators did either.

    Would it be possible to retrieve an original (broken) image path and post it to the forum here?

    http://coatesville.chescodoes.com/wp-content/uploads/2013/01/Food-Comparison-Good-vs-Bad.png

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Some Libraries Show Broken Images’ is closed to new replies.