Open mandamas opened 7 years ago
Not sure if this is a bug with vmchat or with proxy. Related StackOverflow : http://serverfault.com/questions/185894/proxy-error-502-reason-error-reading-from-remote-server-with-apache-2-2-3-de
What proxy server is being used at your end? Is this error in php (auth file)?
As I have found the only place where you call to the curl functions is in auth.php
function my_curl_request($url, $postdata){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HEADER, 'content-type: text/plain;'); curl_setopt($ch, CURLOPT_TRANSFERTEXT, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_PROXY, false); curl_setopt($ch, CURLOPT_SSLVERSION, 1); $result = @curl_exec($ch); if ($result === false) { echo 'Curl error: ' . curl_error($ch); exit; } curl_close($ch); return $result; }
The function has the parameter CURLOPT_PROXY set to false
If I have a proxy in my web site must I change it to true or 1 ?
If I must, must I also set the following parameters ?
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1); curl_setopt($ch, CURLOPT_PROXY, 'fakeproxy.com:1080'); curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
I beg you to help me in order to install the plugin in my Moodle website Thank you in advance
2016-12-21 3:38 GMT-03:00 Jai Gupta notifications@github.com:
Not sure if this is a bug with vmchat or with proxy. Related StackOverflow : http://serverfault.com/ questions/185894/proxy-error-502-reason-error-reading-from- remote-server-with-apache-2-2-3-de
What proxy server is being used at your end? Is this error in php (auth file)?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vidyamantra/moodle-local_vmchat/issues/12#issuecomment-268448592, or mute the thread https://github.com/notifications/unsubscribe-auth/AXircb2aZyA8RGt_Bw3yDXjfexryoHtjks5rKMltgaJpZM4LSSru .
--
Dr. Hugo Aldo Espósito Director Ejecutivo Buenos Aires, Argentina (54911) 5662 0560 hugo@aulaweb.org hugo.aulaweb@gmail.com www.aulaweb.org
Hi jgupta !! Have you any answer for my question about the issue ?? Thank you in advance
@mandamas with my current workload I am not able to get time to setup proxy environment to test things. Are you sure you are using proxy on your Moodle server? In my last post I asked you details about your proxy setup. Please confirm if proxy is being used at your Moodle server or proxy is just at client side (near browsers).
You may try using this.
Hi !!
Our communications department solved the proxy issue and now our server communicates with the yours without problem. It remains one question: When the user logs into Moodle in the home page the footer chat bar do not appears, only when the user changes to another page and returns to the home page the footer bar appears in the home page. It this a normal plugin behavior? If it is, what is the explanation of this behavior.? Thank you in advance..
2016-12-27 12:04 GMT-03:00 Jai Gupta notifications@github.com:
@mandamas https://github.com/mandamas with my current workload I am not able to get time to setup proxy environment to test things. Are you sure you are using proxy on your Moodle server? In my last post I asked you details about your proxy setup. Please confirm if proxy is being used at your Moodle server or proxy is just at client side (near browsers).
You may try using this http://stackoverflow.com/questions/5211887/how-to-use-curl-via-a-proxy.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vidyamantra/moodle-local_vmchat/issues/12#issuecomment-269337295, or mute the thread https://github.com/notifications/unsubscribe-auth/AXircTFpqBEDVR_KFYpRtUyUfYfj2PDaks5rMSkGgaJpZM4LSSru .
--
Dr. Hugo Aldo Espósito Director Ejecutivo Buenos Aires, Argentina (54911) 5662 0560 hugo@aulaweb.org hugo.aulaweb@gmail.com www.aulaweb.org
No, this is not a normal behavior. After login chat bar appears on all pages including home page. Is there any error message in console?
Hi ! The console reflect the explained fact, but no error at all are reported in the console. Next 3 images shows 1 - When you are not logged in the console is clear
2 - When you login the console remains clear ( here is the bug )
3 - If you navigate to any page inside the site, a course page as example, this is the moment when the connection with the server appears in the console and remains there all the time until you logout.
The third image remaining
Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: Error reading from remote server Apache/2.2.22 (Debian) Server at virtual.uflo.edu.ar Port 80