We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49499
    • 48 Posts
    Here are some notes about my setup.

    • I am attempting to upgrade from MODX Revolution 2.4.2 to 2.5.1.
    • This is a hardened site, i.e. the core is located outside of the root. (However manager has not been renamed)
    • I am working in a local environment. MAMP on Mac OSX.

    I am following the instructions located here:
    https://rtfm.modx.com/revolution/2.x/administering-your-site/upgrading-modx

    I am using Transmit to merge directories using this technique. First I merge the "Core" directory (above the root), then I merge the remaining folders under the site root.

    For any prompts to 'replace' or 'skip' files, I choose to skip them per the documentation:
    You don't want to indiscriminately overwrite directories: you want to insert the updated files into place inside the directories.

    Afterwards, I run the setup, correct the core location when prompted, and run a normal upgrade. I receive success messages and no errors, however when I log into the manager the version is incorrect. I cannot tell if the upgrade succeeded or not.

    NOTE: I noticed that the new MODX version number is located in core/docs/version.inc.php, which would not be moved over since it shares the filename with my existing install and would replace it. As stated above, I chose to 'skip' all files instead of overwrite them. A simple merge does not handle this.

    Am I missing something? Are there some directories I should replace and others I should merge?

    This question has been answered by patrickappelman. See the first response.

      • 3749
      • 24,544 Posts
      You should try the UpgradeMODX extra. It will download and copy the files for you, and it generally works fine with a hardened install.

      For a manual process, you definitely want to overwrite the old core files with the new ones, with the following exceptions:

      You *don't* want to overwrite the three (four, counting the setup dir.) config.core.php files or the core/config/config.inc.php file, or any .htaccess file in the site root or Manager directories. Other than those, you should always overwrite (including ht.access files).

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 49499
        • 48 Posts
        As usual BobRay, you are an invaluable asset to the MODX community! Thank you for your help.

        I used your extra and it worked like a charm.
          • 3749
          • 24,544 Posts
          I'm glad it worked for you. smiley

          Thanks for the kind words.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 49499
            • 48 Posts
            Hi BobRay or anyone who can help,

            I didn't notice this when I first updated MODX but now there is something wrong with the categories... All my categories are missing from the tree on the left and any snippet/TV/chunk/template that was in a category is missing/hidden, but uncategorized elements are still there. The elements are technically still on the site somewhere but they are hidden from the tree.

            The update was from 2.4.2 to 2.5.1. Any suggestions?
              • 3749
              • 24,544 Posts
              Is there anything in the error log?
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 49499
                • 48 Posts
                Quote from: BobRay at Aug 09, 2016, 04:04 PM
                Is there anything in the error log?

                Doh! I should have looked there... Yes, the following statement is repeated several times.

                [2016-08-09 12:32:18] (ERROR @ /Users/patrickappelman/Sites/gr/core/xpdo/om/xpdoobject.class.php : 240) Error 42S22 executing statement: 
                Array
                (
                    [0] => 42S22
                    [1] => 1054
                    [2] => Unknown column 'modCategory.rank' in 'field list'
                )
                • discuss.answer
                  • 49499
                  • 48 Posts
                  Hi BobRay, a quick search of the forums brought me to your post here. As suggested in your post, I manually created the "rank" column in the database, which solved the issue.
                    • 3749
                    • 24,544 Posts
                    I'm glad you got it sorted. smiley

                    FYI, I think your mistake was not upgrading to 2.5.0 first. The DB changes usually come in the x.x.0 versions.
                      Did I help you? Buy me a beer
                      Get my Book: MODX:The Official Guide
                      MODX info for everyone: http://bobsguides.com/modx.html
                      My MODX Extras
                      Bob's Guides is now hosted at A2 MODX Hosting