Forum LAMS for Tech-Heads - General Forum: Moodle-LAMS Open Lesson from Moodle - Login Failed


 
You may request notification for Moodle-LAMS Open Lesson from Moodle - Login Failed.
Search: 

1: Moodle-LAMS Open Lesson from Moodle - Login Failed
12/10/15 04:01 PM
[ Reply | Forward ]
http://moodle2.epyna.eu:8085/lams/monitoring/monitorLesson.jsp?lessonID=3


Monitor this lesson works ok but Open Lesson failed


HTTP Status 401 - Login Failed - authentication error

Posted by Spyros Papadakis

2: Re: Moodle-LAMS Open Lesson from Moodle - Login Failed
In response to 1 12/15/15 09:36 AM
[ Reply | Forward ]
Hi Spyros,

I'll liaise with you directly as I suspect that you might be using an integration module that is not correct for the version for the LAMS and/or Moodle version you are running.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Moodle-LAMS Open Lesson from Moodle - Login Failed
In response to 2 12/15/15 02:08 PM
[ Reply | Forward ]
Yes, we use an older module and it is working now!

Posted by Spyros Papadakis

4: Re: Re: Re: Moodle-LAMS Open Lesson from Moodle - Login Failed
In response to 3 12/22/15 05:23 AM
[ Reply | Forward ]
-

Posted by George Avgeris

5: Re: Moodle-LAMS Open Lesson from Moodle - Login Failed
In response to 1 12/22/15 05:26 AM
[ Reply | Forward ]
I was having the same problem with Moodle version 2.9 using Lams Moodle plugin 20150220

I use this as workaround:

Downgrade Moodle Lams plugin to 20120322 (Moodle 2.3)

Edit mod/lamslesson/mod_form.php

Comment out lines 32 and 33
// $PAGE->requires->yui2_lib('yahoo-dom-event');
// $PAGE->requires->yui2_lib('treeview');

Replace line 131 and 132
$treecomponent .= html_writer::tag('script', 'var tree = new YAHOO.widget.TreeView("treeDiv",['. $lds .']);tree.getNodeByIndex(1).expand(true);tree.getNodeByIndex(2).expand(true);', array('type' => 'text/javascript'));
$treecomponent .= html_writer::tag('script', 'var tree = new YAHOO.widget.TreeView("treeDiv",['. $lds .']);tree.getNodeByIndex(1).expand(true);tree.getNodeByIndex(2).expand(true);', array('type' => 'text/javascript'));
$treecomponent .= html_writer::script('', $CFG->wwwroot.'/mod/lamslesson/tree.js');

with this line (taken from Moodle Lams plugin 20150220):

$treecomponent .= html_writer::tag('script', 'YUI().use("yui2-treeview","yui2-dom-event", function(Y) {var YAHOO = Y.YUI2; var tree = new YAHOO.widget.TreeView("treeDiv",['. $lds .']);tree.getNodeByIndex(1).expand(true);tree.getNodeByIndex(2).expand(true);tree.render();tree.subscribe("clickEvent",function(oArgs) {selectSequence(oArgs.node.data.id, oArgs.node.label);})});', array('type' => 'text/javascript'));

Now Open Lesson link and Create a new Lams Lesson works!

I also had to alter the index.php file.I attach the 2 altered files.

Posted by George Avgeris

Attachments:
6: Re: Re: Moodle-LAMS Open Lesson from Moodle - Login Failed
In response to 5 12/22/15 05:27 AM
[ Reply | Forward ]
Thanks George. Very helpful!

Posted by Ernie Ghiglione

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