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
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?
...
-
☆ 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.
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?
-
☆ 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.
-
☆ 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.
-
☆ 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.]
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
-
☆ 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.