Forum LAMS for Tech-Heads - General Forum: problem connecting lams with moodle


 
You may request notification for problem connecting lams with moodle.
Search: 

1: problem connecting lams with moodle
12/22/11 05:12 AM
[ Reply | Forward ]
Hello! I have a moodle server (ver. 2.1.2, Linux Ubuntu 10.04 LTS) and a lams server (ver.2.3.4, Windows2003 server).. I have properly installed the lams module but, when trying to add a lams activity in a lesson the text I am getting back is "Call to LAMS failed: received an HTTP status of 400 Bad Request" (see attachment). I can make a lams activity only with the admin account of moodle.. Is there any solution for this?? Thank you in advance!

Posted by Andreas Panagiotopoulos

Attachments:
2: Re: problem connecting lams with moodle
In response to 1 12/22/11 09:18 AM
[ Reply | Forward ]
Hi Andreas,

You need to configure the integration on both: the LAMS and the Moodle end. See:

http://wiki.lamsfoundation.org/display/lamsdocs/Install+Moodle2+LAMS+Plugin

and

http://wiki.lamsfoundation.org/display/lamsdocs/Moodle

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: problem connecting lams with moodle
In response to 2 12/30/11 05:51 PM
[ Reply | Forward ]
The configuration settings for our LAMS server in both Moodle and LAMS are correct

They are exactly the same from another Moodle server who works (with the same LAMS server) but in this case does not.

Another issue is that we do not see the "Validate" button but we see only the Save button in Moodle.

Any other idea?

Spyros

Posted by Spyros Papadakis

4: Re: Re: Re: problem connecting lams with moodle
In response to 3 01/03/12 12:47 AM
[ Reply | Forward ]
Hi Spyros,

Yes, the validate button on the Moodle side is a pending issue.

Perhaps the URLS that you entered on LAMS to talk to the Moodle server aren't correct?

Here are the URL I have in LAMS (in the Maintain integrated servers option in LAMS Sysadmin menu):

User Information URL:
http://my-moodle-server/moodle/mod/lamslesson/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%

Lesson finish callback URL:

http://my-moodle-server/moodle/mod/lamslesson/callback.php?lsId=%lessonid%&un=%username%&ts=%timestamp%&hs=%hash%


Of course, you'll need to change the my-moodle-server domain to yours. But check that the rest of the URL is correct.


Now on the Moodle server, check that the "LAMS Server URL" has the last / after the word lams (for example: http://my-lams-server/lams/)



Thanks,

Ernie

Posted by Ernie Ghiglione

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