|
|
|
|
|
21:
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Error adding lams lesson activity in Moodle
|
In response to 20
|
02/09/10 11:38 AM |
|
Hi,
Thank you for your quick response.
Error on Moodle side: lamstwo_get_lesson: HTTP Error: socket read of headers timed out
Error in LAMS log: 2010-02-09 17:15:14,200 [http-0.0.0.0-8080-2:] ERROR org.lamsfoundation.lams.tool.mc.service.McServicePOJO - mcSession does not exist yet: 1527
I am admin and I created the lesson in LAMS.
In fact this is exactly the same error that I got before this fix (http://bugs.lamsfoundation.org/browse/LDEV-2086?).
Moddle's verison is 1.9.4+ and nusoap.php has the following code regarding conection timeout(has not been changed!):
function connect($connection_timeout=0,$response_timeout=30){
// For PHP 4.3 with OpenSSL, change https scheme to ssl, then treat like
// "regular" socket.
// TODO: disabled for now because OpenSSL must be *compiled* in (not just
// loaded), and until PHP5 stream_get_wrappers is not available.
// if ($this->scheme == 'https') {
// if (version_compare(phpversion(), '4.3.0') >= 0) {
// if (extension_loaded('openssl')) {
// $this->scheme = 'ssl';
// $this->debug('Using SSL over OpenSSL');
// }
// }
// }
Posted by Muesser Cemal Nat
|
|
|
22:
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Error adding lams lesson activity in Moodle
|
In response to 21
|
02/09/10 06:07 PM |
|
Perhaps we need to increase the 30 second response timeout as a workaround. In moodle/mod/lamstwo/lib.php, can you add two arguments to the soap_client constructor?
In the function 'lamstwo_get_soap_client', make the line that says
$s = new soap_client($wsdl,true,false,false,false,false);
into
$s = new soap_client($wsdl,true,false,false,false,false,0,0);
and we'll see if setting the response timeout to unlimited (0) works for you.
Thanks,
Posted by Jun-Dir Liew
|
|
|
23:
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Error adding lams lesson activity in Moodle
|
In response to 22
|
02/10/10 09:52 AM |
|
As suggested in the latest fix ( http://bugs.lamsfoundation.org/browse/LDEV-2086?) I was changed the following line;
$s = new soap_client($wsdl,true,false,false,false,false,3,3);
to
$s = new soap_client($wsdl,true,false,false,false,false,5,5); based on the fix.
But now I removed numbers and made it;
$s = new soap_client($wsdl,true,false,false,false,false);
and it works now :)
Thank you very much,
Posted by Muesser Cemal Nat
|
|
|
|
|