Skip to content

Instantly share code, notes, and snippets.

@mudrd8mz
Created November 22, 2011 08:10
Show Gist options
  • Save mudrd8mz/1385157 to your computer and use it in GitHub Desktop.
Save mudrd8mz/1385157 to your computer and use it in GitHub Desktop.

After clicking the continue in the previous (unfinished) attempt button, a user is getting:

Debug info: Stack trace when the theme was set up:

  • line 1295 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()
  • line 118 of /question/type/truefalse/questiontype.php: call to bootstrap_renderer->__call()
  • line 118 of /question/type/truefalse/questiontype.php: call to bootstrap_renderer->notification()
  • line 787 of /lib/questionlib.php: call to qtype_truefalse->get_question_options()
  • line 815 of /lib/questionlib.php: call to _tidy_question()
  • line 261 of /question/engine/bank.php: call to get_question_options()
  • line 1160 of /question/engine/questionattempt.php: call to question_bank::load_question()
  • line 701 of /question/engine/questionusage.php: call to question_attempt::load_from_records()
  • line 278 of /question/engine/datalib.php: call to question_usage_by_activity::load_from_records()
  • line 78 of /question/engine/lib.php: call to question_engine_data_mapper->load_questions_usage_by_activity()
  • line 373 of /mod/quiz/attemptlib.php: call to question_engine::load_questions_usage_by_activity()
  • line 393 of /mod/quiz/attemptlib.php: call to quiz_attempt->__construct()
  • line 403 of /mod/quiz/attemptlib.php: call to quiz_attempt::create_helper()
  • line 44 of /mod/quiz/attempt.php: call to quiz_attempt::create()

Stack trace:

  • line 1515 of /lib/pagelib.php: coding_exception thrown
  • line 745 of /lib/pagelib.php: call to moodle_page->ensure_theme_not_set()
  • line 817 of /lib/pagelib.php: call to moodle_page->set_course()
  • line 2357 of /lib/moodlelib.php: call to moodle_page->set_cm()
  • line 48 of /mod/quiz/attempt.php: call to require_login()

Output buffer:

Error: Missing question options!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment