Learning Management Tools

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

Very odd behavior in Question Bank list

  • 2017-03-28 17:42:54

    Very odd behavior in Question Bank list

    I have many questions in my question bank. I edited one and added some code to provide an audio clip link for the test-taker to listen to. The code is good and the question displays properly, the audio works as expected. The problem: the question bank list now has two columns. The new, right column has only the question that immediately follows the edited question, and that right-column is not selectable with the checkbox.
    If I remove the new code the Question Bank list returns to its normal single column.
    I have attached a pic that shows the two columns, and below is the code for the question.
    =========Question Code=================================
    <h3>Listen to the audio clip and choose the best option to complete the sentence.</h3>
    <p><a href="../audio/A1_Units1-5_ReviewTest_Exercise_Q29_part2.mp3" title="A1_Units1-5_ReviewTest_Exercise_Q29_part2" onclick="'../audio/A1_Units1-5_ReviewTest_Exercise_Q29_part2.mp3','A1_Units1-5_ReviewTest_Exercise_Q29_part2','width=200,height=100,left=200,top=100');return false;"><img src="../images/audio.png" border="0" alt="audio icon" width="35" height="35" /></a>Click to listen to the audio clip.</p>
    <p>The speakers are in a _____.</p>

    Operating system ATutor is installed on -
    ATutor version -2.2.2
    Patch #s applied -0001, 0002, 0003, 0005, 0006, 0007, 0008
    ATutor theme name - ATutor Classic
    PHP version -5.4.45
    MySQL version -5.6.33-cll-lve
    Webserver & version - Linux 2.6.32-673.26.1.lve1.4.20.el6.x86_64
    Web browser being used - Chrome

  • 2017-03-29 12:25:22

    Re: Very odd behavior in Question Bank list

    I thought I would provide one more screenshot - this time you can see there are now four columns. I have added the code for the listening audio clip to four questions, as you can see in the screenshot text.

  • 2017-03-29 12:59:03

    Re: Very odd behavior in Question Bank list

    Script is not allowed in test questions. My guess is it is failing on the quotes, which need to be escaped before going into the db, thus breaking the script.

    Won't be able to look into this for a while. You can track the issue in the bug tracker.

  • 2017-04-02 15:25:43

    Re: Very odd behavior in Question Bank list

    Just an FYI: I edited the database entry for one of the "problem" questions by escaping, with the \ in front of all the ", but that made no difference, had no effect at all. Then I went back in and escaped all the single quotes, but that also had no effect at all.

    The only problem this causes is in the list in the question bank. The script itself works fine on the finished web page. The list of questions listed under the full test is displayed correctly.