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

Quiz with Browser Security enabled don't shows results (Moodle 2.1)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.1.2
    • Component/s: Quiz
    • Labels:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. Create a quiz with default settings.
      2. Make sure you can preview it as a teacher.
      3. Make sure that you can attempt and review it as a student.
      4. Make sure that the teacher can review the students' attempt.

      5 - 8. Ditto, but for a quiz with Browser security set to Full screen pop-up with some JavaScript security

      Show
      1. Create a quiz with default settings. 2. Make sure you can preview it as a teacher. 3. Make sure that you can attempt and review it as a student. 4. Make sure that the teacher can review the students' attempt. 5 - 8. Ditto, but for a quiz with Browser security set to Full screen pop-up with some JavaScript security
    • Workaround:
      Hide

      Just taking Matt's comment and adding it as a workaround with some minor tweaks: With browser security (i.e. mdl_quiz table's popup field) set to true, students cannot review the quiz or make multiple attempts. By going to the quiz settings, the teacher can switch Browser security to "none" and then students are able to review the quiz and make multiple attempts. If a site admin wanted to change this for all quizzes, they could set the popup field to 0 for all quizzes. Peace - Anthony

      Show
      Just taking Matt's comment and adding it as a workaround with some minor tweaks: With browser security (i.e. mdl_quiz table's popup field) set to true, students cannot review the quiz or make multiple attempts. By going to the quiz settings, the teacher can switch Browser security to "none" and then students are able to review the quiz and make multiple attempts. If a site admin wanted to change this for all quizzes, they could set the popup field to 0 for all quizzes. Peace - Anthony
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      If a quiz has the "Browser security" option in "Full screen pop-up with some JavaScript security", after completing a quiz, instead of showing the results, it shows this error:

      Coding error detected, it must be fixed by a programmer: block_manager has already prepared the blocks in region side-prefor output. It is too late to add fake block.

      If you hit continue, it scores the quiz correctly in the gradebook, but the results are never shown on screen.

      When the debugging option in enabled, it shows this error:

      line 425 of /lib/blocklib.php: coding_exception thrown

      line 257 of /mod/quiz/review.php call to block_manager->add_fake_block()

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                32 Vote for this issue
                Watchers:
                21 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11