Dear Tim and Everyone else,
Thanks alot for all your input.
In my course table, the id of site changed from 1 to 0 somehow. Changing that resolved the issue.
Thanks again to everyone
Courses and course formats
$course passed to moodle_page::set_course does not look like a proper course object.
Այս քննարկումը արգելափակված է: Դուք այլևս չեք կարող պատասխանել դրան: