Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-7573

Fatal error: Call to a member function on a non-object in questiontype.php during quiz attempts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.6.4, 1.7.1, 1.8
    • 1.7
    • Quiz
    • None
    • Apache 1.3.36 (Unix) - Perl 5.8.0 - mysql 4.1.21-standard - php 4.4.2 - Fire Fox 1.5.0.8
    • MySQL
    • MOODLE_17_STABLE
    • MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE

      Fatal error: Call to a member function on a non-object in /home/myservername/public_html/moodle/question/type/random/questiontype.php on line 242 occurs when a quiz including random questions is in Adaptive mode and then ONLY when at least one question has been submitted individually before the Submit All and Finish Button has been pressed.

      The quiz works fine as long as none of the questions are submitted individually. The error always occurs upon attempting to go to the next question after any of them has been submitted indivdiually. This prevents using the quiz module in adaptive mode as a review for a test!

      Settings that cause problem...
      Questions per page: 1
      Shuffle questions: Yes
      Shuffle within quesitons: Yes
      Attempts allowed: Unlimited attempts
      Each attempt builds on the last: No
      Grading method: Highest grade
      Adaptive mode: yes
      Apply penalties: yes
      Decimal digits: 2
      Students may view: Immediately after attempt: Responses, Scores, Feedback General Feedback
      Time delay: None
      Show quiz in secure window: No
      No Groups

            timhunt Tim Hunt
            cgkel Carl Keller (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.