Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 11, 2016 @ 19:50
    Simone Chiaretta
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 11, 2016 @ 20:02
    Jan Skovgaard
    0

    Hi Simone

    That sounds really odd - What is the exact version of Umbraco that you're using?

    /Jan

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 11, 2016 @ 20:31
    Simone Chiaretta
    0

    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.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 12, 2016 @ 05:56
    Jan Skovgaard
    0

    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

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 12, 2016 @ 08:11
    Simone Chiaretta
    0

    I guess we encountered a bug :)

    Even tho I guess it's pretty difficult to solve as not an clear way how to reproduce

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 12, 2016 @ 14:35
    Jan Skovgaard
    100

    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

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 17, 2016 @ 15:38
    Simone Chiaretta
    0

    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.

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 17, 2016 @ 15:47
    Simone Chiaretta
    0

    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?

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 17, 2016 @ 15:50
    Joshua Stewart
    0

    Are you using SQL CE for your database? And did you add your changes while running the project in VS?

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 17, 2016 @ 15:52
    Simone Chiaretta
    0

    Yes to both

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 17, 2016 @ 15:55
    Joshua Stewart
    1

    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.

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 17, 2016 @ 16:01
    Simone Chiaretta
    0

    Wow... really annoying... So, either use IIS from outside VS or use a real SQL Server?

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 17, 2016 @ 16:07
    Joshua Stewart
    1

    Yes - either one of those options have fixed the issue.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 17, 2016 @ 19:10
    Jan Skovgaard
    0

    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

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 18, 2016 @ 08:18
    Simone Chiaretta
    0

    Good. Hope it gets included to 7.3.8 and not just 7.4.1 :)

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 18, 2016 @ 08:24
    Jan Skovgaard
    0

    According to the release notes for 7.3.8 it's fixed in this version too. So...:-)

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 11, 2016 @ 21:33
    Joshua Stewart
    0

    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.

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 11, 2016 @ 21:39
    Simone Chiaretta
    0

    I did the republish site, and the umbraco.config file contains the right properties, but the site doesn't.

    I had done it already :)

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 11, 2016 @ 21:48
    Joshua Stewart
    0

    Then that truly was a weird occurrence and I need to read people's posts at least twice :-) Sorry that I missed the obvious.

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 11, 2016 @ 21:51
    Simone Chiaretta
    0

    It was weird indeed... no idea why it happened as it shouldn't and never happened before.

  • Joshua Stewart 36 posts 128 karma points c-trib
    Feb 11, 2016 @ 21:56
    Joshua Stewart
    0

    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

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 12, 2016 @ 08:10
    Simone Chiaretta
    0

    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.

  • Daniel 60 posts 174 karma points
    Feb 11, 2016 @ 21:59
    Daniel
    0

    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?

  • Simone Chiaretta 134 posts 541 karma points c-trib
    Feb 12, 2016 @ 08:06
    Simone Chiaretta
    0

    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 :)

Please Sign in or register to post replies

Write your reply to:

Draft