Troubleshooting Media Rendering Issues in Umbraco ...
# help-with-umbraco
r
Hello, I am using Umbraco v13 Cloud and have encountered an issue with media not rendering after it is deployed to production. Our setup uses staging.company.com for content editors to create pages, upload files, etc. Once the content is ready, they use the "Queue for Transfer" feature to send the page to www.company.com. The page transfers successfully along with the media, but the media on the rendered page is missing. When I edit the page in the Backoffice, I can see the page and the image correctly. I can also access the image directly in the Media section and even view it in the browser. However, it doesn't render on the live site. To resolve this, we usually navigate to the media item in production (www), hit "Save," and the media then renders as expected. While this workaround functions, it becomes an admin task since our content editors do not have access to production. This morning, I tried a different approach. Instead of saving the media item, I performed a "Rebuild Index" action in Settings -> Examine Management, and the image started rendering. This raises a few questions: Does saving a media item trigger a rebuild of the index? Maybe just for that item? When transferring content and media, are any of the media notification events fired on the destination environment? I ask because I have some custom code in the MediaSaving Notification. Could that be getting hit in the production environment? Are there any notification events tied to content deployment actions that I could monitor? Thank you in advance for your help! Best regards, Roger
8 Views