Forum LAMS for Tech-Heads - General Forum: Re: Moodle 2 integration update


 
Search: 

41: Re: Moodle 2 integration update
In response to 1 11/25/11 08:07 AM
[ Reply | Forward ]
Hi there

(1) The module seems to create an error. Click on "Scales" in any place, e.g. Site administration->Grades->Scales

Moodle version: Moodle 2.1.2+ (Build: 20111125)
Integration version: 20110329-lamslesson.zip

Apache trace:
[Fri Nov 25 14:48:21 2011] [error] [client 129.194.31.31] Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error Debug: Argument 2 passed to moodle_database::record_exists() must be an array, string given, called in /data/portails/moodle/moodle/mod/lamslesson/lib.php on line 243 and defined\n* line 359 of /lib/setuplib.php: coding_exception thrown\n* line 1554 of /lib/dml/moodle_database.php: call to default_error_handler()\n* line 243 of /mod/lamslesson/lib.php: call to moodle_database->record_exists()\n* line 281 of /lib/grade/grade_scale.php: call to lamslesson_scale_used_anywhere()\n* line 139 of /grade/edit/scale/index.php: call to grade_scale->is_used()\n, referer: http://tecfalms.unige.ch/moodle/grade/report/grader/index.php?id=23

(2) The LAMS Lesson / LAMS Server Configuration page has a messed up message. I see:
"Here is where the button will go get_string('validationbutton', 'lamslesson') bold"

- greetings ! - Daniel

Posted by Daniel Schneider

42: Re: Re: Moodle 2 integration update
In response to 41 11/25/11 08:33 AM
[ Reply | Forward ]
Sorry, some missing background:
* The Lams integration module breaks the whole Moodle scaling system, i.e. does not just affect the LAMS module
* Putting the LAMS module to sleep, fixes the problem
* Don't know from which Moodle 2.x version this started happening, since we don't use either scales or LAMS that much. I personally don't use any LMS for most of my classes, but in about 10 days I plan to use both, so a fix would be nice :)

Posted by Daniel Schneider

43: Re: Re: Moodle 2 integration update
In response to 41 11/28/11 08:43 AM
[ Reply | Forward ]
Hi Daniel,

I believe there must have been an upgrade on the Moodle Gradebook that now makes this fail.

This week I'll have a look at this and hopefully get it fix.

Thanks for letting me know,

Ernie

Posted by Ernie Ghiglione

44: Re: Re: Moodle 2 integration update
In response to 41 12/04/11 11:49 AM
[ Reply | Forward ]
Hi Daniel,

Sorry for the delay in getting back to you.

As for (1), here's the quick fix.

Look for the following line in the mod/lamslesson/lib.php:


if ($scaleid and $DB->record_exists('lamslesson', 'grade', -$scaleid)) {

And change that to:


if ($scaleid and $DB->record_exists('lamslesson', array('grade' => -$scaleid))) {

That will fix the issue.

As for (2), I'm still working on this. However, this does not affect any functionality. It's just that I want to create a button on this page to validate the settings with the LAMS server, but with the new Moodle2 API, I still need to figure it out.

Let me know if you have any other issues with this.

Thanks,


Ernie

Posted by Ernie Ghiglione

45: Re: Re: Re: Moodle 2 integration update
In response to 44 12/04/11 12:39 PM
[ Reply | Forward ]
Attached you can find the latest code for lamslesson moodle module

Posted by Ernie Ghiglione

Attachments:
46: Re: Re: Re: Re: Moodle 2 integration update
In response to 45 12/05/11 05:14 AM
[ Reply | Forward ]
Thanx a lot Ernie

Seems to work fine now :)

Posted by Daniel Schneider

47: Re: Re: Re: Re: Re: Moodle 2 integration update
In response to 46 12/08/11 03:37 AM
[ Reply | Forward ]
I was feeling brave yesterday eve and installed Moodle 2.2. Good News: The Moodle-LAMS-Mahara integrations still work :)

Q: Why would I upgrade just days before using Moodle + LAMS ?

A: After countless years of waiting, Moodle now allows to grade assigments in a more or less acceptable way (using custom made evaluation rubrics). Grading and feedback is the only use I have for an LMS.

Posted by Daniel Schneider

48: Re: Re: Re: Re: Re: Re: Moodle 2 integration update
In response to 47 12/09/11 11:22 AM
[ Reply | Forward ]
Thanks for letting us know Daniel.

Cheers,

Ernie

Posted by Ernie Ghiglione

49: Re: Re: Re: Re: Re: Re: Moodle 2 integration update
In response to 47 12/09/11 11:50 AM
[ Reply | Forward ]
Oh, I forgot to add that our LAMS-Moodle2 demo site has now being upgrade to Moodle 2.2 as well in case someone wants to try this:

http://moodle.lamscommunity.org/moodle2

Thanks,

ernie

Posted by Ernie Ghiglione

50: Re: Re: Re: Re: Re: Re: Re: Moodle 2 integration update
In response to 49 01/14/12 02:54 PM
[ Reply | Forward ]
Hello

I have the same problem as Daniel Schneider about LAMS settings:

"Here Is Where the button Will Go get_string ('validationbutton', 'lamslesson') bold"

The installation is local

Mooodle Version: 2.2.1
Integration Version: 20111205-lamslesson.zip

Thank you very much for the help

Alex

Posted by Alex Forero

51: Re: Re: Re: Re: Re: Re: Re: Re: Moodle 2 integration update
In response to 50 01/14/12 05:06 PM
[ Reply | Forward ]
Hi Alex,

Actually, I have implemented this already last week:

http://bugs.lamsfoundation.org/browse/LDEV-2778

Also, I've just updated the link to the latest version:

20120111-lamslesson.zip

Very shortly, we will implement Moodle2 backups as well and that will probably mark the full compatible release!

Thanks,

ernie

Posted by Ernie Ghiglione

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