We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Is there anything in that /temp directory? Possibly there was a problem with downloading the file.
      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
      • 24374
      • 322 Posts
      Quote from: sottwell at Oct 03, 2015, 04:46 PM
      Is there anything in that /temp directory? Possibly there was a problem with downloading the file.
      Nothing at all. I also deleted the directory to start fresh. Running the script recreated the directory, with nothing in it. After starting the script, the error message appears pretty quickly, so it's not downloading much, if anything, before throwing the error.
        • 3749
        • 24,544 Posts
        I don't know what to make of that, since the download has to be successful in order to get to the part that generates that error. Maybe the download code is failing but reporting success for some reason.

        Do you know if ZipArchive is available? It can be a little flaky on some platforms. Maybe there should be a way to force the use of PclZip.

        The relevant code is at around line 165 of the UpgradeModxScriptSource chunk.

        As an experiment, you might try changing this line:

        if (class_exists('ZipArchive', false)) {


        to this:

        if (false && class_exists('ZipArchive', false)) { 


        That would force it to use PclZip.
          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
          • 24374
          • 322 Posts
          Quote from: BobRay at Oct 03, 2015, 10:13 PM
          I don't know what to make of that, since the download has to be successful in order to get to the part that generates that error. Maybe the download code is failing but reporting success for some reason.

          Do you know if ZipArchive is available? It can be a little flaky on some platforms.

          Don't know.

          Quote from: BobRay at Oct 03, 2015, 10:13 PM
          As an experiment, you might try changing this line:

          if (class_exists('ZipArchive', false)) {


          to this:

          if (false && class_exists('ZipArchive', false)) { 

          Tried that, but same result. BUT, I also tried changing all references to "/temp" in the chunk to "/temp2", and the script still creates the directory "/temp", so I don't know see that the updated chunk is actually being used, even after clearing the entire cache directory manually. [ed. note: rainbowtiger last edited this post 8 years, 5 months ago.]
            • 3749
            • 24,544 Posts
            Did you change the file or the UpgradeModxScriptSource chunk in the Elements tree of the Manager? It's the chunk that's actually used.
              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
              • 24374
              • 322 Posts
              I changed it in both places.
                • 3749
                • 24,544 Posts
                Sorry I can't be much help now -- pinched nerve in my shoulder -- can only type with one hand. New version coming out as soon as I get the use of my hand back. wink

                  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
                  • 24374
                  • 322 Posts
                  Quote from: BobRay at Oct 05, 2015, 03:37 AM
                  Sorry I can't be much help now -- pinched nerve in my shoulder -- can only type with one hand. New version coming out as soon as I get the use of my hand back. wink

                  Ooh, that can be nasty. Hope you get some relief soon.
                    • 51269
                    • 7 Posts
                    Hi Bob,
                    Thanks for writing the script, I think it's a great idea, although, I have not managed to get it to work on 2 different ModX Revo installs (on 2 different servers).
                    Test one:
                    Current Revo 2.2.9 shows me the widget with the available upgrades, and clicking on it shows ugm_no_version_list@ path.../htdocs/core/cache/upgrademodx/versionlist
                    All directories exist and are writable by the server.

                    Test two:
                    Current Revo 2.2.6, widget does not show, but an error: Error: (GitHub) name lookup timed out

                    Any hints would be greatly appreciated
                    • A few times I've had it timeout on the access to the remote repositories that it checks for available versions. Usually I wait a minute and try again, and it works.
                        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