Invalid course module ID

More information about this error

Debug info:
Error code: invalidcoursemodule
Stack trace:
  • line 494 of /lib/setuplib.php: moodle_exception thrown
  • line 29 of /mod/chat/view.php: call to print_error()