Forum .LRN Q&A: PROBLEMS WITH LAMS MODULE

Collapse
Posted by Felix Paco on
Hi all,

I installed the LAMS's package and I get the following error when I create a new lesson:

error "syntax error" at line 1 character 0
"File not found."
while executing
"dom parse $xml"
invoked from within
"set doc [dom parse $xml]"
("uplevel" body line 54)
invoked from within
"uplevel {
# packages/lams2int/www/admin/add.tcl
ad_page_contract {
Adds a LAMS lesson
@author Ernie Ghiglione (mailto:ErnieG@melcoe...";
(procedure "code::tcl::/var/www/dotlrn-2.3.1/packages/lams2int/www/admin..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {
# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {
if { [file exists $__adp_stub.tcl] } {
# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare"
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."

Anyone can help me why I get this error?

Thanks in advance,

Felix.

Collapse
Posted by Dave Bauer on
This looks like your configuration for the LAMS integration is not setup. Make sure the settings in the lams-conf package point to your LAMS server.

It appears that when the XML file is fetched a file not found error is returned from your LAMS server.

Collapse
Posted by Ernie Ghiglione on
Hi Felix,

As Dave points out, it seems this is a problem with the configuration.

Have a look at this page for further instructions and animations on how to configure LAMS and .LRN.

If after checking the configuration this doesn't work, check any firewall issues that might prevent your .LRN server making http connections to the LAMS server.

Thanks,

Ernie