You cannot execute functions in the course context (course id:54). The context error message was: Course or activity not accessible.
Exception - Call to a member function get_record() on null