MDL-47385 issue was in line 566 @see coursecat::get_all_parents()removed. Moodle_master