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

Jumping to a random lesson page gives error on the first visit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.5, 3.2.2, 3.3
    • Fix Version/s: 3.1.6, 3.2.3
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      • Create a lesson with several content pages
      • On the first page, define a jump to random content page
      • As a student, go that lesson for the first time (or after the lesson has been reset)
      • The jump to a random page should work
      Show
      Create a lesson with several content pages On the first page, define a jump to random content page As a student, go that lesson for the first time (or after the lesson has been reset) The jump to a random page should work
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58431-master

      Description

      I discovered this while testing MDL-57760. This seems to be related (or maybe a duplicate) of MDL-26671.

      Steps to reproduce

      1. Create a lesson with several content pages
      2. On the first page, define a jump to random content page
      3. As a student, go that lesson for the first time (or after the lesson has been reset)

      Expected behaviour: The jump to a random page should work

      Actual behaviour:

      Error: could not find lesson records
       
      Error code: cannotfindrecords
       
      line 496 of /lib/setuplib.php: moodle_exception thrown
      line 183 of /mod/lesson/locallib.php: call to print_error()
      line 201 of /mod/lesson/pagetypes/branchtable.php: call to lesson_unseen_branch_jump()
      line 3424 of /mod/lesson/locallib.php: call to lesson_page_type_branchtable->check_answer()
      line 2693 of /mod/lesson/locallib.php: call to lesson_page->record_attempt()
      line 70 of /mod/lesson/continue.php: call to lesson->process_page_responses()
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/May/17