Just installed this module and now I'm not at all able to use it. Below are the problems I'm facing:
1. Well, I'm not able to create any quiz. I'm getting the following error:
Invalid argument supplied for foreach() in /path_to_public_html/modules/quiz/quiz.module on line 90.
2. Users other than the admin can't create a quiz, although they have the permission "create quiz".
3. I get a access denied while creating a "multichoice" question.
Can anyone please help? I'm looking forward to use this module quite extensively.
BTW, my Drupal version is 4.6.0.
Comments
Comment #1
webchickHi there. Just as a disclaimer, this module is very much 'in development' right now, so many features are missing at this moment, unfortunately. It's also being developed against the current CVS version of Drupal, so that may explain some of the additional problems in 4.6.0. Once it's to a state that people can actually install it without it blowing up too much (which hopefully will be September 1, since that's when this is due ;)), I'll make a release version of it that people can download. That said, thank you very much for beta (alpha?) testing! :)
The way the module is setup currently, you have to create questions first, then add those questions to a quiz. This probably explains the "Invalid argument supplied for foreach()" error in this quiz creation page; since you haven't been able to create any questions, there are none to choose from for the quiz. I'm planning to place an interface here that will let you create questions if at least one doesn't already exist, to help eliminate this disconnect problem.
The other errors are news to me though, so I'll look into those carefully. Thanks a lot for pointing those out. Come the end of the week, I should have a good chunk of time to look into these issues, and will respond here with my progress.
Comment #2
webchickOk, well the good news is that I've identified the cause of this problem:
2. Users other than the admin can't create a quiz, although they have the permission "create quiz".
The modules were simply missing a hook_access implementation, so that should be fine now, and should also fix problem #3. :)
The bad news is I'm getting problem #1 now as well, so it looks like I have a few more things to figure out before I can mark this issue fixed.
Comment #3
webchickFound the problem, so I'm marking this issue fixed. Please let me know if you run into any other problems, and thank you so much for testing!
Comment #4
(not verified) commentedComment #5
(not verified) commentedComment #6
(not verified) commentedComment #7
(not verified) commentedComment #8
(not verified) commented