Forum LAMS for Tech-Heads - General Forum: Problems with integration of lams with moodle


 
You may request notification for Problems with integration of lams with moodle.
Search: 

1: Problems with integration of lams with moodle
07/13/07 10:51 AM
[ Reply | Forward ]
I've installed LAMS 2.0.3 on the same server as moodle. I've downloaded the lams v2 integration package for moodle and installed it.

No errors were reported during the install so I would consider the install itself successful. I can access LAMS through the admin console and log in successfully as an administrator. I've set up the lams v2 moodle activity and configured the settings in moodle to match the ones in LAMS (integrated server management).

When I attempt to use LAMS in moodle as an activity the following happens:
- i get a screen titled "Adding a new LAMS v2 to..." which shows me an empty sequence list in LAMS. When I click on the "Create Sequence" button I get a new window in which the following message is printed:

"HTTP 502 - Login Failed - failed to fetch user info from the third party server"

I think the problem is that LAMS cannot obtain the user info from moodle but I am not sure. Any ideas where to start with this problem?

Thanx,
Mike

Posted by Mike Peters

2: Re: Problems with integration of lams with moodle
In response to 1 07/13/07 03:22 PM
[ Reply | Forward ]
G'day Mike,

What have you put in the User Info URL under System Administration | Integrated Servers in LAMS?

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Problems with integration of lams with moodle
In response to 2 07/13/07 05:18 PM
[ Reply | Forward ]
http://localhost/moodle/mod/lams/userinfo.php?un=%username%&ts=%timestamp%&hs=%hash% My moodle is installed in the folder 'moodle' under the server root! Now that I am looking at this, I was wondering if it should say http://localhost/moodle/mod/lamstwo/... since I am using lams v2? ... so I changed it to http://localhost/moodle/mod/lamstwo/userinfo.php?un=%username%&ts=%timestamp%&hs=%hash% then restarted lams. Unfortunately I get the same error. Mike

Posted by Mike Peters

4: Re: Re: Re: Problems with integration of lams with moodle
In response to 3 07/13/07 06:15 PM
[ Reply | Forward ]
Mike,

You are right that it should be lamstwo. Your modified URL looks right.

A few things to try:

* Go into the admin screens in both Moodle and LAMS and make sure there aren't any whitespace characters at the beginning or ends of fields. I think we try to strip out extra characters but some might creep through.

* Try going to the url http://localhost/moodle/mod/lamstwo/userinfo.php directly and see what error you get. Make sure it isn't just a 404 (that is, a not found error).

I'm not game to start Moodle and check what error it will give - I tried a few minutes ago and the whole computer locked up. The PCs here at home are misbehaving badly today so I'm giving up before anything else goes wrong.

* Check your apache logs for any errors. If you can attach today's logs for apache (both the error log and the access log) to a posting. Zip them up and then attach them as one file.  If there is a lot of other stuff in the logs that you don't want to post, can you give us excerpts of the logs from when you try to access "Create Sequence".

Fiona

Posted by Fiona Malikoff

5: Re: Re: Re: Re: Problems with integration of lams with moodle
In response to 4 07/17/07 01:05 AM
[ Reply | Forward ]
Ok,

Checked for leading/trailing spaces, etc. It all seems to be ok!

I went to http://localhost/moodle/mod/lamstwo/userinfo.php and I get a blank HTML page, no errors. If I view the source I can see the header of the page that is the response.

Now, I don't use apache, I use IIS server. Is this going to be a problem?

Mike

Posted by Mike Peters

6: Re: Problems with integration of lams with moodle
In response to 1 07/20/07 05:31 PM
[ Reply | Forward ]
OK we have eliminated the easy checks...is there nobody who has some tips/ideas on how to get this one working?

Mike

Posted by Mike Peters

7: Re: Problems with integration of lams with moodle
In response to 1 07/20/07 06:59 PM
[ Reply | Forward ]
I've figured this one out and would like to post the answer here for others to benefit.

The problem was not with lams or with moodle. My moodle site is password protected so LAMS kept failing as it could not authenticate with the given URL.

The solution was to go into LAMS ddmin shared servers and change the URL to the format:

http://username:password@localhost/....

It's a simple problem which is easy to fix.

Mike

Posted by Mike Peters

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