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

Trying to call qtype::get_extra_question_bank_actions must not cause fatal errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.2
    • Fix Version/s: 3.8.3
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Install any qtype plugin from the plugins DB (e.g. https://moodle.org/plugins/qtype_oumultiresponse).
        Note: If using MDK

        mdk plugin install qtype_oumultiresponse

      2. Go to a course
      3. Create a question of that type.
      4. Create a question of a standard type like true-false.
      5. Delete the folder of the question type plugin. e.g. in your moodle root folder: "rm -rf question/type/oumultiresponse"
      6. Upgrade your Moodle site "php admin/cli/upgrade"
      7. Try to view the question bank.
      8. Verify that the question bank shows up and you can do things with the true/false question you made.
      Show
      Install any qtype plugin from the plugins DB (e.g. https://moodle.org/plugins/qtype_oumultiresponse ). Note: If using MDK mdk plugin install qtype_oumultiresponse Go to a course Create a question of that type. Create a question of a standard type like true-false. Delete the folder of the question type plugin. e.g. in your moodle root folder: " rm -rf question/type/oumultiresponse " Upgrade your Moodle site " php admin/cli/upgrade " Try to view the question bank. Verify that the question bank shows up and you can do things with the true/false question you made.
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull 3.8 Branch:
    • Pull Master Branch:

      Description

      To reproduce:

      1. Install any qtype plugin from the plugins DB.
      2. Create a question of that type.
      3. Uninstall the qtype plugin.
      4. Try to view the question bank.

      Expected result: question bank displays, although the questions of the missing type are useless.

      Acutal result: fatal error that prevents you from seeing the question bank.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              Luca Bösch
              Integrator:
              Jun Pataleta
              Tester:
              Anna Carissa Sadia
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/20

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 40 minutes
                  2h 40m