WordPress.org

Ready to get started?Download WordPress

Forums

Network Shared Media
[resolved] Some Libraries Show Broken Images (7 posts)

  1. tortoise262
    Member
    Posted 1 year ago #

    Network Shared Media Version 0.9.4

    The plugin will show a list of all the media from the multisite. For some sites, it shows the media just fine, but for others, it just shows broken images. All of the sites have the correct settings (Public=true, Archived=false, Spam=false, Delete=false) I also checked the malfunctioning site, and the media is there and shows fine in its home site.

    All media show as broken images for this site

    Network Shared Media works fine for this site

    Here is how it looks in the editor

    The images of the first site works fine when viewed through the normal library viewer.

    http://wordpress.org/extend/plugins/network-shared-media/

  2. tortoise262
    Member
    Posted 1 year ago #

    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!

  3. joost de keijzer
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. ChristopherR2D2
    Member
    Posted 1 year ago #

    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 :)

  5. tortoise262
    Member
    Posted 1 year ago #

    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.

  6. joost de keijzer
    Member
    Plugin Author

    Posted 1 year ago #

    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!

  7. tortoise262
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic