2.0 quiz bug

2.0 quiz bug

by Henry Foster -
Number of replies: 12

I created a quiz, added some random questions to it, then decided to choose questions from another category, so I deleted the random questions I had added one by one using the X mark. After deleting the last question I got a blank screen. Now whenever I try to access the quiz, I get a blank screen. I can neither edit nor preview it. I am using Moodle 2.0.2+ (Build: 20110309). If this can be reproduced, I suppose it should be reported.

Average of ratings: -
In reply to Henry Foster

Re: 2.0 quiz bug

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Please turn on Debugging (set it to DEVELOPER level) and then you will get an error message instead of a blank screen. Please could you copy-and-paste the error messages here (or straight into a tracker bug).

In reply to Henry Foster

Re: 2.0 quiz bug

by Brigitte Baquero -

Hello Henry

I'm having the same problem, did you find a solution?

I am using Moodle 2.0.2+ (Build: 20110309)

In reply to Brigitte Baquero

Re: 2.0 quiz bug

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

@Brigitte

It's a pity that the original poster never answered Tim's request about turning debugging on. Can you please do it yourself and copy the error message that appears?

Joseph

In reply to Joseph Rézeau

Re: 2.0 quiz bug

by Brigitte Baquero -

Hello Joseph

Thanks for responding.

I
turn on Debugging, but I do not get any error, the page is completely blocked, I have to change browser to log in again.

I created a quiz and put the "Question order" option in "Shuffled ramdomly" then I added some random questions to the quiz, after that I deleted the random questions I had added . After deleting the last question the quiz got blocked.

I upgraded to version Moodle 2.0.2+ (Build: 20110406), but the problem persists.

sad

In reply to Brigitte Baquero

Re: 2.0 quiz bug

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello Brigitte,

What's the point of selecting the quiz option "Shuffled randomly", since random questions will of course be shuffled anyway?

Joseph

In reply to Joseph Rézeau

Re: 2.0 quiz bug

by Brigitte Baquero -

Hello Joseph

You're right.

I manually added the questions, keeping the
"Question order" option in "Shuffled ramdomly", but the problem persist, After deleting the last question the quiz got blocked.

In reply to Brigitte Baquero

Re: 2.0 quiz bug

by Dominik Jeni -

Hi everyone,

I also have got the same problem! I can remove questions from the quiz unless I do not delete all questions.  But if I remove the last remaining question (or all at once), it crashes. It's waiting for the server to respond, but that doesn't happen. As soon as the request time exceeds the server configuration (I guess...), you will get a completely blank screen without any error messages (debugging on!).

Browser address bar (maybe that helps?): [...]/mod/quiz/edit.php?cmid=54&cat=23%2C31&qpage=0&recurse=1&reordertool=1

Additionally: From now on, you can't access the quiz any more, you have to delete it! If you try to enter it, you'll get the blank screen once again. After the described blank screen, you also have to wait a few minutes trying to reenter the main page. Directly after the deletion of all questions, nothing is working but loading.

Tested with Apache (XAMPP) and IIS7.5 as well as Moodle 2.0.2 and 2.0.2+

Does anyone have an idea or a solution?

Thanks in advance!

Dominik

In reply to Dominik Jeni

Re: 2.0 quiz bug

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

That sounds very odd. Can you do the usual sorts of things: Look in the server logs, turn on Debugging, How_to_check_your_database_for_corruption.

In reply to Tim Hunt

Re: 2.0 quiz bug

by Dominik Jeni -

Hi!

Unfortunately, there is no debugging information displayed... (Debugging on; "Developer")

The IIS 7.5 Server Log says:

2011-05-05 10:09:17 192.1.1.209 POST /elolearn/mod/quiz/edit.php - 80 - 192.1.3.174 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.2.17)+Gecko/20110420+Firefox/3.6.17 303 0 0 906

--> I deleted some questions, but not the last one!

 

2011-05-05 10:09:18 192.1.1.209 GET /elolearn/mod/quiz/edit.php cmid=55&cat=23%2C31&qpage=0&recurse=1&reordertool=1 80 - 192.1.3.174 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.2.17)+Gecko/20110420+Firefox/3.6.17 200 0 0 1046

--> Returning to overview (working)

 

2011-05-05 10:10:16 192.1.1.209 POST /elolearn/mod/quiz/edit.php - 80 - 192.1.3.174 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.2.17)+Gecko/20110420+Firefox/3.6.17 303 0 0 593

--> I deleted the last remaining question

 

2011-05-05 10:15:17 192.1.1.209 GET /elolearn/mod/quiz/edit.php cmid=55&cat=23%2C31&qpage=0&recurse=1&reordertool=1 80 - 192.1.3.174 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:1.9.2.17)+Gecko/20110420+Firefox/3.6.17 500 0 0 300226

--> 5min later (loading), a blank window appears, from now on you cannot access this quiz

 

The moodle installation is new, so I don't think the database corrupted. Addiontally, I tested it several times and some people here seem to have exactly the same problem. Very strange...

In reply to Dominik Jeni

Re: 2.0 quiz bug

by Dominik Jeni -

Update:

As someone above already mentioned, the problem ONLY occurs, if you set the "Question order" to "Shuffled randomly". I just switched to "As shown on the edit screen" and the problem was gone! I could delete every question (by the way, all are multiple choice) and nothing crashed. (but the empty pages stayed - maybe it would be best if they were also deleted? But that's another topic)

In reply to Dominik Jeni

Re: 2.0 quiz bug

by Dominik Jeni -

Another Update:

Just look into the database table mdl_quiz: In the respective quiz, the field "questions" contains all included questions. When deleting all of them in "shuffled randomly"-mode, it writes a "0" into the database. It seems that THIS CAN NOT BE HANDLED IN SHUFFLED RANDOMLY MODE! When deleting the "0" in the database (leaving the field blank) or putting a comma to it, it works again ("0,").

In "As seen on the edit screen"-mode it all works well, because "0" can be handled. When deleting all questions, the database contains "0,0,0,0,0,0..." (--> empty pages. Reason why only the questions and not the empty pages are deleted).

All clarities eliminated? smile

Best regards,

Dominik

Average of ratings:Useful (1)
In reply to Dominik Jeni

Re: 2.0 quiz bug

by Misbach Arifianto -
need help. i'm from indonesia. i have some problem with quiz module. I can't add a new question and the error page says like this : Forbidden You don't have permission to access /smart/question/question.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.snapshopz.com Port 80 how i can fix that? thanks very musch