OgException: Add a new course is failing

GBatenburg
Forums
I am recently unable to add any new courses. When I try to add a course it displays the following error: "Error: The website encountered an unexpected error. Please try again later." The following message is logged whenever I try to add a course: OgException: There are no OG fields in entity taxonomy_term and bundle forums referencing node - course. in og_group() (line 2016 of C:\wamp\www\Opigno_Test\profiles\opigno_lms\modules\contrib\og\og.module). This all appeared to start happening around the time I deleted a course, but I am not sure if this is related. Anyone have any ideas what has gone wrong and/or what the solution is?
GBatenburg

I have found the solution to

I have found the solution to this problem. I had removed "Course" from the target bundle of the the Groups Audience (og_group_ref) field settings in an attempt to prevent all Courses from being a visible group available to anyone trying to create a new Forum. I only want Forums for Classes. Editing the Groups Audience field settings and re-adding Course as a target bundle solves this problem. I'll need to find another way to hide Courses. Hope this helps someone out there.