We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42241
    • 25 Posts
    I am having a hard time with this. Mostly because this is the first time I have done it.

    I am not able to do an upgrade, only a new install. Which makes me nervous. I've done some work to harden my site, by putting the core above the root, which I think may be causing the issue.

    Bit of a noob, of course.

    any help is greatly appreciated.
      Revo 2.3.3
      • 3749
      • 24,544 Posts
      Don't let setup do a new install. It will wipe out your site's content.

      If you've moved or renamed directories, you'll have to unzip the MODX files somewhere and then copy each directory's files to the proper place.

      The reason it wants to do a new install is that it's not finding the core/config/config.inc.php file. There are four config.core.php files that tell MODX where the core is. they are in the root, manager, connectors, and setup directories. Make sure all four are correct and that the values in the core/config/config.inc.php file are correct before running Setup.

        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
        • 42241
        • 25 Posts
        Hey Bob

        Great to hear from you. Always there to help aren't you?

        Thanks for your message

        Quote from: BobRay at Mar 29, 2014, 03:20 PM

        Don't let setup do a new install. It will wipe out your site's content.

        Okay, good point.

        Quote from: BobRay at Mar 29, 2014, 03:20 PM

        If you've moved or renamed directories, you'll have to unzip the MODX files somewhere and then copy each directory's files to the proper place.

        Just to be clear, I shouldn't overwrite things, correct?

        Quote from: BobRay at Mar 29, 2014, 03:20 PM

        The reason it wants to do a new install is that it's not finding the core/config/config.inc.php file. There are four config.core.php files that tell MODX where the core is. they are in the root, manager, connectors, and setup directories. Make sure all four are correct and that the values in the core/config/config.inc.php file are correct before running Setup.

        Would you mind if I sent you a screenshot of how my site is setup? Where everything is?
          Revo 2.3.3
          • 3749
          • 24,544 Posts
          Yes, you definitely *do* want to overwrite things, except the files I mentioned above.

          The best method is to create a .zip file locally for each directory, upload it to the appropriate directory on the server, and unzip it there using the cPanel utility.

          There's really no point in showing me the structure as long as it's working.
            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
            • 42241
            • 25 Posts
            Hi

            Thanks for your help so far.

            There has got to be an easier way of upgrading. I now have two core folders as a result of hardening my site and moving the core above the root previous to attempting this upgrade.

            My site is not all that complicated, but this is a little confusing.

            Apologize for being needy.

            John
              Revo 2.3.3
              • 3749
              • 24,544 Posts
              This may help if you haven't seen it: http://bobsguides.com/modx-upgrade-faq.html.

              Also, you probably know this, but your site isn't properly hardened until you remove the old core folder.
                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
                • 42241
                • 25 Posts
                Thanks Bob

                It was a bit hairy, but I have finally upgraded my site to 2.2.14

                Super proud of myself. Thanks for everything that you do.

                John
                  Revo 2.3.3
                  • 3749
                  • 24,544 Posts
                  I'm glad you got it sorted. smiley
                    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
                    • 42241
                    • 25 Posts
                    Just for anyone else who might be going through this, here is what I did:
                    I work with Dreamweaver and Mac OS

                    Backup everything, so that you can reset if anything goes awry.

                    With hardening my site's security, the core is above the root.

                    I unzipped everything in the site folder.

                    With the Finder, I copied and replaced core.config.php, index.php, and the folders setup, manager, and connectors. I also replaced the core above root.

                    Then, before I uploaded all that to my server, I reset all 4 config.core.php files so that they point to the right place. I also rewrote line 39 of index.php to point to the core as well.

                    Uploaded all that.

                    Then run setup.

                    My problem was with having the core above the root. But since it is "good practice" to have the core there, perhaps in the future there will be an easier method of upgrading.

                    But thanks Bob!
                      Revo 2.3.3
                      • 42241
                      • 25 Posts
                      Well, here we go again.

                      Hi Bob
                      I hope you answer me again...

                      I am trying to upgrade to 2.3.2 from 2.2.14

                      There are some differences in config.core.php in this newer version from the older.

                      <?php
                      define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
                      define('MODX_CONFIG_KEY', 'config');"
                      

                      vs

                      <?php
                      define('MODX_CORE_PATH', '/home/whatever/core/');
                      define('MODX_CONFIG_KEY', 'config');
                      ?>


                      do I replace
                      dirname(__FILE__) . '/core/'


                      with
                      '/home/whatever/core/'


                      ?

                      in all four files as I did for 2.2.14?

                      Or something else.

                      Thanks again for all you do.

                      John
                        Revo 2.3.3