error/subcourse/errinvalidrefcourse
From MoodleDocs
The Subcourse module is linked against a non-existing course. The referenced course, i.e. the course to take grades from, has been probably deleted after the Subcourse was created. Go to the Subcourse module edit form and choose an existing course.