Moodle

Error: could not find records when continuing a lesson (timer_lesson)

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.8.2
  • Fix Version/s: None
  • Component/s: Lesson
  • Labels:
    None
  • Environment:
    Linux
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_18_STABLE

Description

After performing a 1.4.3 -> 1.8.2+ upgrade, when already existing students (i.e. pre-migration) are asked if they want to continue the lesson where they were when they last quit (i.e. jump to the last page they had seen in a lesson), they get the following error message:

Error: could not find records

In fact, I noticed that I was getting this error whenever the lesson module was trying to update the timer_lesson table for pre-migration students. However, all my lesson timers are disabled in lesson settings. If I manually comment all these lesson_table updates everything is working fine... Any suggestion or recommendation? Is it safe to disable all references to timer_lesson table?

Regards, /Seb

Issue Links

Activity

Hide
Mike Algozzine added a comment -

We're getting this error on 1.9.8 whenever we link directly to a page in a lesson. If the student views the main lesson page, and then clicks the link to a specific page, it works, but if they click the link first, they get the error. We're using very simple lessons that only contain branch tables and the timer is disabled in the lessons. It's not related to upgrading or continuing a lesson that was previously started.

Show
Mike Algozzine added a comment - We're getting this error on 1.9.8 whenever we link directly to a page in a lesson. If the student views the main lesson page, and then clicks the link to a specific page, it works, but if they click the link first, they get the error. We're using very simple lessons that only contain branch tables and the timer is disabled in the lessons. It's not related to upgrading or continuing a lesson that was previously started.
Hide
Martin Dougiamas added a comment -

Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

Show
Martin Dougiamas added a comment - Reassigning this to moodle.com for the time being, since Mark Nielsen is not maintaining Lesson any more. Please comment/vote/patch any crucial bugs that affect you for 2.0 to help us prioritise fixes for the upcoming release.

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated: