Need to provide courseid or cmid to print_question.

More information about this error