Does it work if you do not set the UrlMode to be absolute?
Just: GetCropUrl("highlighted")
I found this little discussion that mentions setting forwarded headers if the absolute url isn't being set correctly -- but don't know if its relevant to your situation...
And you're saying that it's working now just after saving the media item? Was this a new behaviour after updating Umbraco or a migration? 1000 individual saves would be terrible. Could find or write something to go through and save all media items.
Please update to the latest version of v12 (I think there is 12.3.3) there was a know issue that resulted in media not loading into the cache properly. The fixes started in v12.3, but I don't think it was fully fixed untill 12.3.3 so it's worth the update.
Media is not appearing in frontend
Hey there all,
I have a strange issue. Somehow, all my media seems to be broken for the frontend.
Wherever I have an image, the image tag appears
<img>
only.A refresh on the cache and memory won't do anything. A save on the media fixes it.
Issue is: I have 1000 medias and saving each and everyone of them to make sure it shows in the frontend is time consuming and failable.
Has anyone ever come across this issue? If you did, how did you fix it?
Thanks
Hi Pedro,
How do you render images? Can you show the code? What Umbraco version are you using?
Alex
Thank you for replying Alex!
I'm using Umbraco 12.3.2 and the code is this
PageDefinitionImage is a
Umbraco.Cms.Core.Models.MediaWithCrops
This is what it being rendered
because, somehow, the PageDefinitionImage is null. If I go to Media section and save it, it will appear :\
Does it work if you do not set the UrlMode to be absolute?
Just: GetCropUrl("highlighted")
I found this little discussion that mentions setting forwarded headers if the absolute url isn't being set correctly -- but don't know if its relevant to your situation...
And you're saying that it's working now just after saving the media item? Was this a new behaviour after updating Umbraco or a migration? 1000 individual saves would be terrible. Could find or write something to go through and save all media items.
Thanks for the info Danine.
I'll try it and get back to you
Hey Danine,
That was not not the issue but Nik provided the solution, it was Umbraco fault, shame on them 😁
So it was update related ^^ Well! It's always nice when it's a simple resolution; can't complain too much about that haha! ;D
Glad it was resolved! Nik's a rockstar!
Hi Pedro,
Please update to the latest version of v12 (I think there is 12.3.3) there was a know issue that resulted in media not loading into the cache properly. The fixes started in v12.3, but I don't think it was fully fixed untill 12.3.3 so it's worth the update.
https://our.umbraco.com/download/releases/1232 - see the issue there, I think there is "another" related fix in the 12.3.3 release.
Thanks
Nik
Hey there Nik,
That was the issue!! Thank you so much :D
is working on a reply...