Error when switch the role to "Student"

Error when switch the role to "Student"

by Lesley Hsieh -
Number of replies: 3

When I change the role to "Student" to view the lesson,
there is the error message as following.

Error: could not find lesson_timer records

Error code: cannotfindtimer
Stack trace:
  • line 476 of \lib\setuplib.php: moodle_exception thrown
  • line 1219 of \mod\lesson\locallib.php: call to print_error()
  • line 297 of \mod\lesson\view.php: call to lesson->update_timer()

 

I have search on the moodle and find one article:
https://moodle.org/mod/forum/discuss.php?d=165375
and read the links in it. But the links are in 2007 and the
codes are very different in the version I used: v2.5. I really
have no idea how this error happens. Any clue is very welcome!

Thank you in advance!

 

Average of ratings: -
In reply to Lesley Hsieh

Re: Error when switch the role to "Student"

by Mahesh Babu Telakula Sathyan -

Hi,

I find this error occurring even in  the following version

Moodle 2.6.2+ (Build:20140502)


The entire lesson is not available for review once again. 

In reply to Mahesh Babu Telakula Sathyan

Re: Error when switch the role to "Student"

by Emma McAllister -

I'm on 2.8 and I'm having the same problem.  We recently moved from 2.7 to 2.8.

In reply to Emma McAllister

Re: Error when switch the role to "Student"

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

Yes - this is a bug and it has been fixed here MDL-14730 and the fix will be available in the next releases of Moodle - 2.8.3 and 2.7.5 due out in March.