Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.5, 2.1.2, 2.2
-
Component/s: Assignment (2.2), Plagiarism
-
Labels:None
-
Environment:Linux 2.6.32-131.6.1.el6.x86_64 #1 SMP Tue Jul 12 17:14:50 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux
Scientific Linux 6
Packages:
httpd-2.2.15-9.sl6.2.x86_64
mysql-5.1.52-1.el6_0.1.x86_64
php-cli-5.3.3-3.el6.x86_64
php-intl-5.3.3-3.el6.x86_64
php-5.3.3-3.el6.x86_64
php-mysql-5.3.3-3.el6.x86_64
php-mbstring-5.3.3-3.el6.x86_64
phpMyAdmin-3.4.3.2-1.el6.noarch
php-gd-5.3.3-3.el6.x86_64
php-common-5.3.3-3.el6.x86_64
php-pear-1.9.0-2.el6.noarch
php-pdo-5.3.3-3.el6.x86_64
php-ldap-5.3.3-3.el6.x86_64
php-soap-5.3.3-3.el6.x86_64
php-xmlrpc-5.3.3-3.el6.x86_64
php-tidy-5.3.3-3.el6.x86_64
php-mcrypt-5.3.2-3.el6.x86_64
php-xml-5.3.3-3.el6.x86_64Linux 2.6.32-131.6.1.el6.x86_64 #1 SMP Tue Jul 12 17:14:50 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux Scientific Linux 6 Packages: httpd-2.2.15-9.sl6.2.x86_64 mysql-5.1.52-1.el6_0.1.x86_64 php-cli-5.3.3-3.el6.x86_64 php-intl-5.3.3-3.el6.x86_64 php-5.3.3-3.el6.x86_64 php-mysql-5.3.3-3.el6.x86_64 php-mbstring-5.3.3-3.el6.x86_64 phpMyAdmin-3.4.3.2-1.el6.noarch php-gd-5.3.3-3.el6.x86_64 php-common-5.3.3-3.el6.x86_64 php-pear-1.9.0-2.el6.noarch php-pdo-5.3.3-3.el6.x86_64 php-ldap-5.3.3-3.el6.x86_64 php-soap-5.3.3-3.el6.x86_64 php-xmlrpc-5.3.3-3.el6.x86_64 php-tidy-5.3.3-3.el6.x86_64 php-mcrypt-5.3.2-3.el6.x86_64 php-xml-5.3.3-3.el6.x86_64
-
Database:MySQL
-
Testing Instructions:
-
Workaround:
-
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.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-29564 Fatal error: Call to undefined function plagiarism_get_links()
-
- Closed
-