Copied to clipboard

Flag this post as spam?

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


  • ACroner 12 posts 103 karma points
    Jun 01, 2021 @ 13:16
    ACroner
    0

    No values after update

    I upgraded a customer site from 8.5.5 to 8.11.1 with nuget

    However, after the update I'm not getting any values from my fields- all fields are null. Actual nodes is fetched though, and everything works fine in backoffice.

    Nothing in the logs.

    Anyone got any idea what to try with?

  • Brendan Rice 538 posts 1102 karma points
    Jun 01, 2021 @ 14:03
    Brendan Rice
    0

    Is there anything in developer tools console?

  • ACroner 12 posts 103 karma points
    Jun 01, 2021 @ 14:16
    ACroner
    0

    Nothing there either unfortunately.

  • Brendan Rice 538 posts 1102 karma points
    Jun 01, 2021 @ 14:29
    Brendan Rice
    0

    How did you perform the upgrade?

    What command did you use?

  • ACroner 12 posts 103 karma points
    Jun 01, 2021 @ 14:50
    ACroner
    0

    I used the nuget solution window, as I always do. No commands in general :)

    I chose 8.11.1 as I'm running that on multiple other site and it's very stable for me.

    Did the upgrade, accepted all config changes. Changed umbraco-version to 8.11.1 in webconfig.

    I believe it's really not a question about the update procedure since I've done this hundreds of times...

    It is really weird. Fortunately this is a test environment so it's all fine for now.

  • Brendan Rice 538 posts 1102 karma points
    Jun 01, 2021 @ 14:54
    Brendan Rice
    1

    "Changed umbraco-version to 8.11.1 in webconfig."

    I thought this was automated by Umbraco after any DB updates were applied (after logging into Umbraco).

    Sorry I can't be any more help, I've never seem this issue before.

  • ACroner 12 posts 103 karma points
    Jun 01, 2021 @ 14:57
    ACroner
    0

    That is true. Wonder why I did that this time. Hmm. Maybe there is some issue after all.

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Jun 01, 2021 @ 15:01
    Søren Gregersen
    1

    if you edit it manually, it may result in the migrations not being run, which may be the cause of your issue.

  • ACroner 12 posts 103 karma points
    Jun 01, 2021 @ 15:27
    ACroner
    0

    I redid the whole installation and same thing happens when Umbraco changes the current version in webconfig... Hmm.

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Jun 01, 2021 @ 16:27
    Søren Gregersen
    0

    Are you able to edit the database?

    There is a record in umbracoKeyValue, with the value in the Key-column, ending with “+Umbraco”. The date on that should be when you installed the update.

    If not, you may be able to delete the record (or just change the key), to force umbraco to run the migrations again.

    Anothe option is to rollback both database and code, end try the upgrade again.

    Hth

  • ACroner 12 posts 103 karma points
    Jun 02, 2021 @ 06:23
    ACroner
    0

    I redid it with a fresh database and same thing happens.

    It is weird that I get all data in the backoffice correctly, it's just in the templates that I'm not able to fetch any data...

  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Jun 02, 2021 @ 06:49
    Søren Gregersen
    100

    Have you rebuild the cache and indexes? Published everything etc.

  • ACroner 12 posts 103 karma points
    Jun 02, 2021 @ 09:13
    ACroner
    1

    OK so there was multiple errors here.

    I did the update wrong. But then I had to clean the cache and republish.

    There also was some errors from the previous developer team (umbracoNavihide instead of umbracoNaviHide - so no IsVisible() worked) which made it all look really weird and confused the hell out of me!

    Also, the previous team used the grid alot, but didn't make their own styling-theme-files and just used the default theme files for bootstrap3 and changed them (please don't do that) - so it was a pain in the ass to fix this also - and also added to the initial confusion.

    Thanks everyone.

Please Sign in or register to post replies

Write your reply to:

Draft