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

    I am currently running MODX 0.9.6 and need to upgrade to the latest version (is it revolution?) in order so that the site will work for the latest PHP version. The web host is currently stopping 5.2 and I need to have the site running so it supports PHP 5.4.

    Is revolution the version I will need (or can I patch up 0.9.6 to make it work ) and if revolution is the only option, what is the recommended path for doing it.

    Any help appreciated. Thanks
      • 16278
      • 928 Posts
      The current version of MODX Evolution is 1.0.6, and you'll need to upgrade to that. Download from http://modx.com/download/evolution/. You may need to fix a few PHP statements in certain snippets (e.g.if they use the deprecated split() function).

      There is no direct upgrade path from Evo to MODX Revolution.
      :) KP
        • 40453
        • 9 Posts
        Thanks KP, Is there a way I can run both sites together and gradually transfer over and test. Then, once satisfied, move completely to the new build? Really appreciate your help.
          • 16278
          • 928 Posts
          Ummm - wouldn't you have to the two versions of PHP running simultaneously on the server to do that? How about setting up a local installation with XAMPP/WAMP or whatever and testing out a normal upgrade on a download of the current site?
          ;) KP
          • When upgrading from an older version it's generally a good idea to not replace the assets/snippets folder and to clear the checkboxes for the snippets in the upgrade options page during the installation process. A few snippets have changes in the properties, and your snippet tags in your templates and content will break.

            Once the upgrade is done and things are still working as usual, you can replace the snippets one at a time, updating your snippet calls as necessary.

            I have never had a problem with the upgrade from even older versions other than the business with the snippets.
              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
              • 40453
              • 9 Posts
              Hi Sottwell, thanks for your advice. So the process is to

              1. Make a backup of config.php (so I have the DB connect string)
              2. Copy the extracted 1.0.6 version to the public_html folder (excluding the assets/snippets folder).
              3. Run an *upgrade* installer (where might I find this?) do do I just select index.php and it will give me an option?

              It's critical that I don't mess up any of the existing site, so your advice and experience is very much appreciated. Also, apart from the basic template and calls, the only clever thing I use in Modx is the e2form and e2database. I'm happy to reconfigure these and just wanted to check that these will not be overwritten in the install (or at least I will be given a chance, after copying over) to copy the settings of these to newer versions.

              Thanks again Susan!
                • 40453
                • 9 Posts
                Basically the site is 20 pages big and mainly uses the Modx for templates, chunks & snippets, with the e2form script to email a form to our account, populate a database, & email a confirmation to the form filler.
                • When you upload the files, you'll get an "install" folder. Just go to domain.com/install to run the installer; actually this updates the database. As long as you have your config.inc.php file still in manager/includes, the install will automatically offer the "update existing site" option.
                    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
                    • 40453
                    • 9 Posts
                    Thanks Susan, one site has been updated. Next one Saturday. I'll keep posted on progress.