Forum LAMS for Tech-Heads - General Forum: Re: Moodle 2 integration update


 
Search: 

53: Re: Moodle 2 integration update
In response to 1 01/10/13 11:50 AM
[ Reply | Forward ]
Hi Ernie,

I've recently installed LAMS 2.4 which we intend to use in the near future and the latest plugin for Moodle 2 (20120322) and after configuring the correct URLs in both LAMS and Moodle2 and having a successful validation I get the following error message when trying to add a lamslesson to a module:

HTTP Status 400 - Problem with LearningDesignRepositoryServlet request

type Status report

message Problem with LearningDesignRepositoryServlet request

description The request sent by the client was syntactically incorrect (Problem with LearningDesignRepositoryServlet request).


The following error message is posted into the apache logs of Moodle:

[Thu Jan 10 16:36:43 2013] [error] [client] PHP Notice:  cURL request for "http://ourserver.com:8080/lams//services/xml/LearningDesignRepository?serverId=uwsmoodle&datetime=January+10%2C2013+4%3A36+pm&hashValue=f3acd71999145b4d8d16c2cdb721fe949d293894&username=11111055&courseId=75&courseName=ICT+Testing+Module+2%2F2012&mode=2&country=GB&lang=en" failed, HTTP response code: HTTP/1.1 400 Bad Request\r\n<ul style="text-align: left"><li>line 1298 of /lib/filelib.php: call to debugging()</li><li>line 918 of /mod/lamslesson/lib.php: call to download_file_content()</li><li>line 321 of /mod/lamslesson/lib.php: call to lamslesson_http_call()</li><li>line 95 of /mod/lamslesson/mod_form.php: call to lamslesson_get_sequences_rest()</li><li>line 194 of /lib/formslib.php: call to mod_lamslesson_mod_form->definition()</li><li>line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()</li><li>line 260 of /course/modedit.php: call to moodleform_mod->moodleform_mod()</li></ul> in /var/www/lib/weblib.php on line 2865, referer: http://ourserver.com/course/view.php?id=75&notifyeditingon=1
[Thu Jan 10 16:36:43 2013] [error] [client] Default exception handler: Call to LAMS failed: received no response or connection was refused. Please check that you have the correct LAMS server URL and that it is online. Debug: \nError code: restcallfail\n* line 467 of /lib/setuplib.php: moodle_exception thrown\n* line 324 of /mod/lamslesson/lib.php: call to print_error()\n* line 95 of /mod/lamslesson/mod_form.php: call to lamslesson_get_sequences_rest()\n* line 194 of /lib/formslib.php: call to mod_lamslesson_mod_form->definition()\n* line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()\n* line 260 of /course/modedit.php: call to moodleform_mod->moodleform_mod()\n, referer: http://ourserver.com/course/view.php?id=75&notifyeditingon=1

I'm not sure what step I might have missed in setting it up because I've gone over it a few times and it all seems correct i.e. URLs, server ID and key, integration enabled on LAMS, curl installed in PHP5 on Debian Squeeze on both servers, connectivity between servers is okay etc.

We are using Moodle 2.3.1+ (version: 2012062501.11)

Any suggestions?

Kind Regards,
Richard

Posted by Richard Flurey

54: Re: Re: Moodle 2 integration update
In response to 53 01/11/13 07:02 AM
[ Reply | Forward ]
Hi Richard,

I'll be looking into this today, so most likely on Monday, I'll have an answer for you. Need to set up your exact version of Moodle to test. Thanks for your patience.

Cheers,

Ernie

Posted by Ernie Ghiglione

55: Re: Re: Re: Moodle 2 integration update
In response to 54 01/14/13 03:00 AM
[ Reply | Forward ]
Thank you Ernie.

Its much appreciated that you are going to test it out for us. I look forward to hearing from you soon.

Cheers,

Richard

Posted by Richard Flurey

56: Re: Re: Re: Re: Moodle 2 integration update
In response to 55 01/22/13 09:47 AM
[ Reply | Forward ]
Hi Richard,

I've done some changes to adapt the current lamslesson module to Moodle 2.4 now.

It seems to be working fine with the latest Moodle 2.4.1+, so I'll email you shortly the link so you can test this.

Hopefully we can release this publicly in the next few days.

Thanks,

Ernie

Posted by Ernie Ghiglione

57: LAMS and Moodle 2.4.x
In response to 56 01/25/13 02:56 PM
[ Reply | Forward ]
Hi Guys,

Just to let you know that if you are using LAMS 2.4.x, then please let me know as we are testing a new version of the LAMS-Moodle plugin.

It seems that the LAMS-Moodle plugin for Moodle 2.3 does not work with 2.4, so we will need to start forking and supporting two Moodle versions.

This is due to the architectural changes that Moodle has done between these two releases.

If you are able or want to help out testing this, email me directly.

Thanks,

Ernie

Posted by Ernie Ghiglione

58: LAMS and Moodle 2.4.x
In response to 57 01/29/13 09:20 AM
[ Reply | Forward ]
Hi Everyone,

Just wanted to let you know that there's a new version of the LAMS-Moodle plugin for Moodle version 2.4 available here:

http://wiki.lamsfoundation.org/display/lams/Integrations

If you have any questions, please post here.

Cheers,

Ernie

Posted by Ernie Ghiglione

59: Re: LAMS and Moodle 2.4.x
In response to 58 04/22/13 04:12 AM
[ Reply | Forward ]
Hi Ernie,

I have tried Moodle 2.4 with LAMS 2.4 following 2.4 integration instructions. Validation gives a success message but when I actually try to add a lesson it gives an error.

Error on Screen is "Call to LAMS failed: received no response or connection was refused. Please check that you have the correct LAMS server URL and that it is online."

Where as error/exception in JBoss logs is
"ERROR org.lamsfoundation.lams.webservice.xml.LearningDesignRepositoryServlet - Problem with LearningDesignRepositoryServlet request
java.lang.ArrayIndexOutOfBoundsException: 1
at org.lamsfoundation.lams.integration.service.IntegrationService.createExtUserUseridMap(IntegrationService.java:274)
"

Any idea what I am missing out here ?

Posted by Atif Rasheed

60: Re: Re: LAMS and Moodle 2.4.x
In response to 59 04/22/13 07:12 AM
[ Reply | Forward ]
previously I installed LAMS on same instance (Ubuntu 12) where I had Moodle but now I installed LAMS on windows and it worked. Now sure what went wrong with LAMS instance in Linux.

Posted by Atif Rasheed

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum