Cannot get properties of document after renaming alias
After renaming the alias of 2 properties of a document type, I cannot see them among the properties when accessing the page in the frontend.
Actually in the frontend I still see the old properties.
Together with renaming the 2 properties I added 2 other properties, which I can see.
I did the republish site, and the umbraco.config file contains the right properties, but the site doesn't.
Any idea of what could have gone wrong? And how to fix the problem?
I've seen this too a short while ago when I messed up some document types and had to set things straight directly in the DB...afterwards I initially still got the error but after recycling the app pool everything was allright again. So since you made a restart the app pool was of course recycled in that process as well...So I think if you encounter the same issue again you just need to recycle the app pool / touch the web.config :)
Just happened again:
- umbraco.config has the right properties alias
- views still get the old property names
Did nothing strange, just renamed the alias.
It's happening in development, stoppin/restarting the site in VS didn't help, had to restart Visual Studio to get it running again.
Actually I think the problem is different.
I just noticed that after restarting, all the changes to datatypes I've done have disappeared.
How can this be?
Basically the thinking is that all of the changes made don't get committed when debugging is stopped. The workaround has been to setup a full IIS site for your project and make any changes there rather than through the debugger.
Oooh, the dreaded old CE SQL bug in a new disguise :-( - But the good news is that it seems it might have been fixed with the release of 7.3.8 according to this issue http://issues.umbraco.org/issue/U4-7996 :)
This is because the umbraco.config file likely still had the old aliases in the xml. The best practice is to republish the entire site from the Content node when making alias changes. Doing this will rebuild the umbraco.config xml cache.
I used it after I couldn't see it appearing in the frontend
It looks like it's the same problem.
I guess difficult for C-Team to solve if it cannot be easily reproduced.
Silly question, but have to ask, just to get all possible cache issues out of the way, does this happen when you open the page in a new browser as well?
Actually I didn't :)
But I'm pretty confident it was not a browser cache issue as when I said that I couldn't see the properties I was referring at not seeing them when stepping through the code in debug mode :)
Cannot get properties of document after renaming alias
After renaming the alias of 2 properties of a document type, I cannot see them among the properties when accessing the page in the frontend. Actually in the frontend I still see the old properties. Together with renaming the 2 properties I added 2 other properties, which I can see.
I did the republish site, and the umbraco.config file contains the right properties, but the site doesn't.
Any idea of what could have gone wrong? And how to fix the problem?
Thx Simone
Hi Simone
That sounds really odd - What is the exact version of Umbraco that you're using?
/Jan
I'm using 7.3.7
Eventually it took the right values, but needed restart of the instance. It's weird because I've done this many other times and never had the problem.
Hi Simone
I've seen this too a short while ago when I messed up some document types and had to set things straight directly in the DB...afterwards I initially still got the error but after recycling the app pool everything was allright again. So since you made a restart the app pool was of course recycled in that process as well...So I think if you encounter the same issue again you just need to recycle the app pool / touch the web.config :)
/Jan
I guess we encountered a bug :)
Even tho I guess it's pretty difficult to solve as not an clear way how to reproduce
Indeed it is - But I suppose we need to keep an eye out for it when it happens and then try to see if we can remember how to reproduce :)
/Jan
Just happened again: - umbraco.config has the right properties alias - views still get the old property names
Did nothing strange, just renamed the alias. It's happening in development, stoppin/restarting the site in VS didn't help, had to restart Visual Studio to get it running again.
Actually I think the problem is different. I just noticed that after restarting, all the changes to datatypes I've done have disappeared. How can this be?
Are you using SQL CE for your database? And did you add your changes while running the project in VS?
Yes to both
This is a nasty issue that has been around for a while. See here:
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/53016-Losing-changes-with-SQL-CE-and-Visual-Studio
Basically the thinking is that all of the changes made don't get committed when debugging is stopped. The workaround has been to setup a full IIS site for your project and make any changes there rather than through the debugger.
Wow... really annoying... So, either use IIS from outside VS or use a real SQL Server?
Yes - either one of those options have fixed the issue.
Oooh, the dreaded old CE SQL bug in a new disguise :-( - But the good news is that it seems it might have been fixed with the release of 7.3.8 according to this issue http://issues.umbraco.org/issue/U4-7996 :)
/Jan
Good. Hope it gets included to 7.3.8 and not just 7.4.1 :)
According to the release notes for 7.3.8 it's fixed in this version too. So...:-)
This is because the umbraco.config file likely still had the old aliases in the xml. The best practice is to republish the entire site from the Content node when making alias changes. Doing this will rebuild the umbraco.config xml cache.
I had done it already :)
Then that truly was a weird occurrence and I need to read people's posts at least twice :-) Sorry that I missed the obvious.
It was weird indeed... no idea why it happened as it shouldn't and never happened before.
Did you use the preview functionality at all? It appears someone had something similar happen recently:
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/60546-Property-shown-in-umbracoconfig-but-GetPropertyValuepropertyAlias-returns-null
I used it after I couldn't see it appearing in the frontend It looks like it's the same problem. I guess difficult for C-Team to solve if it cannot be easily reproduced.
Silly question, but have to ask, just to get all possible cache issues out of the way, does this happen when you open the page in a new browser as well?
Actually I didn't :) But I'm pretty confident it was not a browser cache issue as when I said that I couldn't see the properties I was referring at not seeing them when stepping through the code in debug mode :)
is working on a reply...