Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Funka! 398 posts 661 karma points
    Oct 02, 2012 @ 20:03
    Funka!
    0

    Use caution when upgrading from 4.7.2 to 4.9.0 regarding 'disappearing' media items

    Assume you have the following razor script to loop through a media folder and show all of the images:

    var folder = Library.MediaById(1047); // NOTE, FILL IN YOUR OWN ID HERE
    foreach(var photo in folder.Children)
    {
      <img src="@photo.umbracoFile" alt="" />
    }

    Looks good, huh? Now go ahead and upgrade to 4.9.0, and you will still see at first glance your page looks fine. Until you edit and save any one media item in that folder! Then, on the front-end, your page will look like all of your images have disappeared except for the one you just saved! Where did all the images go? They still appear fine in the back-end office.

    The solution? Go through each media item one at a time, and click save on each. They will start to "re-appear" on the front-end as you do this. (And then you still have to worry about the sorting issue with these, so continue to stay warned!)

  • Gudrun Furu 2 posts 22 karma points
    Nov 27, 2012 @ 16:22
    Gudrun Furu
    0

    I have the same problem, but in 4.10. I checked the path in umbracoNode table, which is as it should. I ended up using the same work-around as you describe. Nobody’s happy when media suddenly goes missing and it a quite time-consuming solution!

    Have you submitted it as an issue?

  • Gudrun Furu 2 posts 22 karma points
    Nov 28, 2012 @ 10:29
    Gudrun Furu
    0

    I just upgraded to 4.11.0, and that seemed to fix it. All images are shown, even after adding more to image folder.

Please Sign in or register to post replies

Write your reply to:

Draft