Moodle

Fatal error in grade/view.php: exercise_get_best_submission_grades() undefined

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.5.3
  • Fix Version/s: None
  • Component/s: Exercise
  • Labels:
    None
  • Environment:
    All

Description

Problem:

Grades page in a course is not working at all when specific exercise is created in a course, throwing

Fatal error: Call to undefined function: exercise_get_best_submission_grades() in D:\www\moodle15\mod\exercise\lib.php on line 299 error.

How to reproduce:

1. Create a exercise in a course

1.1 Set Handling of Multiple Submissions: to Use Maximum

1.2 Enter at least one Ammend element

1.3 Submit exercise description

1.4 Move to phase 2 (Allow Student Assessments and Submissions)

2. As a student, submit a file

2.1 Choose a student enroled in the course and login as the student

2.2 Assess yourself

2.3 Submit a file

3. As a teacher, grade the students file in the Exercise

4. Go to Course main page and click on Grades

How to fix:

move function exercise_get_best_submission_grades() from mod/exercise/locallib.php to mod/exercise/lib.php

Activity

Hide
Martin Dougiamas added a comment -

Moving this to Peter because Ray is no longer with us (RIP)

Show
Martin Dougiamas added a comment - Moving this to Peter because Ray is no longer with us (RIP)
Hide
Jaroslav Sed?nka added a comment -

this bug seems to be fixed in 1.6

Show
Jaroslav Sed?nka added a comment - this bug seems to be fixed in 1.6
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it has become inactive and does not appear to affect a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: