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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.8.2
    • 3.8.3
    • Questions
    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • 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.

    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

              timhunt Tim Hunt
              timhunt Tim Hunt
              Luca Bösch Luca Bösch
              Jun Pataleta Jun Pataleta
              Anna Carissa Sadia Anna Carissa Sadia
              Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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