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

Error on creating assignment when feedback plugin uninstalled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • 3.0.6, 3.1.2
    • Assignment
    • MOODLE_31_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • Hide

      Don't uninstall your default gradebook plugin

      Show
      Don't uninstall your default gradebook plugin
    • Hide
      1. Go to "Site administration" > "Plugins" > "Activity modules" > "Assignment" > "Assignment settings" and set "Feedback plugin" to "File feedback".
      2. Go to "Site administration" > "Plugins" > "Activity modules" > "Assignment" > "Feedback plugins" > "Manage assignment feedback plugins" and uninstall this plugin
      3. Delete the mod/assign/feedback/file folder.
      4. Go to a course and add an assignment - confirm that you don't see the reported error when saving the assignment, and that the assignment is created as normal.
      5. Just a reminder to revert the changes you did in step 3.
      Show
      Go to "Site administration" > "Plugins" > "Activity modules" > "Assignment" > "Assignment settings" and set "Feedback plugin" to "File feedback". Go to "Site administration" > "Plugins" > "Activity modules" > "Assignment" > "Feedback plugins" > "Manage assignment feedback plugins" and uninstall this plugin Delete the mod/assign/feedback/file folder. Go to a course and add an assignment - confirm that you don't see the reported error when saving the assignment, and that the assignment is created as normal. Just a reminder to revert the changes you did in step 3.

    Description

      I'm seeing this error when trying to create an assignment when the feedback_plugin_for_gradebook setting is set to a feedback plugin that has been uninstalled:

      Exception - Call to a member function is_visible() on null
       
      More information about this error
      Debug info:
      Error code: generalexceptionmessage
      Stack trace:
       
          line 7958 of \mod\assign\locallib.php: Error thrown
          line 881 of \mod\assign\locallib.php: call to assign->is_gradebook_feedback_enabled()
          line 1067 of \mod\assign\locallib.php: call to assign->update_gradebook()
          line 193 of \mod\assign\lib.php: call to assign->update_instance()
          line 569 of \course\modlib.php: call to assign_update_instance()
          line 273 of \course\modedit.php: call to update_moduleinfo()
      

      To reproduce:

      1. In admin settings, set the setting "assign | feedback_plugin_for_gradebook" to "File feedback"
      2. Go to "Manage assignment feedback plugins" in the admin menu and uninstall this plugin
      3. Go to a course and add an assignment - you should see the above error when you click save

      Attachments

        Activity

          People

            maherne Michael Aherne
            maherne Michael Aherne
            Mark Nelson Mark Nelson
            David Monllaó David Monllaó
            Damyon Wiese Damyon Wiese
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Sep/16