Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29368

htmllize_tree() :: undefined function get_plagiarism_links()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.5, 2.1.2, 2.2
    • Fix Version/s: 2.0.6, 2.1.3
    • Labels:
      None
    • Environment:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      This requires two users a teacher and a student

      1. As a teacher Create an Assignment using the Advanced uploading of files type.
      2. As a student upload a file to the newly created assignment.
      3. As the teacher view the submitted assignments
      4. Next as the teacher click on the name of the student who uploaded the file.
      5. In the navigation block browse to Coursename -> Participants -> StudentName -> Activity Reports -> complete report

      Verify that the student submission is shown

      Show
      This requires two users a teacher and a student 1. As a teacher Create an Assignment using the Advanced uploading of files type. 2. As a student upload a file to the newly created assignment. 3. As the teacher view the submitted assignments 4. Next as the teacher click on the name of the student who uploaded the file. 5. In the navigation block browse to Coursename -> Participants -> StudentName -> Activity Reports -> complete report Verify that the student submission is shown
    • Workaround:
      Hide

      A temporary fix is to require the plagiarismlib on line 53 of the /mod/assignment/renderer.php file:

      require_once($CFG->libdir.'plagiarismlib.php');

      Show
      A temporary fix is to require the plagiarismlib on line 53 of the /mod/assignment/renderer.php file: require_once($CFG->libdir.'plagiarismlib.php');
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull from Repository:

      Description

      Background: We have recently upgraded from 1.9 to 2.1.

      Issue:
      When viewing a course participant report (/course/user.php?userid=xxxx&id=yyy&mode=complete), page rendering fails at line 69 of mod_assignment_renderer (/assignment/renderer/renderer.php).

      The offending line:

      $plagiarsmlinks = plagiarism_get_links(array('userid'=>$file->get_userid(), 'file'=>$file, 'cmid'=>$tree->cm->id, 'course'=>$tree->course));

      This will only happen if there are user-submitted files for the assignment.

      A temporary fix is to require the plagiarismlib on line 53 of this file:

      require_once($CFG->libdir.'plagiarismlib.php');

      I imagine that this could happen at other locations, as there are multiple instances of htmllize_tree() and get_plagiarism_links() in other modules.

      I have enabled plagiarism in the system config, to no avail (and I don't see logic dictating to include the plagiarismlib based on it)

      I'm new to Moodle, just can't quite follow the path or find how classes are (auto?)loaded...I may just be missing a configuration param.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    28/Nov/11