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

Error on the question settings page before running the transfer_question_categories task

XMLWordPrintable

      After upgrading an instance to version 5.0 (main) that contains a quiz with at least one question, the question settings become inaccessible due to the following error if the transfer_question_categories task has not been executed:

      Ideally, this scenario should be handled more effectively by displaying a notice informing the user that the transfer_question_categories task needs to be executed, similar to the notification seen on the course question bank page, rather than showing an error message.

      Steps to reproduce:

      1. Create a Moodle 4.5 instance
      2. Create a course.
      3. Create a quiz activity in the course.
      4. In the quiz, add one question of your choice (e.g. true/false question).
      5. Upgrade to 5.0 (main).
      6. Make sure you haven't run the mod_qbank\task\transfer_question_categories ad-hoc task.
      7. Go back to the quiz in the course.
      8. In the quiz, go to Questions.
      9. Click on the pencil icon next to the question to go to the settings (edit) page of the question.
        • Expected: You should see a notice informing that the transfer_question_categories task needs to be executed.
        • Actual: An error is shown which prevents access to the question settings.

            Unassigned Unassigned
            Geshoski Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.