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

Missing translation token [[noquestionsinfile]]

    Details

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

      Description

      While importing "xml Moodle" file format in "questions" import dialoge of a course Im getting this error:

      "Error importing question Error parsing XML: Reserved XML Name at line 1, char 101

      Invalid get_string() identifier: 'noquestionsinfile' or component 'question'
      line 5908 of /lib/moodlelib.php: call to debugging()
      line 6498 of /lib/moodlelib.php: call to core_string_manager->get_string()
      line 315 of /question/format.php: call to get_string()
      line 119 of /question/import.php: call to qformat_default->importprocess()
      [[noquestionsinfile]]
      יבוא שגיאה

      מידע נוסף על שגיאה זו

      Stack trace:
      line 429 of /lib/setuplib.php: moodle_exception thrown
      line 120 of /question/import.php: call to print_error()
      "

      attached is the xml file

        Gliffy Diagrams

          Activity

          Hide
          timhunt Tim Hunt added a comment -

          Thanks for the bug report.

          Show
          timhunt Tim Hunt added a comment - Thanks for the bug report.
          Hide
          samhemelryk Sam Hemelryk added a comment -

          Hi Tim,

          I dragged this into integration as the changes are simple and the next releases are looming.
          As a rule we don't remove/move strings in stable branches, are you happy for me to integrate the master branch but change the 21 branch so that it is copying the string rather than moving it and integrate that?

          Cheers
          Sam

          Show
          samhemelryk Sam Hemelryk added a comment - Hi Tim, I dragged this into integration as the changes are simple and the next releases are looming. As a rule we don't remove/move strings in stable branches, are you happy for me to integrate the master branch but change the 21 branch so that it is copying the string rather than moving it and integrate that? Cheers Sam
          Hide
          timhunt Tim Hunt added a comment -

          Sure thing. I did not know that rule.

          Show
          timhunt Tim Hunt added a comment - Sure thing. I did not know that rule.
          Hide
          samhemelryk Sam Hemelryk added a comment -

          Thanks Tim - I've integrated the master branch and have cherry-picked the new string and changed the AMOS from MOV to CPY for the 21 branch. (ce5b990)

          Cheers
          Sam

          Show
          samhemelryk Sam Hemelryk added a comment - Thanks Tim - I've integrated the master branch and have cherry-picked the new string and changed the AMOS from MOV to CPY for the 21 branch. (ce5b990) Cheers Sam
          Hide
          abgreeve Adrian Greeve added a comment -

          Tested with version 2.1 - The error message no longer displays information about the get_string() function and produces a message that says "There are no questions in the import file." instead of [[noquestionsinfile]].

          Show
          abgreeve Adrian Greeve added a comment - Tested with version 2.1 - The error message no longer displays information about the get_string() function and produces a message that says "There are no questions in the import file." instead of [ [noquestionsinfile] ].
          Hide
          stronk7 Eloy Lafuente (stronk7) added a comment -

          And this has been sent upstream (already available @ git and cvs repos). Many, many thanks!

          Closing as fixed, ciao

          Show
          stronk7 Eloy Lafuente (stronk7) added a comment - And this has been sent upstream (already available @ git and cvs repos). Many, many thanks! Closing as fixed, ciao

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                28/Nov/11