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 43 of \mod\page\view.php: call to print_error()