Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27973

Question export: Exporting true/false question triggers various warnings and notices

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.1
    • Component/s: Questions
    • Labels:

      Description

      Trying to export t/f question fails when saving as qti format

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            aborrow Anthony Borrow added a comment -

            Functionally I believe the export may still work - I've not checked yet but the warnings and notices should be cleaned up. Peace - Anthony

            Show
            aborrow Anthony Borrow added a comment - Functionally I believe the export may still work - I've not checked yet but the warnings and notices should be cleaned up. Peace - Anthony
            Hide
            aborrow Anthony Borrow added a comment -

            Debug info: Headers already sent, can not serve file.
            Stack trace:

            line 1555 of /lib/filelib.php: file_serving_exception thrown
            line 1807 of /lib/filelib.php: call to prepare_file_content_sending()
            line 1767 of /lib/questionlib.php: call to send_file()
            line 658 of /pluginfile.php: call to question_pluginfile()

            Output buffer: <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: Cannot modify header information - headers already sent by (output started at /html/question/format/qti_two/format.php:565) in /html/lib/filelib.php on line <i>1801</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0016</td><td bgcolor='#eeeeec' align='right'>1091152</td><td bgcolor='#eeeeec'>

            {main}( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.1255</td><td bgcolor='#eeeeec' align='right'>31649864</td><td bgcolor='#eeeeec'>question_pluginfile( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>658</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.2553</td><td bgcolor='#eeeeec' align='right'>44922768</td><td bgcolor='#eeeeec'>send_file( )</td><td title='/html/lib/questionlib.php' bgcolor='#eeeeec'>../questionlib.php<b>:</b>1767</td></tr> <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.2648</td><td bgcolor='#eeeeec' align='right'>44922888</td><td bgcolor='#eeeeec'><a href='http://www.php.net/header' target='_new'>header</a> ( )</td><td title='/html/lib/filelib.php' bgcolor='#eeeeec'>../filelib.php<b>:</b>1801</td></tr> </table></font> <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: Cannot modify header information - headers already sent by (output started at /html/question/format/qti_two/format.php:565) in /html/lib/filelib.php on line <i>1803</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0016</td><td bgcolor='#eeeeec' align='right'>1091152</td><td bgcolor='#eeeeec'>{main}

            ( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.1255</td><td bgcolor='#eeeeec' align='right'>31649864</td><td bgcolor='#eeeeec'>question_pluginfile( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>658</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.2553</td><td bgcolor='#eeeeec' align='right'>44922768</td><td bgcolor='#eeeeec'>send_file( )</td><td title='/html/lib/questionlib.php' bgcolor='#eeeeec'>../questionlib.php<b>:</b>1767</td></tr> <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.2649</td><td bgcolor='#eeeeec' align='right'>44922880</td><td bgcolor='#eeeeec'><a href='http://www.php.net/header' target='_new'>header</a> ( )</td><td title='/html/lib/filelib.php' bgcolor='#eeeeec'>../filelib.php<b>:</b>1803</td></tr> </table></font>

            Show
            aborrow Anthony Borrow added a comment - Debug info: Headers already sent, can not serve file. Stack trace: line 1555 of /lib/filelib.php: file_serving_exception thrown line 1807 of /lib/filelib.php: call to prepare_file_content_sending() line 1767 of /lib/questionlib.php: call to send_file() line 658 of /pluginfile.php: call to question_pluginfile() Output buffer: <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: Cannot modify header information - headers already sent by (output started at /html/question/format/qti_two/format.php:565) in /html/lib/filelib.php on line <i>1801</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0016</td><td bgcolor='#eeeeec' align='right'>1091152</td><td bgcolor='#eeeeec'> {main}( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.1255</td><td bgcolor='#eeeeec' align='right'>31649864</td><td bgcolor='#eeeeec'>question_pluginfile( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>658</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.2553</td><td bgcolor='#eeeeec' align='right'>44922768</td><td bgcolor='#eeeeec'>send_file( )</td><td title='/html/lib/questionlib.php' bgcolor='#eeeeec'>../questionlib.php<b>:</b>1767</td></tr> <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.2648</td><td bgcolor='#eeeeec' align='right'>44922888</td><td bgcolor='#eeeeec'><a href='http://www.php.net/header' target='_new'>header</a> ( )</td><td title='/html/lib/filelib.php' bgcolor='#eeeeec'>../filelib.php<b>:</b>1801</td></tr> </table></font> <br /> <font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'> <tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Warning: Cannot modify header information - headers already sent by (output started at /html/question/format/qti_two/format.php:565) in /html/lib/filelib.php on line <i>1803</i></th></tr> <tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr> <tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr> <tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0016</td><td bgcolor='#eeeeec' align='right'>1091152</td><td bgcolor='#eeeeec'>{main} ( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>0</td></tr> <tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.1255</td><td bgcolor='#eeeeec' align='right'>31649864</td><td bgcolor='#eeeeec'>question_pluginfile( )</td><td title='/html/pluginfile.php' bgcolor='#eeeeec'>../pluginfile.php<b>:</b>658</td></tr> <tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.2553</td><td bgcolor='#eeeeec' align='right'>44922768</td><td bgcolor='#eeeeec'>send_file( )</td><td title='/html/lib/questionlib.php' bgcolor='#eeeeec'>../questionlib.php<b>:</b>1767</td></tr> <tr><td bgcolor='#eeeeec' align='center'>4</td><td bgcolor='#eeeeec' align='center'>0.2649</td><td bgcolor='#eeeeec' align='right'>44922880</td><td bgcolor='#eeeeec'><a href='http://www.php.net/header' target='_new'>header</a> ( )</td><td title='/html/lib/filelib.php' bgcolor='#eeeeec'>../filelib.php<b>:</b>1803</td></tr> </table></font>
            Hide
            aborrow Anthony Borrow added a comment -

            screen shot of notices and warnings

            Show
            aborrow Anthony Borrow added a comment - screen shot of notices and warnings
            Hide
            aborrow Anthony Borrow added a comment -

            Tim - The qti export file did not get created so I am raising this to a blocker. Peace - Anthony

            Show
            aborrow Anthony Borrow added a comment - Tim - The qti export file did not get created so I am raising this to a blocker. Peace - Anthony
            Hide
            timhunt Tim Hunt added a comment -

            Downgrading severity. The fact that this affects 2.0.3, and no-one has complained just makes the point to me that no-one uses QTI. (I still plan to fix it.)

            Show
            timhunt Tim Hunt added a comment - Downgrading severity. The fact that this affects 2.0.3, and no-one has complained just makes the point to me that no-one uses QTI. (I still plan to fix it.)
            Hide
            aborrow Anthony Borrow added a comment -

            Sorry - Tim, I put the wrong affects version. It is for 2.1. I have no idea what it was doing before. It is preventing one of the MDLQA tests from passing though so I am not sure what level of priority it should receive. Peace - Anthony

            Show
            aborrow Anthony Borrow added a comment - Sorry - Tim, I put the wrong affects version. It is for 2.1. I have no idea what it was doing before. It is preventing one of the MDLQA tests from passing though so I am not sure what level of priority it should receive. Peace - Anthony
            Hide
            timhunt Tim Hunt added a comment -

            Also, when copying and pasting long error messages, please wrap them in

             

            tags, so they remain readable.

            Show
            timhunt Tim Hunt added a comment - Also, when copying and pasting long error messages, please wrap them in   tags, so they remain readable.
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Integrated, thanks!

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Integrated, thanks!
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Passing test without further action. This will be tested by MDLQA-1039 once this meets upstream.

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Passing test without further action. This will be tested by MDLQA-1039 once this meets upstream.
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            All git & cvs servers have been updated with these cool changes, so closing, many thanks!

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - All git & cvs servers have been updated with these cool changes, so closing, many thanks!

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Jul/11