The version_list thing is also caused by either the repo or GitHub timing out. Hitting the "back" button, logging in, and reloading the page will usually fix it. I think I need to let people set the timeouts with properties. You'd think 5 seconds would be enough, but often it isn't.
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.
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 3500); curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 5500); curl_setopt($ch, CURLOPT_TIMEOUT, 10);
Try changing these lines in the snippet (around line 112)
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 3500); curl_setopt($ch, CURLOPT_TIMEOUT, 5);
To this:
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 5500); curl_setopt($ch, CURLOPT_TIMEOUT, 10);
See if that makes any difference.
Sorry about the trouble. I'm working on a new version, but it may be a while before it's out. I assume that you're using the latest version.
Try changing the &interval property of the snippet to 60 seconds and clearing the site cache. Then wait more than 60 seconds and load the dashboard (click on the MODX logo).
If that doesn't work, you might also try uninstalling, removing, re-downloading, and re-installing UpgradeMODX (you'll have to change the snippet properties again after it's installed).
Try changing these lines in the snippet (around line 112)I bumped the times even higher, and no luck. The "versionlist" file just isn't getting created. I checked the curl settings on this and another site for which the script works, and the only difference is that, on the site that works, there are two extra protocols listed for curl, smb and smbs. Would that make any difference?
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 3500); curl_setopt($ch, CURLOPT_TIMEOUT, 5);
To this:
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 5500); curl_setopt($ch, CURLOPT_TIMEOUT, 10);
See if that makes any difference.
Quote from: BobRay at Oct 21, 2015, 04:43 AMTry changing these lines in the snippet (around line 112)I bumped the times even higher, and no luck. The "versionlist" file just isn't getting created. If I install that file from another site, then it proceeds normally. I checked the curl settings on this and another site for which the script works, and the only difference is that, on the site that works, there are two extra protocols listed for curl, smb and smbs. Would that make any difference?
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 3500); curl_setopt($ch, CURLOPT_TIMEOUT, 5);
To this:
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 5500); curl_setopt($ch, CURLOPT_TIMEOUT, 10);
See if that makes any difference.