We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11121
    • 79 Posts
    Dedicated Server. Linux. Plesk 12.

    I have a site with 2.2.14 on. Everything works OK. I clear cache. Flush.

    I copy the .zip file to root. Then I transfer the 2.3.1 extracted files and directories from the new extracted folder to root. I check the option at Plesk windows to replace files with the same name.

    I run setup. I get some errors* and update is finishing with success (?). During installation the Modx version at the top right shows 2.2.14. The interface is from 2.3.1 though.

    After the completion of the installation the manager is still the old one. 2.2.14.

    I am suspecting that the problem is when I copy the files using the plesk file manager.

    Any suggestion?


    *Error updating table for class modResource
    Array
    (
    [0] => 42000
    [1] => 1061
    [2] => Duplicate key name 'cache_refresh_idx'
    )

    Error updating table for class modMenu
    Array
    (
    [0] => 00000
    [1] => 1061
    [2] => Duplicate key name 'cache_refresh_idx'
    )

    Error updating table for class modContext
    Array
    (
    [0] => 00000
    [1] => 1061
    [2] => Duplicate key name 'cache_refresh_idx'
    )

    Error updating table for class modContext
    Array
    (
    [0] => 00000
    [1] => 1061
    [2] => Duplicate key name 'cache_refresh_idx'
    )

      • 14214
      • 299 Posts
      Strange. I am thinking one of two things, the core is the wrong location (check the core.config.php file in the root of your site to see what is set as the core location. Also check the ownership of the files to see if perhaps you're running in a setup that does not provide the authority to overwrite the old files.
        • 3749
        • 24,544 Posts
        When you unzip on the server, the usual default behavior is to unzip all the files into a subdirectory named for the MODX version. If that's what happened, MODX would ignore them. You can move the contents of that directory to the root, or:

        I usually unzip them locally, go into that directory, and create a new .zip file. Then upload and unzip that on the server, being careful to set the target to the MODX root directory.
          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
          • 11121
          • 79 Posts
          Quote from: BobRay at Sep 27, 2014, 10:45 PM
          When you unzip on the server, the usual default behavior is to unzip all the files into a subdirectory named for the MODX version. If that's what happened, MODX would ignore them. You can move the contents of that directory to the root, or:

          I usually unzip them locally, go into that directory, and create a new .zip file. Then upload and unzip that on the server, being careful to set the target to the MODX root directory.


          I did the same and worked! Download zip of the site local, copy new modx version local, create new zip and upload to the server.

          I think the problem comes from the plesk or the server. I noticed that when I copy the new folders to root, that core and manager folders are not merging with the old folders. So only setup folder unzip and the rest are remaining the same.

          With CPanel merging was working perfectly. But CPanel costs 30 euro per month and plesk is free on my hosting provider...
            • 3749
            • 24,544 Posts
            AFAIK, cPanel is free at all of the sites listed here. 30 Euro/month seems like an outrageous price to me.

            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
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              It's probably a VPS or dedicated server. Those usually don't come with CPanel, and there is usually an option to purchase it if you want it on your server.
                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
                • 11121
                • 79 Posts
                Quote from: sottwell at Sep 28, 2014, 11:42 PM
                It's probably a VPS or dedicated server. Those usually don't come with CPanel, and there is usually an option to purchase it if you want it on your server.

                That's correct. I was in a VPS and now I have dedicated. Plesk is not bad, but Cpanel was better, at least for me.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I have never had any problems upgrading using the install.php script, it downloads, uncompresses and moves the files automatically. https://github.com/sottwell/installer
                    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
                    • 1343 ☆ A M B ☆
                    • 2,213 Posts
                    That's not a cPanel VPS license, or your provider is making a heck of a profit on that license. That being said the cost of a license is sometimes cheaper than the cost of going without a license.
                      Patrick | Server Wrangler
                      About Me: Website | Tweets |  MODX Hosting