Forum Problems Installing LAMS: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+


 
You may request notification for Lams 2.1.3 Integration Validation Problem with Moodle 1.9+.
Search: 

1: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
By: KT Fav
07/09/09 03:16 PM
[ Reply | Forward ]
I have installed Lams and am able to log in. I then tried to integrate with Moodle. My integrated server settings are:

ID: moodle
Key: moodle
Name: moodle
Description: moodle
Prefix: mdl
Organisation: I did not have the option to create one so I do not have one.
User Information URL: http://moodle.aisd.net/moodle/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%
Timeout URL: http://localhost:8080/lams

Lams module settings in Moodle:
server_url: http://localhost:8080/lams
server_id: moodle
server_key: moodle
request_source: moodle

When I click Validate, I get an empty dialog box with an explanation point. I do not save the settings since they are not correct.

Is this because of the lack of Organization? If so, how do I go back and add it it.

Thanks for your help!

Posted by KT Fav

2: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
In response to 1 07/09/09 06:05 PM
[ Reply | Forward ]
Hi Katie,

I think I have seen this before, can you try saving the config on the moodle side, then go back to the same page again and click validate again.... I've found that sometimes it needs you to save it first.

Luke

Posted by Luke Foxton

3: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
In response to 1 07/09/09 06:35 PM
[ Reply | Forward ]
Another thing it might be is that if LAMS, Moodle, and your browser are not all on the same host, then a server_url of 'http://localhost:8080/lams' won't work. The host of the url needs to be accessible from the Moodle server and from your browser, e.g. a local IP, or a name like lams.example.com.

Posted by Jun-Dir Liew

4: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
By: KT Fav
In response to 1 07/13/09 07:18 AM
[ Reply | Forward ]
Sorry for the delay. I had some time off.

I have tried both of these. I have re-saved the config file and then used the URL path to the LAMS server (they are also on the same server).

I am still not able to validate.

The request source should match the organisation. Is this correct? Since I don't have an organisation, could that be the problem?

Posted by KT Fav

5: Re: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
In response to 4 07/13/09 06:18 PM
[ Reply | Forward ]
The request_source is purely for displaying the text 'Return to {request_source}' when you close Author. An organisation will get created on the fly using course name parameters once you start using the integration.

Are there any exceptions (errors) in your lams log file? /path/to/jboss-4.0.2/server/default/log/server.log

Your /path/to/jboss-4.0.2/server/default/log/localhost_access.2009-07-14.log file should have a line containing 'VerificationService' at the end once you've clicked 'Validate'. If it doesn't, LAMS isn't receiving the call.

If you turn Moodle's debugging level to full, you may be able to see some extra messages. In the admin menu, go to Server->Debugging.

Posted by Jun-Dir Liew

6: Re: Re: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
By: KT Fav
In response to 5 07/14/09 12:01 PM
[ Reply | Forward ]
I could not find any exceptions in the lams log file:
/jboss-4.0.2/server/default/log/server.log

I also could not find the 'VerificationService' in the access log, which means Lams isn't receiving the call.

I turned on the debugging to full, but could not locate a log or where I would see the extra messages.

Thanks so much for your help!!

Posted by KT Fav

7: Re: Re: Re: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
In response to 6 07/14/09 06:21 PM
[ Reply | Forward ]
The extra debugging should show on screen - there might also be messages in your apache error_log (e.g. /var/log/apache2/error_log on debian/ubuntu).

Try putting the verify call in your browser by accessing http://moodle-server/moodle/mod/lamstwo/verify.php - this should output the result of the call to the VerificationService in LAMS. In your case it may be a lower level error or something since the call doesn't seem to be reaching LAMS.

Posted by Jun-Dir Liew

8: Re: Re: Re: Re: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
By: KT Fav
In response to 7 07/22/09 07:44 AM
[ Reply | Forward ]
The error I receive is (and I see the error three times):
Notice: Undefined index: k in C:\xampp\htdocs\moodle\mod\lamstwo\verify.php on line 5

Posted by KT Fav

9: Re: Re: Re: Re: Re: Re: Lams 2.1.3 Integration Validation Problem with Moodle 1.9+
In response to 8 07/22/09 06:37 PM
[ Reply | Forward ]
Hmm, those notices are fine, but there should at least be something after that - e.g. this message when lams isn't running:

HTTP Error: Couldn't open socket connection to server http://localhost:8080/lams//services/VerificationService?wsdl, Error (111): Connection refused

Does the integration work regardless of the verification button not working? Looking at your settings, for production you'll need to change LAMS' server url to (probably) http://moodle.aisd.net:8080/lams. The reason is that users' browsers will be using this url to open lams author and learner, and they can't do that from their computers if the url is localhost.

Posted by Jun-Dir Liew

Reply to first post on this page
Back to Problems Installing LAMS