Found more than one record in fetch() ! Error in questionnaire when trying to reopen quiz.

Found more than one record in fetch() ! Error in questionnaire when trying to reopen quiz.

by Sam Mudle -
Number of replies: 5
Hi, I'm using 3.3.1 (Build - 2017051800) (2017050101) on Moodle 3.3.1.

I get an error when I try to move the close date after the quiz has already closed.  When I try to adjust the close date, I get the following error:

Found more than one record in fetch() !


Average of ratings: -
In reply to Sam Mudle

Re: Found more than one record in fetch() ! Error in questionnaire when trying to reopen quiz.

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

Can you post more details about the error? If you enable full debugging, it will provide a stack dump showing where the error occurs.

Also, you mention "after the quiz has already closed". Did you mean questionnaire, or is this a problem with the quiz module?

In reply to Mike Churchward

Re: Found more than one record in fetch() ! Error in questionnaire when trying to reopen quiz.

by Sam Mudle -

It's the questionnaire module.  I will do a stack dump soon.

In reply to Mike Churchward

Re: Found more than one record in fetch() ! Error in questionnaire when trying to reopen quiz.

by Sam Mudle -

Ok the grade for the questionnaire shows up twice in the grade report

And here is the stack dump:


In reply to Sam Mudle

Re: Found more than one record in fetch() ! Error in questionnaire when trying to reopen quiz.

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers

I don't think there should ever be more than one grade item for a questionnaire. Any idea how that happened?

I created a questionnaire with a close date and a grade. I had two students complete it. Then when it was expired, I edited it and extended the date. I cannot recreate the problem.

mike