Hi forum,
I've already asked this in a different thread, but it may be hidden there - so that's why I'm opening a new topic now:
If I click on "Check for upgrade", I get the error message "Unable to check for upgrade.". The reason is that all outgoing connection son the server have to go through a proxy. Is there a way to set this globally?
Thanks in advance for any hints!
Sebastian
Offline
Hello
Well ... due to all the answers ^^, I'll notify a member of the team which worked on it
Offline
I think it is possible, but core files have to be modified (fetchRemote function in admin/functions.inc.php)
Offline
OK - thanks! I'm looking forward to a solution!
Best,
Sebastian
Offline
Here is how I did it, I am currently behind a proxy and this works and tested on 2.3.0:
Open 'admin\include\functions.php' with a text editor.
Find:
@curl_setop($ch, CURLOPT_URL, $src);
should be around line 1819
add these 2 lines after it:
@curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 0); @curl_setopt($ch, CURLOPT_PROXY, 'your_proxy_server:8080');
UPDATE: I just tried it on 2.3.1 and it worked as well.
Last edited by cherlihy (2011-11-14 16:21:58)
Offline
I too have the issue where I can't check for upgrade due to being behind a proxy. I tried the functions.php code change, but that hasn't helped either. Likely due to me needing to specify credentials, but I'm unsure.
Any help would be much appreciated!
Got it working by adding additional code for authentication:
curl_setopt ($ch, CURLOPT_PROXYUSERPWD, "user:pass");
Jason wrote:
Got it working by adding additional code for authentication:
curl_setopt ($ch, CURLOPT_PROXYUSERPWD, "user:pass");
thx for sharing your solution
Offline