We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1633
    • 2 Posts
    Hi All,
    I just upgraded my modx from version 0.9.6.1p2 to the latest version of evolution - 1.0.4.
    It all went smoothly other than it seems that some of my custom chunks are missing.
    On inspection of the site_htmlsnippets table in the database it appears that my missing custom chunks have been overwritten by standard chunks in the upgrading process - namely the FormLogin and FormSignup chunks.

    Has anyone else experienced this, or does anyone know why the upgrade process overwrites custom chunks in the database?

    Thanks!
    • If you selected these in the installation options page, then they get overwritten. I’m always careful when upgrading (especially over such a large version gap) to not upload snippets, and during the installation to clear the boxes for all chunks and snippets.

      Along the same lines, I never modify any of the default elements. I make copies, rename the copies, then modify and use the renamed copies. That way there is no chance that an upgrade will overwrite something based on its ID. Likewise if I want to modify any of the default installation files; I make copies of the folder and work with the copy leaving the original alone. At most I need to change the path for any included files. I learned this many years ago after losing a few templates because I had just modified the existing default template.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 1633
        • 2 Posts
        Thanks for the response.

        I realised after reverting back to the original state and then running the upgrade process again that it was due to the ’Sample Web Site’ check box getting checked when you go back to the ’Optional Items’ page having been to the confirmation page, even though it was previously unchecked.

        Have just run the upgrade again making sure this checkbox stayed unchecked and it all seems fine this time round.

        Thanks.
          • 4310
          • 2,310 Posts
          due to the ’Sample Web Site’ check box getting checked when you go back to the ’Optional Items’ page having been to the confirmation page, even though it was previously unchecked
          That’s caught me out before >:(