Copied to clipboard

Flag this post as spam?

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


  • Meni 271 posts 507 karma points
    Jun 20, 2024 @ 17:54
    Meni
    0

    Upgrading from 13 to 14

    Hi, I'm thinking to upgrade from 13 to 14

    Is it requires changes in the code? (I was reading that there are no more macro scripts , etc.)

    Anything else I need to know about code changes before upgrading?

    Thanks

  • Søren Kottal 711 posts 4548 karma points MVP 6x c-trib
    Jun 21, 2024 @ 09:21
    Søren Kottal
    0

    The docs has an overview of breaking changes and other version specific things to be aware of: https://docs.umbraco.com/umbraco-cms/fundamentals/setup/upgrading/version-specific

  • Ayo Adesina 442 posts 1035 karma points
    Jun 22, 2024 @ 06:56
    Ayo Adesina
    0

    I'm doing a 13-14 upgrade now.

    The back office seems a lot better, quicker, more realiable, using the back office it really feels like we have entered a new era.

    However upgrading will depend on your project. One thing to note is that some property editors have been completely removed.

    For example if you are using nested content you will need to rewrite that using a block list.

    Check out this video for an overview: https://www.youtube.com/watch?v=StuLcV8cqW0

  • Magnus Larsen 4 posts 74 karma points
    Jul 25, 2024 @ 12:20
    Magnus Larsen
    0

    To be honest i would recommend waiting a bit before you upgrade to Umbraco 14, even though it is officially released, there are still many things that are not working yet.

    I have just migrated my own website that i started in Umbraco 14 back to Umbraco 13 because of this reason.

  • Meni 271 posts 507 karma points
    Jul 25, 2024 @ 16:20
    Meni
    0

    Thanks for the advice.

    How did you migrate from 14 to 13?

    when I try to migrate back from 14 to 13 I get the following error:

    The migration plan does not support migrating from state

    I tried to change the value in the db to the one Christopher Pascual suggests: {985AF2BA-69D3-4DBA-95E0-AD3FA7459FA7}

    https://our.umbraco.com/forum/using-umbraco-and-getting-started/108170-the-migration-plan-does-not-support-migrating-from-state#comment-350939

    And still getting the same error.

    So now I'm stuck. I cannot add new items to my website. And I also cannot migrate back to 13 ...

  • Magnus Larsen 4 posts 74 karma points
    Jul 25, 2024 @ 18:39
    Magnus Larsen
    0

    Downgrading is not officially supported. So i did it by exporting all the configuration and content from the Umbraco 14 instance, creating a new Umbraco 13 instance and then importing everything into that.

    I did this using uSync. There will be some manual things you have to take care of, like reuploading media etc. if you are just using the free version of uSync.

  • Meni 271 posts 507 karma points
    Jul 25, 2024 @ 18:48
    Meni
    0

    oh man! so you say that I can't downgrade my website now back to 13??

    this is a big mess ...

    there is no way to do a regular migrate? In the past with previous versions it was possible ...

  • Magnus Larsen 4 posts 74 karma points
    Jul 25, 2024 @ 19:00
    Magnus Larsen
    0

    Just no official way to do it. Atleast that i know of.

    There are probably hacks and workarounds.

    But i think it depends on the size of your project which approach would be easier.

  • Meni 271 posts 507 karma points
    Jul 25, 2024 @ 20:14
    Meni
    0

    it's a magazine with thousands of items in the tree (news items).

    What's the reason that it can't be downgraded for 13? Does 14 changes the db?

    The error I get when trying to downgrade is The migration plan does not support migrating from state

    Is there a value I can provide in the db so it works?

    It's been a week now that I couldn't add news in my website...

  • Ayo Adesina 442 posts 1035 karma points
    Jul 29, 2024 @ 21:56
    Ayo Adesina
    0

    I feel your pain.

    This is why you should always back up the database and have all your code in source control so you can roll it back.

    I have managed to get over all my umbraco 13-14 issues now and my site is running with 14 and no problems.

    What is the specfic issue you are having in 14?

  • Meni 271 posts 507 karma points
    Jul 30, 2024 @ 01:14
    Meni
    0

    Thanks my friend.

    And yes, you right. I should have do it.

    Anyway, I was able to resolve the issue, and finally today was able to add content again to my website.

  • Dean 1 post 71 karma points
    25 days ago
    Dean
    0

    Can you give any insight into how you solved the issue Meni?

    I'm currently stuck in the same position after upgrading to the latest packages in dev to test something out.

    Didn't occur to me that it would automatically roll me forward with no way back.

    Thanks, Dean

  • Meni 271 posts 507 karma points
    25 days ago
    Meni
    0

    I just stayed with 14.

    The main issue with the upgrade was that I couldn't add new posts.

    The reason is , I guess, because of the PropertyValidationService: https://github.com/umbraco/Umbraco-CMS/blob/v14/dev/src/Umbraco.Core/Services/PropertyValidationService.cs

    seems they now check for duplications , and after migrating from 7 to 8 I suddenly notices I had in my documents type duplications with the properties that I couldn't resolve from the back office, so I just left them there and from 8 - 13 it didn't cause issues until I migrated to 14.

    So I went on https://www.codecademy.com/ , learned some SQL, removed the Alias with duplications with the help of this answer: https://stackoverflow.com/questions/6260688/how-do-i-use-cascade-delete-with-sql-server

    And now my website is working again (with U14.1) and I can also add now to my resume that I know some SQL ...

Please Sign in or register to post replies

Write your reply to:

Draft