Moodle
  1. Moodle
  2. MDL-29164

Missing translation token [[noquestionsinfile]]

    Details

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

      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

        Activity

        Hide
        Tim Hunt added a comment -

        Thanks for the bug report.

        Show
        Tim Hunt added a comment - Thanks for the bug report.
        Hide
        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
        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
        Tim Hunt added a comment -

        Sure thing. I did not know that rule.

        Show
        Tim Hunt added a comment - Sure thing. I did not know that rule.
        Hide
        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
        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
        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
        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
        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
        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: