I'm not sure if this is a bug or expected behavour.

This issue sounds like this one https://www.drupal.org/node/2270019 but that was closed as being a duplicate of another which has been fixed.

During testing, one admin user who was configuring questions got this message when they were trying out the amended quiz.

It used a single quiz page with a number of multiple choice questions on it, and the user had already "passed" the quiz previously when it had fewer questions.

This was due to the "Allow backwards navigation" option NOT being selected for the course. The function quiz_access_question() in quiz.module returns FALSE if this option is not selected and you have passed the quiz even though you are trying to access node/xxx/take/1 which is the quiz page not an actual question.

I'm not familiar enough with the uses of this bit of code to suggest any fixes, if indeed it needs fixing. However, checking the backwards navigation option for the quiz seems to avoid the problem.

Bug or expected behaviour?

Comments

donaldp created an issue. See original summary.

djdevin’s picture

One thing to check here would be the revisioning on the Quiz - if you are taking a quiz in between revisions you may have issues. Make sure to delete any existing attempts when testing a Quiz.

Other than that I think there would be a few issues with restricting backwards navigation when pages are in play.

If you could work out exact steps to reproduce we can try and identify the issue.

djdevin’s picture

donaldp’s picture

Thanks. I will try to come up with some sort of simple replication procedure. I'm short of time at present (aren't we all?) but will try to do this in a few days time.

djdevin’s picture

Version: 7.x-5.0-beta1 » 7.x-5.x-dev
Category: Support request » Bug report
Status: Active » Closed (duplicate)