problem with results

problem with results

by nicolas patris -
Number of replies: 9

hello, Thank you for the hotpot module, it's great !

I'm new using hotpot module and I have a problem with the results. When I want to see the resutls after doing a quizz, I have this message:

Warning: date(): Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in c:\program files\easyphp1-7\www\moodle\mod\hotpot\report.php on line 80

What should I do ?

Nicolas.

PS: excuse my english...

Average of ratings: -
In reply to nicolas patris

Re: problem with results

by sean collins -
Hello,

I am getting the exact same messages on my recently installed hotpot module,

moodle version 1.43+, running on XP machine.

Any ideas how to resolve this problem guys?

thanking you

Sean
In reply to nicolas patris

Re: problem with results

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
I get the exactly the same error message using Moodle 1.4.3, Windows XP.
Can anyone help?
Plus, in answer to Ale http://moodle.org/mod/forum/discuss.php?d=16806 Thomas Robb advised to get the latest files from http://cvs.sourceforge.net/viewcvs.py/moodle/contrib/hotpot/
However, I am finding the way that files are organized in that place very confusing, and apparently the only thing one can do is navigate through the whole directory and download all the files one by one, which is very tiresomesad.
Thomas, could you please post a single zipped file including the very latest version of all files of the hotpot module? (including, if possible, the correction of the latest bug mentioned by Nicolas and Sean).

Many thanks in advance,

Joseph_R
In reply to Joseph Rézeau

Re: problem with results

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Any directory in cvs:/contrib can be downloaded like this

    http://moodle.org/download.php/modules/hotpot.zip

It's also listed on the page where you download modules.
In reply to Martin Dougiamas

Re: problem with results

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Thanks, Martin
That's exactly what I needed smile !

So I've downloaded the latest version of Thomas Robb's HotPot module (v 1.5 2004/12/20 13:38:10). In Moodle 1.4.3 under Windows XP, it works all right except for the bug mentioned at the start of this thread, which I describe fully (only tested with a Cloze exercise so far).

From the point of view of the students, everything is OK: they can do the HP exercises, they can view their scores, etc.

From the point of view of the teacher, when you click on the View results link of any given exercise, you get this error message (it's printed about 3 to 4 times):

Warning
: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in &server\moodle\mod\hotpot\report.php on line 80

Then the students' names & scores are displayed, but for each attempt we have 2 lines, including one with a number of zeros, like this:


80.00 26-Feb-05 14:15 (0:11) [1]
0.00 26-Feb-05 14:15 () [0]
80

Actually, I've noticed that when a student's HP data is saved in the mdl_hotpot_events table of the moodle db, it is saved twice: first incorrectly then correctly, as shown here:
Full Texts
Edit Delete 3 111 45 8 1109424287 1109424286 0 0.00 0 null
Edit Delete 4 111 45 8 1109424297 1109424286 1109424296 40.00 3 null

The reason for the " Windows does not support dates prior to etc." messages probably come from those wrong "zero" lines in the database.

Thomas, we'd all be grateful if you could trace and correct that little bug...

Thanks in advance,

Joseph_R
In reply to Joseph Rézeau

Re: problem with results

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Dear Nicolas and Joseph,
for a "quickfix", change line 75 in "mod/hotpot/report.php"

  • old: if ($lapsetime == 0){
  • new: if ($lapsetime <= 0){

If you have the "debug" on your site configutation variables page set to "yes", you will also see a number of warnings and when using "mod/hotpot/view.php" and "mod/hotpot/report.php".

These warning messages, along with instructions on how to fix them are listed in the attached "errors.txt".

For your convenience, I have also attached modified versions of "view.php" and "report.php" for the hotpot module.

regards
Gordon 

In reply to Gordon Bateson

Re: problem with results

by Mark Stevens -
Gordon and Thomas,

Thanks so much for all of your hard work on integrating Hot Potatoes into Moodle.  It's really a great thing you guys have done.

I've got a tough question for you guys:  We are going to upgrade our Moodle site tomorrow, what do you recommend we do:
1.  Install the "older and more stable" version and have our teachers re-learn to use the new version, or
2.  Install the new version

We've got about 50 teachers and 1,000 students smile

Thanks for any help smile
Mark
In reply to Mark Stevens

Re: problem with results

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Dear Mark,
I agree that your question is not easy to answer.

I have been in contact with Tom recently, and agreed that when all the bugs have been ironed out of the new HotPotatoes module, it probably will be renamed "HotPot v2" and take over from the current HotPot module. It will include a script to import quizzes and their results from the current HotPot module to the new one. I expect this to be ready around March 14th.

I don't think there will be be much "re-learning" required when switching from the old module to the new one. Outwardly, the new one behaves just like the old one, but has additional features.

Therefore I would suggest installing the "road-tested" HotPot module now and expect to update to the new module in a couple of weeks.

best regards
Gordon

In reply to Gordon Bateson

Re: problem with results

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Dear Gordon,
Thanks for providing the fix for the bug mentioned above. I have downloaded the modified versions of "view.php" and "report.php" to the hotpot modules directory.
Now I don't get the "date" error, but have another error to report.
When I am logged in as teacher, and viewing Results, if I want to delete one or several Hot Pots exercises results I get this error message:
Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
where the referring page is "http://localhost/moodle/mod/hotpot/report.php%3fid=117"

All the best,
Joseph_R
In reply to Joseph Rézeau

Re: problem with results

by Gordon Bateson -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Yes, something is amiss with the deleting of HotPot attempts. I tried selecting a single attempt and clicking the "Delete" button and got the following message:

The requested URL /moodle/mod/hotpot/delinstance.php was not found on this server

Looking at the "mod/hotpot" folder there is no "delinstance.php", so perhaps Tom is still working on this feature.

Are you there Tom ...