URGENT!!! Fatal error

URGENT!!! Fatal error

by Sam Wynens -
Number of replies: 3
I'm getting a fatal error on the quizzes at the bottom of the page.

I have debug turned on inside Moodle and am using 1.6.3+

Notice: Undefined index: 461 in /home/swynens/vadrivered.org/htdocs/mod/quiz/attempt.php on line 518


Fatal error: Call to a member function on a non-object in /home/swynens/vadrivered.org/htdocs/lib/questionlib.php on line 1265

Please help.

Sam
Average of ratings: -
In reply to Sam Wynens

Re: URGENT!!! Fatal error

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
My initial guestimate is possible database corruption. I would backup and attempt a database repair first.
In reply to Sam Wynens

Re: URGENT!!! Fatal error

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I don't think you have the lastest version from the 1.6 stable branch. There is nothing on line 518 of /mod/quiz/attempt.php that could give that error message.
In reply to Tim Hunt

Re: URGENT!!! Fatal error

by Sam Wynens -
It was a single question causing the trouble... id 461 to be exact.

I removed that question from the quiz and it started acting normally. I'll recreate the question later and see if the error comes back with different ids.

Sam