Talk:System Administrator's Guide/Moodle//Mahara Integration/View Submission
From Mahara Wiki
Code correction
An error occurs because $userid variable is not set in ./mod/assignment/type/mahara/assigment.class.php
I suggest a correction line 283
// MODIF JF $userid=$USER->id; $grading_info = grade_get_grades($this->course->id, 'mod', 'assignment', $this->assignment->id, $userid);
Unknown method
Furthermore it seams to me that few Moodle 1.9 Mahara plugin code have been let by error in Moodle 2 Mahara plugin :
Script (Moodle 2) ./mod/assignment/type/mahara/assigment.class.php :
LINE 337 $mnetrequest->set_method('mod/mahara/rpclib.php/get_views_for_user'); LINE 344 $error = "RPC mod/mahara/rpclib.php/get_views_for_user:
"; LINE 392 $mnetrequest->set_method('mod/mahara/rpclib.php/release_submitted_view');
BUT :
'mod/mahara/rpclib.php' does not exist !
./local/mahara/db/mnet.php LINE 15 to 24
$subscribes = array( 'mahara' => array( 'get_views_for_user' => 'mod/mahara/rpclib.php/get_views_for_user', 'submit_view_for_assignment' => 'mod/mahara/rpclib.php/submit_view_for_assessment', 'release_submitted_view' => 'mod/mahara/rpclib.php/release_submitted_view', 'get_groups_for_user' => 'mod/mahara/rpclib.php/get_groups_for_user', 'get_notifications_for_user' => 'mod/mahara/rpclib.php/get_notifications_for_user', 'get_watchlist_for_user' => 'mod/mahara/rpclib.php/get_watchlist_for_user', ), );
Not any of mod/mahara/rpclib.php/ methods does exist !
By the way this does not affect plugin... Any commentary would be helpfull.
JF.