We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23018
    • 353 Posts
    BTW. I might be mistaken, but I believe there used to be generic link to the latest version of mod.

    I can't find it on github and modxcms.com/download also doesn't have a generic link to the latest version. Perhaps I'm just making up things.

    If this is the case, it would be nice to have such a link...

    Regards,

    pepebe
      Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
      • 37042
      • 384 Posts
      Tried it on a 2.2.10 to 2.2.12 site and had a white options page.
      Googled around and read about config.inc issues.

      Seems the script didn't update my config file but over write it with a blank version.
      Is that a known bug?
        ...
        • 42399
        • 39 Posts
        Quote from: eladnova at Mar 10, 2014, 03:55 PM
        Tried it on a 2.2.10 to 2.2.12 site and had a white options page.
        Googled around and read about config.inc issues.

        I think it's not script's fault. The script only downloads distro and unpacks it - and as far as I know there is no blank config.inc in Revo distros.

          • 28042 ☆ A M B ☆
          • 24,524 Posts
          No, this wouldn't be a problem relating to the installer script. In fact, once it shifts from the installer to the setup, you can cancel at any point and the files are still downloaded and unpacked for setup any time you like. If the setup is aborting and leaving you with an empty config.inc.php file, something else entirely is wrong.
            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
            • 14919
            • 19 Posts
            Thank you for creating this! Awesome. I was able to upgrade one site very quickly. On two others I am having trouble... when I choose my upgrade option in the install.php page it takes me to my custom 404 page. Any ideas of what I might be doing wrong or what might be causing this?

              • 28042 ☆ A M B ☆
              • 24,524 Posts
              As someone else pointed out to me, the upload of the MODX .zip file may not work on all servers - fopen using a URL may not be allowed (cURL might be a better option?). I'm not exactly sure what happens in such a case. Two things you can look at, though... check your installation to see if the setup/ directory is there, and check your server's php error log.
                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
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                I turned off allow_url_fopen on my localhost, and the "not found" for the setup/index.php is exactly what I got.
                  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
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Heh. Replaced the downloadFile() function with a cURL implementation and it works just fine. Of course, not all servers have cURL, but Revo at least doesn't do too well on those servers anyway.

                  	static public function downloadFile ($url, $path) {
                  		$ch = curl_init($url);
                  		$fp = fopen($path, "w");
                  
                  		curl_setopt($ch, CURLOPT_FILE, $fp);
                  		curl_setopt($ch, CURLOPT_HEADER, 0);
                  
                  		curl_exec($ch);
                  		curl_close($ch);
                  		fclose($fp);
                  	}	

                  http://www.php.net/manual/en/curl.examples-basic.php

                  [ed. note: sottwell last edited this post 12 years, 6 months ago.]
                    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
                    • 14919
                    • 19 Posts
                    I updated 29 evo and revo sites last night in about 2 hours! I still couldn't get the same few to work that are sending me to the 404 page even after I tried the curl. I have a feeling it is something with this particular hosting that is preventing the script. It does not install. It just takes me to the 404 page and the install.php goes away.
                    Jean
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      The install.php automatically removes itself.

                      There is no checking to make sure that the files were transferred and the setup directory actually exists before the browser is redirected to the setup/index.php file.

                      There should be some checking for the status of allow_url_fopen before attempting to use it. If the cURL is added, a check for cURL should also be made before anything else is done.

                      It's a very useful script when allow_url_fopen is on, but it's very rudimentary at this point.
                        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