I have a question. I have 2 environments (development & live) and when I put images on one environment (live for example) and after I restore them on the other, the src of the images are pointing to different ID's. Then, on
development environment, I can't see the images. Can you help me please?
Each environment has their database and every node (including media nodes) has their ID, and are different between both environments. Then, I've restored Live environment on Development environment (from the Umbraco admin of the Development environment, on UAAS) and all works right but the IDs of the nodes are different and I canĀ“t see the images uploaded on the Live environment.
Maybe problem with cache? I had similar problem, but fixed after rebuplish development environment. Because Umbraco helper works with xml cache on the disk and it can containt old ids.
I've republished the entire site and It doesn't worked.
It makes sense in part because the ids are not the same and nodes are referencing images with different ids between them, but I find it strange because then I don't see the sense of working with several environments with Umbraco as a service.
Problem with node ID's and media
Hi!
I have a question. I have 2 environments (development & live) and when I put images on one environment (live for example) and after I restore them on the other, the src of the images are pointing to different ID's. Then, on development environment, I can't see the images. Can you help me please?
Regards!
Hi Rafa,
What do you mean the src of images are pointing to different IDs?
How do you render src?
Thanks,
Alex
Hi Alex,
For example, to obtain the image of the logo:
My scenario is:
Each environment has their database and every node (including media nodes) has their ID, and are different between both environments. Then, I've restored Live environment on Development environment (from the Umbraco admin of the Development environment, on UAAS) and all works right but the IDs of the nodes are different and I canĀ“t see the images uploaded on the Live environment.
Regards!
Hi Rafa,
Maybe problem with cache? I had similar problem, but fixed after rebuplish development environment. Because Umbraco helper works with xml cache on the disk and it can containt old ids.
Thanks,
Alex
Hi Alex,
I've republished the entire site and It doesn't worked.
It makes sense in part because the ids are not the same and nodes are referencing images with different ids between them, but I find it strange because then I don't see the sense of working with several environments with Umbraco as a service.
Thanks!
It's really strange, we have different ids too, but after restore everything is working fine.
It looks like restoring wasn't successful, try to ask HQ inside Umbraco as a Service admin part.
I'm already in contact with the HQ of UAAS, I'll update this thread if there's any new o with the solution.
Thank you very much anyway, Alex.
Hi Rafa,
Any joy with the media node ids?
Martin
Hi Martin,
The problem was that Umbraco Cloud has a problem with the images of a property Nested Content. I think that is not solved.
Regards.
Comment author was deleted
@Rafa are you using the data resolvers for Nested Content?
No. What are the data resolvers?
is working on a reply...