ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Mytestsphp not displaying test results


  • 2008-03-03 13:49:14

    Mytestsphp not displaying test results

    operating system - Server 2003
    version of ATutor - 1.5.5
    versions of php - 5.2.3
    version of mysq l - 5.0
    webserver & version - Apache 2.2.6
    web browser being used - firefox and I.E.

    Im having a weird issue in the my_tests.php area... where only 1 of the results is showing, in the image included you can see the issue i'm having.

    In the picture you will see that the same test (the one that displays the score) is showing text (sin marcar - without score) because I left a few of the answers blank to see what happened, anyway that is the only test that's displaying the results as they should.

    The only way I can see the correct results is if I click on the view results link which takes me to the view_results.php, there under final results (also in another image) I can see the results.

    I also included in the zip file the my_tests.php, view_results.php and take_test.php in case these are what are causing the issue.

    Another side note... I modified my exams with the modifications that indieRect made to be able to disable the leave blank option, not sure if it has to do anything with that, since I would guess that the error would appear in all of the exams globally and not show 1 results like in my case.

    Post about the option to leave blank:

    http://www.atutor.ca/view/7/12303/1.html

  • 2008-03-03 13:50:01

    Re: My_tests.php not displaying test results

    Forgot the zip file... included in this reply

  • 2008-03-04 09:19:33

    Re: My_tests.php not displaying test results

    I don't see anything on the surface that might explain the problem.

    Are you able to reproduce the problem? Describes the steps so we can reproduce ourselves.

  • 2008-03-04 14:57:45

    Re: My_tests.php not displaying test results

    In the zip file attached there's a video of a new user I created, in that video I show all the steps I make. I took 3 exams, 2 of them reproduce the error of the N/A result and the other shows the correct score posted on the results area.

  • 2008-03-04 15:23:34

    Re: My_tests.php not displaying test results

    In the php file included in this reply, I included the original lines I modified as comments, the modified lines are under uncommented. Maybe this will also help.

  • 2008-03-04 16:16:58

    Re: My_tests.php not displaying test results

    Hi,

    Can you login as the instructor who creates these tests and go to "Manage" tab -> page "test & surveys" -> select one of the tests whose results are not displayed -> click on "edit" button, and let me know the definition for "Release Results". This property has 3 choices by the way, which are:

    * Once quiz has been submitted
    * Once quiz has been submitted and all questions have been marked
    * Do not release results

    I suspect it's because of this definition. You may also want to try out 3 of them to see their effects on my_tests.php

    Another thing is, "examError.zip" you uploaded seems incomplete or corrupted. I got 0 bytes at download. Can you re-upload it, or if it's too big, can you directly send to my email: cindyqi.li@utoronto.ca

    Thanks.

    [reply][b]In reply to:[/b]
    operating system - Server 2003
    version of ATutor - 1.5.5
    versions of php - 5.2.3
    version of mysq l - 5.0
    webserver & version - Apache 2.2.6
    web browser being used - firefox and I.E.

    Im having ...
    [op]forums/view.php?fid=7;pid=13004;page=1#13004[/op][/reply]

  • 2008-03-04 16:50:19

    Re: My_tests.php not displaying test results

    The video I posted is on my ftp:

    http://www.dsicorppr.com/exam/examError.zip

    All the exams have the option

    Once quiz has been submitted and all questions have been marked

    I tried all of them and the first one:

    Once quiz has been submitted returns the same results (N/A and see results)

    The third option:

    Do not release results does exactly that shows (N/A in results and no results available in the next column).

  • 2008-03-05 07:50:12

    Re: My_tests.php not displaying test results

    First of all, thank you for providing a whole lot of details.

    Unfortunately, that data were somehow still insufficient. :) The reason may well be outside the test taking part of ATutor.

    Please check the DB. In the AT_tests table, find the entries corresponding to your tests. Then look at their "out_of" fields.
    My guess is that in those tests showing the bug, "out_of" is set to zero, and in the test which works OK it's non-zero. Please check it.

    If that assumption appears to be correct, then the bug is most likely in the test creation/editing scripts in /tools/tests/ . Then please have those scripts checked, especially those places that insert to/update the "out_of" field of AT_tests table. And especially the points where your programmer might have altered the PHP code.

    ===

    There is, however, an unrelated bug in my_testsMod.php.

    The SQL request on line 188 lacks "R.status=1" in the WHERE clause. That causes the script to include [i]ongoing[/i] test take attempts in the bottom table. I'm quite sure that the last submission in my_testsError.jpg is marked as ongoing in the DB.
    For fixing [i]this[/i] bug, only getting back the "R.status=1" condition should suffice (cf. the original SQL query).

  • 2008-03-05 12:53:55

    Re: My_tests.php not displaying test results

    While I fix it, can't I change the posting method, instead of "out_of" to final result, since final result is somehow showing in the view results area. And anyway, if out_of was set to 0, why is it correctly setting the data in the final result. I'm viewing the tables and the out_of is writing information, but I can't see the table details (the tests).

    Thanks again everyone for helping me, I'll keep working on this and let you know if I find a solution.

  • 2008-03-07 09:21:19

    Re: My_tests.php not displaying test results

    Sorry, but I'm afraid I didn't understand you fully. I guess we'll just wait for further updates.

    And don't hesitate to post here anything you'll consider worthy.

  • 2008-03-07 11:45:05

    Re: My_tests.php not displaying test results

    Included are jpegs from mysql administrator to clarify my previous question.

    After you answer the test (no matter which of them) in my_tests.php, you are supposed to view the scores i.e. 24/30 and in the next column you can "view results". If you click on view results you get to see the different options you selected and at the end there's a row that shows final result 24/30.

    In all of the tests final_result is displaying correctly, what I was thinking is, if it's a problem of out_of and mysql to change the out_of value that's posted to my_tests.php to final_result.

  • 2008-03-10 06:59:44

    Re: My_tests.php not displaying test results

    You mean changing the way the column "Resultados" is calculated by replacing "out_of" with what's used in the "Final results"/"Puntuacion final" on the view_results.php?

    I guess it's possible.
    But it could appear to be a longer way, especially if one needs to change every script that uses "out_of".

    Did you examine the database tables using phpMyAdmin or a similar tool as I suggested? That might help finding the bug and creating a fix for everyone influenced.

    Alternatively, you can edit and save the test, reassign question weights in it and perform similar (presumably not changing anything) manipulations to see if any of them overwrites the value in the database and thus counters the bug. It would be a useful result (a workaround) by itself, but also could help finding the bug.

  • 2008-03-10 07:07:25

    Re: My_tests.php not displaying test results

    P.S. I didn't find any attachments to your last post, so probably I missed something important.

  • 2008-03-10 23:04:06

    Re: My_tests.php not displaying test results

    Attachment, I forgot to post it apparently.