Exception - Call to a member function get_courses_count() on null

More information about this error