Media entities not available after migrating from v8
Hi,
I've recently migrated from v8 to v9 then v10 in one big update. Issue I am getting is with media files, new ones uploaded work fine, they seem to have the same property values within the model that's coming down.
var backgroundImage = Model.Value<IPublishedContent>("backgroundImage");
<div class="image" style="background-image: url('@backgroundImage.Url()');"></div>
Works for the top image but not the bottom one. The migrated image returns null so I'd guess that the umbraco id isn't matching up to anything?
I can see both the images in the media tab and they are both displaying there and seemingly available to use.
Is there anywhere in the database that is storing these ids? I've tried having a skim through to see if I could find anything linking the Uid and the actual image but not found anything so far on it. We've got 6k files in media so looking to avoid reuploading them all.
Media entities not available after migrating from v8
Hi, I've recently migrated from v8 to v9 then v10 in one big update. Issue I am getting is with media files, new ones uploaded work fine, they seem to have the same property values within the model that's coming down.
This one is working and is a new image
"backgroundImage": "umb://media/4966f63391694c24b7fc11e9a85cf181"
However this old migrated image is not
"backgroundImage": "umb://media/e04015a24b164d51bd7f753e372bcc4f"
Using the code:
Works for the top image but not the bottom one. The migrated image returns null so I'd guess that the umbraco id isn't matching up to anything?
I can see both the images in the media tab and they are both displaying there and seemingly available to use.
Is there anywhere in the database that is storing these ids? I've tried having a skim through to see if I could find anything linking the Uid and the actual image but not found anything so far on it. We've got 6k files in media so looking to avoid reuploading them all.
Any help appreciated, thanks in advance :)
Hi Sam
It feels like your migrated media is there in the database but not in the published cache?
If you find one that is not appearing, and 'resave' the media item in the backoffice, does that then make it work?
(if so it's the backoffice action is forcing it into the published cache)
If this fixes it then, rebuilding the cache from the settings dashboard, might, if you are lucky, save the day!
regards
Marc
Hi Marc,
Thank you so much, reloading the memory cache sorted it. Really saved the day for me on that one, much appreciated!
Regards,
Sam
is working on a reply...