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.
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).
I'm having the same problem, did you find a solution?
I am using Moodle 2.0.2+ (Build: 20110309)
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?
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.
What's the point of selecting the quiz option "Shuffled randomly", since random questions will of course be shuffled anyway?
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.
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!
Unfortunately, there is no debugging information displayed... (Debugging on; "Developer")
The IIS 7.5 Server Log says:
2011-05-05 10:09:17 126.96.36.199 POST /elolearn/mod/quiz/edit.php - 80 - 188.8.131.52 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:184.108.40.206)+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 220.127.116.11 GET /elolearn/mod/quiz/edit.php cmid=55&cat=23%2C31&qpage=0&recurse=1&reordertool=1 80 - 18.104.22.168 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:22.214.171.124)+Gecko/20110420+Firefox/3.6.17 200 0 0 1046
--> Returning to overview (working)
2011-05-05 10:10:16 126.96.36.199 POST /elolearn/mod/quiz/edit.php - 80 - 188.8.131.52 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:184.108.40.206)+Gecko/20110420+Firefox/3.6.17 303 0 0 593
--> I deleted the last remaining question
2011-05-05 10:15:17 220.127.116.11 GET /elolearn/mod/quiz/edit.php cmid=55&cat=23%2C31&qpage=0&recurse=1&reordertool=1 80 - 18.104.22.168 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+de;+rv:22.214.171.124)+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...
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)
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?