Closed (won't fix)
Project:
Quiz
Version:
6.x-2.0-rc2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2008 at 17:35 UTC
Updated:
4 Apr 2016 at 15:04 UTC
Jump to comment: Most recent
Comments
Comment #1
hanskuiters commentedNeed configuration advise too. Or is there a bug? I'll describe some situations.
A.
'always' questions: 0 | 'random' questions: 8. 'number questions to randomize': >0.
I get the message:
B.
'always' questions: 3 | 'random' questions: 5. 'number questions to randomize': 5.
I get the message:
And I then DO get 3 questions, but only the 'always' questions. At quiz start the 'quiz progress' says: Question 4 of 6.
C.
'always' questions: 3 | 'random' questions: 5. 'number questions to randomize': 1.
At quiz start the 'quiz progress' says: Question 2 of 4.
C en D tells me that the system counts all the 'always' and 'random' questions, but only shows the 'always' questions.
Further more these situations tell me that the 'number questions to randomize' can't be higher then the number of 'always' questions.
(Does this make any sence?)
Comment #2
mbutcher commentedA fix for this has been checked into the 6.x-2.0 development branch. It should become available in the nightly builds and in 6.x-2.0 Alpha 1.
Comment #3
hanskuiters commentedBut I am using 5.x-2.0-rc1. Will there be a fix for that too in the near future? I would try it myself, but since I am not a programmer, I like some help.
Comment #4
mbutcher commentedI'm not planning on doing another D5 release in the near future (unless a serious security bug comes along). Right now it would be too much work to try and port to D6 while also fixing bugs in D5.
Comment #5
mandclu commentedI had an issue with random questions not showing, and was able to get it working. The issue, as I saw it, was that the query being built in _quiz_get_random_questions used $quiz properties, when that was never passed to the function. Here's how I got it working:
Lines 1255 to 1257 of quiz. module should now be:
The main difference is that I got the random questions in a separate step, and passed the entire $quiz object. As a result, we need to change the start of _quiz_get_random_questions to:
The main difference is that it now accepts the $quiz object, and then sets the two variables that it previously accepted, so that the rest of the code should continue to work.
Comment #6
jenlamptonI just upgraded from Quiz 5.x-1.x to 5.x-2.0-rc1. I was unable to see ANY questions on a quiz that was made of all random questions. When I assigned 5 random questions to the quiz, and set the number of questions to be randomly assigned, I got this error...
I poked around in the code and found that $assigned_random is being incremented when questions are QUESTION_ALWAYS. changing line 1735 seems to ged rid of the error message. I changed it from this:
to this:
That fix made the error disappear on the config page, but when I try to take a quiz I get this error...
...which I was able to fix with the code above.
Jen
Comment #7
mbutcher commentedThese issues have all been fixed in the Drupal 6 version. I am not maintaining the Quiz 5 branch (no time to backport).
Comment #8
hanskuiters commentedThanks for the work, Jen and Martin. I did some testing and there is one more issue.
If the 'number questions to randomize' is higher than 'Questions random on this quiz', I get the message:
Seems allright, but the 'number questions to randomize' is NOT lowered yet. You need to submit the page again. Seems that the page isn't aware of the lowered number.
Comment #9
mbutcher commentedThis is on 6.x-2.0 RC2, right? I'm changing the version number of this ticket to reflect that.
Comment #10
hanskuiters commentedNo, it's on 5.x-2.0-rc1
Comment #11
mbutcher commentedYeah, I just tested on D6, and the bug is gone there. It was related, I think, to another bug with random questions. Once again I'll have to mark this as "won't fix", since I can't dedicate the time to D5 issues. Frustrating.
Comment #12
Skayazu commentedNot enough random questions were found. Please add more questions before trying to take this Quiz.
Happened in 7.x-4.0-rc2 version of module.
Have created taxonomy, correct added to quiz taxonomy with 20 questions, set NUMBER OF QUESTIONS equal 10 and error doesn't allow me take the quiz.
Comment #13
Skayazu commentedForgot change status...
Comment #14
djdevinPlease don't reopen old issues with different bugs.
Open a new issue and make sure you specify the correct version (8.x-4.x is not supported).
See https://www.drupal.org/issue-queue for issue queue etiquette.