Cultures and hostname set - nodes outside tree - F...
# help-with-umbraco
s
Had a site in dev for a while - about to put it live and noticed all content nodes outside of the main tree throw "Failed to retrieve data for content id 1234" and refuse to load. Was a bit scary as I thought the db was corrupt! If I remove the hostname from the homepage node suddenly all the nodes content loads successfully. If I run the db in a different domain it also works. Anyone know why this would be?
s
Never seen this before.. you mean in the frontend?
can only find that error in the backoffice files - weird, as all it does is a GetContentById from the contentservice
s
I mean in the back office
s
time to crack open a debugger 😅
s
In case anyone finds this thread... I think I've worked out why this was erroring. The site, whilst in dev had - for a while - multiple languages. A doc type had a setting to allow multiple variants (cultures). The languages were later reduced to one but I think this setting was stuck. This has also caused issues with the Content Service not working (looks fine, doesn't throw an error but then the nodes won't load in the back office with "Cannot save a non-current version"). The fix was I fixed the document type (I used usync but assuming you could add a dummy language, modify in the backoffice then remove the second language). uSync was handy as I could search the text files for this: FROM: Culture TO: Nothing
s
Thanks for coming back and sharing!!
s
I mainly like to update these things as I find them myself about a year or two later and am very pleased with my past self for doing the lazy man's blog of just providing the answer to my own question 🙂
s
So true!!
2 Views