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

WEBCT IMPORT does NOT work for any question type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.7.3
    • 1.7
    • Questions
    • None
    • All

      The import process exit at line 320 when :TYPE: indicating the start of the first question (generally line 2 or 3) is found

      if (eregi(^:(TYPE/EOF):,$line)) {

      // New Question or End of File

      the code test for question components which are not found and exit. One simple way to correct this is to check that we are at least after the second line and replace by

      if (eregi(^:(TYPE/EOF):,$line) and $nLineCounter > 2)

      This will work also for files containing more than one question.

      We need also to convert to utf8 before doing the analysis.

      I propose the function utf8_encode_array() applied to $lines the array of $line.It is not in the current libs.

      This was applied to french questions with accents that are not correctly decode without the utf8 conversion.

      see the quizz forum for details and files

            howardsmiller Howard Miller
            ppichet Pierre Pichet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.