We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40944
    • 78 Posts
    Hi,

    I have got a website running 2.2.8-pl (at least, it says so in the upper left corner). I set it up myself and this is indeed the version I worked with. But when I tried updating to 2.2.10 it said the installation was successful, but the version still says it's 2.2.8-pl. I tried updating some time ago already using the manual etc. I have successfully updated other sites, and can't imagine I did anything wrong. At the moment I blame the hosting, which is shitty. I had to use janitor (CMP) since the hosting doesn't provide proper tools.

    Anyway, I think something went wrong with the copying/merging and that the hosting doesn't use merge copying (or whatever the exact term is).

    Everything works, although I am getting a 'Access denied' error quite often. So I want to make sure the upgrade is complete and get everything as it should be. I want to delete all files that should be replaced so nothing can go wrong in the merging process, but what files should I keep? Gallery photo's and template related files are obvious, config file... anything else I should keep in mind?

    Thanks!

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

    • discuss.answer
      • 53432
      • 46 Posts
      I would not delete anything manually (except the contents of /core/cache/). You only want the software (be it FTP or the OS) to handle all the merging for you.

      What OS are you on? If you are on a Mac like me, this is absolutely vital:
      http://rtfm.modx.com/revolution/2.x/administering-your-site/upgrading-modx#UpgradingMODx-MacOSXUsers

      Are you able to restore your site to a pre-upgrade state? If you can, then I would recommend doing so, and pulling down a local copy and do the upgrade locally, using the merging techniques in the article above.

      If that works locally, you can then push the upgraded files and DB up to the server over FTP.

      I wish upgrading Modx were easier, but, currently, that whole merging procedure is absolutely vital. Maybe someday the good folks at Modx will give us a simple package-based upgrader utility. But in the meantime, the article above is good, and just be sure to absolutely understand the merging part.
        • 3749
        • 24,544 Posts
        If you use FTP to transfer the files individually, even if it's set to overwrite, it's quite common to end up with missing or corrupted files.

        I strongly urge you *not* to delete *any* files. There's no reason to do it and you can end up with a real mess. If there are files that should be deleted, MODX will do it during setup.

        Here's how I upgrade: http://bobsguides.com/modx-upgrade-faq.html. Using that method, all necessary files will be overwritten and the transfer will be infinitely faster and more reliable.
          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
          • 40944
          • 78 Posts
          Thank you for your replies.

          Yeah, usually I would use FTP to upload/download zip archives and the hosting portal to zip/unzip. Problem is: they have zipping disabled in the filebrowser.. or it wasn't available in that version yet. Anyway, I used Janitor for zipping/unzipping.

          Wouldn't work if I merged the files on my local computer and overwrite everything on the server? Zipping/unzipping using Janitor and moving using the Plesk filebrowser. I believe this is normanwebdesign is saying?

          PS:
          The access denied error led me to this bug: http://tracker.modx.com/issues/9999. I already posted there, but I want to make sure the bug isn't caused by the 'failed' upgrade.
            • 3749
            • 24,544 Posts
            I'm not familiar with Plesk, but isn't there an "unzip," "decompress," or "extract" option in the control panel?

            I definitely wouldn't use a host that didn't have that capability.

            Here's a list of MODX-friendly hosts: http://bobsguides.com/modx-friendly-hosts.html
              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
              • 40944
              • 78 Posts
              Sorry about the late reply.

              About the hosting: I am from the Netherlands, so I guess it makes more sense to use Dutch hosting providers. Not that it really matters or anything, I think it's more convenient at times. Also the client already had hosting and all, I would gladly move them to another host but that would mean I have to take care of that. Since I am doing it out of generosity (and I have nothing else to do and like to play with modx), I didn't feel like doing that.

              Anyway: I zipped a copy of all the files using Janitor CMP and downloaded it to my local drive. I took modx 2.2.10 and merged it all. Tried to install it on another host (with a copy of the DB) and it worked (apart from some path related errors). So I zipped everything again, uploaded it to the host and unzipped it using Janitor. Flushed cache and permissions and moved the current site to a bak directory. Then I moved the updated files I just unzipped using Janitor and ran the setup. All went smoothly and now when I log into the manager it says 2.2.10 in the upper left corner.

              Thank you for your replies.
                • 3749
                • 24,544 Posts
                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