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

Editing and saving a forum leads to "An internal error occurred in the completion system. ....Cannot find grade item for 'forum'"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 2.0.2
    • None
    • Forum
    • Moodle 2.0.2+ (Build: 20110413)
      php 5.3.3
      MySQL 5.5.9
    • MOODLE_20_STABLE

    Description

      When an editing an existing a non-graded forum and saving I get the following error:

      An internal error occurred in the completion system. (System administrators can enable debugging information to see more detail.)

      More information about this error

      Debug info: Cannot find grade item for 'forum'
      cm '17959' matching number '0'
      Stack trace:
      line 1317 of /lib/completionlib.php: moodle_exception thrown
      line 568 of /lib/completionlib.php: call to completion_info->internal_systemerror()
      line 492 of /lib/completionlib.php: call to completion_info->internal_get_state()
      line 789 of /lib/completionlib.php: call to completion_info->update_state()
      line 342 of /course/modedit.php: call to completion_info->reset_all_state()

      Notes:
      1. this error does not seem to occur when creating a forum for the first time
      2: although clicking on either the [Save and return to course] or [Save and display] buttons gets the above error message, changes made to the "Forum introduction" seem to be saved, but changes made to the "Forum name" do not seem to be saved.
      3. the workaround is to edit forum, select an "Aggregate type" and "Scale", save, which does not lead to an error, and then edit again and change "Aggregate type" back to 'No ratings' and save again.

      I'd really appreciate a fix for this. Thanks.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              stuart Peter Ruthven-Stuart
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: