Forum Problems Installing LAMS: Integration Validate Problem


 
You may request notification for Integration Validate Problem.
Search: 

1: Integration Validate Problem
By: Yan Xu
08/20/09 11:06 PM
[ Reply | Forward ]
Hello,
When I integrate lams with Moodle,"Validate" can not make a use. 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 chose one.
User Information URL: http://61.142.248.19/moodle/mod/lamstwo/userinfo.php?ts=%timestamp%&un=%username%&hs=%hash%
Timeout URL: http://61.142.248.19:8180/lams

Lams module settings in Moodle:
server_url: http://61.142.248.19:8180/lams
server_id: moodle
server_key: moodle
request_source: Moodle

When I click Validate, I get no one and the brower bottom shows that script error. I do not save the settings since they are not correct.

Help me please!
Thanks very much!!

Posted by Yan Xu

2: Re: Integration Validate Problem
By: Yan Xu
In response to 1 08/21/09 01:34 AM
[ Reply | Forward ]
Hello,
And I do not know why can I add lamsv2 activity,and characters changed to be irrecognizable .


Sequence

The directory structure below contains the sequences you can create a lesson for.
Select one and click on the next button to continue.

我的工作区

yan xu



我的工作组

mdl_6

mdl_6 运行序列

Posted by Yan Xu

6: Re: Re: Integration Validate Problem
In response to 2 08/23/09 04:03 PM
[ Reply | Forward ]
Hi Yan,

I have figured out what causes this encoding problem. Go to your moodle/mod/lamstwo folder and in the lib.php file, go to line 256 and comment out this line:

// $xml = utf8_encode($xml);


It seems that we were utf-8 encoding twice.

Once you comment this out, it should work no problems.

Thanks,

Ernie

Posted by Ernie Ghiglione

10: Re: Re: Re: Integration Validate Problem
By: Yan Xu
In response to 6 08/23/09 07:06 PM
[ Reply | Forward ]
Oh, Ernie
$xml = utf8_encode($xml); I just found only one in the lib.php.
it encoded only once on my sever!

Posted by Yan Xu

12: Re: Re: Re: Integration Validate Problem
By: Yan Xu
In response to 6 08/23/09 07:12 PM
[ Reply | Forward ]
Hi,
I comment out this line:

// $xml = utf8_encode($xml);

and no irrecognizable code now!
Thanks very much! Ernie!

Posted by Yan Xu

7: Re: Re: Integration Validate Problem
In response to 2 08/23/09 04:28 PM
[ Reply | Forward ]
Actually Yan, I think you are using an older lamstwo module. Which version have you downloaded?

Note that in the download page there are two options, one for Moodle 1.8+ and the other one for Moodle 1.6.

Make sure you are using the 1.8+ version if you are using Moodle 1.8 or higher.

Thanks,

Ernie

Posted by Ernie Ghiglione

9: Re: Re: Re: Integration Validate Problem
By: Yan Xu
In response to 7 08/23/09 06:56 PM
[ Reply | Forward ]
My lamstwo module is 2.0.2 version,and my lams installed is 2.3 version ,my moodle is 1.7.1

Posted by Yan Xu

11: Re: Re: Re: Integration Validate Problem
By: Yan Xu
In response to 7 08/23/09 07:07 PM
[ Reply | Forward ]
So I used lamstwo for Moodle 1.6+.

Posted by Yan Xu

3: Re: Integration Validate Problem
By: Yan Xu
In response to 1 08/21/09 01:49 AM
[ Reply | Forward ]
Also,it calls attention to this in moodle:
All the LAMS module settings have not been set up!
Please contact your administrator.

Posted by Yan Xu

4: Re: Integration Validate Problem
By: Yan Xu
In response to 1 08/21/09 08:39 PM
[ Reply | Forward ]
Hello,
I also have another problem,
when I access the lams:http://61.142.248.19:8180/lamsthrough the remote computer not the localhost,the browser shows that: The domain name can not be analyzed.

您输入的域名无法解析,查找正确域名:
So, when I want to creat an activity through lamsv2,it shows not only irrecognizable code before click the "Connitue" button,but also can not access lams on the remote machine after click the "Connitue" button.

Help me please!

Posted by Yan Xu

5: Re: Integration Validate Problem
In response to 1 08/23/09 02:44 PM
[ Reply | Forward ]
> When I click Validate, I get no one and the brower bottom shows that script error.

What's the script error you are getting?

Posted by Ernie Ghiglione

8: Re: Re: Integration Validate Problem
By: Yan Xu
In response to 5 08/23/09 06:54 PM
[ Reply | Forward ]
Hi,
No detailed explanation to show ,it just shows "Script Error" on the status bar.

Posted by Yan Xu

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