I just grabbed Drupal 4.7.0 Beta 1 and the Quiz module via CVS, and created a fresh install of Drupal to try out Quiz. This module sounds exactly like what I need. So, after setting up, I can create a Quiz, add questions to it, but I can't actually _take_ the quiz. No questions show up when I click "Take quiz" - but they all show up when I click "Add questions".

Not sure if this is related, but the start time and end time for the quiz is being stored as 0, rather than an int timestamp - and is resetting every time I try to set it. Also, the "shuffle" option doesn't seem to be sticking...

I know this isn't a full support line or anything, but am wondering about the status of Quiz with Drupal 4.7.0 Beta 1 - is there some config I may have missed? Is there some mismatch between the Quiz code in CVS and the 4.7.0 Beta 1 release?

I've got my test installation at
http://136.159.110.60/drupal4.7/

I'll leave it running there for awhile - but it will eventually be removed and put into production on another server.

Thanks for any ideas.

Comments

webchick’s picture

Assigned: Unassigned » webchick

You're right, unfortunately. Part of the updating I did to try and get this working with 4.7 didn't quite get finished so there are some errors. This module is still in the fairly early stages of development.

I've assigned this to myself and will try and address those issues as soon as possible. I may not get time before the xmas holidays though. :(

dnorman’s picture

Is there anything I can do? I mean, are the changes known? Is it just a matter of tweaking to match a slightly different db schema or something? Or is it more complex? Please let me know if I can help.

seanbfuller’s picture

Status: Active » Fixed
gilcot’s picture

Title: Can't take a quiz? » Can take a quiz..
StatusFileSize
new2.21 KB

I've been far from my office and my computer for a while. I'm just back, and what i can see is that some people have been worknig hard ;) So, i just downloaded the latest cvs (it's said to be built on october 13 : i'll need to apply the patches as soon as i'm reading the issues... but before that) i've been playing with the baby.
like dnorman :

after setting up, I can create a Quiz, add questions to it, but I can't actually _take_ the quiz. No questions show up when I click "Take quiz" - but they all show up when I click "Add questions".

:)
As my watchdog show many errors, i've been intrigated by sql errors ; look :

Type	php
Date	Vendredi, 20 Octobre, 2006 - 01:50
Utilisateur	gildas
Location	http://localhost/mysite/node/102/quiz/start
Referrer	http://localhost/mysite/node/102/edit?destination=admin%2Fnode
Message	mysql_query() [http://www.mysql.com/doc]: Table 'mydatabase.quiz' doesn't exist à la ligne 102 du fichier /var/www/htdocs/mysite/includes/database.mysql.inc.
Severity	error
Nom d'hôte	127.0.0.1

and guess why the module cannot find the table "quiz" in my database..?
Because there a tiny error in the SQL statement (maybe it's already fixed ?). For example, function quiz_get_pass_rate($nid) says

    $passrate = db_fetch_object(db_query('SELECT pass_rate FROM quiz WHERE nid = %d', $nid));
    return $passrate->pass_rate;   

where it should say

    $passrate = db_fetch_object(db_query('SELECT pass_rate FROM {quiz} WHERE nid = %d', $nid));
    return $passrate->pass_rate;   

... and my tables are prefixed :-/
I corrected the thing and updated my {quiz} table too (i didn't follow you since here http://drupal.org/node/73607 ) :

ALTER TABLE {quiz} ADD pass_rate SMALLINT NOT NULL DEFAULT '0' ;
ALTER TABLE `net_quiz` ADD `summary_pass` TINYTEXT NULL , ADD `summary_default` TINYTEXT NULL ; 

and it does work :) Attached, is the patch against CVS

gilcot’s picture

StatusFileSize
new2.21 KB

but i can't ever remember the right direction, so i build both (it doesn't eat time). sorry.

webchick’s picture

Hi, gilcot... could you please log a separate issue about the table prefixing? It's much easier to track what's going on if there's one issue per bug.

gilcot’s picture

oops, sorry. i had the same symptoms as dnorman and i solved it by prefixing tables (i think a typo error due to the amount of job done in a short time). that's why i post here.

Anonymous’s picture

Status: Fixed » Closed (fixed)