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

French lang with quotes string causes SCORM to fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Language, SCORM
    • Labels:
    • Environment:
      Linux Apache MySQL, Firefox 9 and MS IE 8
    • Testing Instructions:
      Hide

      1- Install French language package.
      2- unable SCORM debugger.
      3- Try to launch a SCORM, you may get the "Unable to find an API adapter" error

      Show
      1- Install French language package. 2- unable SCORM debugger. 3- Try to launch a SCORM, you may get the "Unable to find an API adapter" error
    • Workaround:
      Hide

      Make sure that all strings used in the french (and maybe other languages) SCORM api are well formed to escape any character that can lead to Javascript interpretation errors.
      examnple, Instead of:
      '-->L'activité....'
      Use
      "-->L'activité...."

      Show
      Make sure that all strings used in the french (and maybe other languages) SCORM api are well formed to escape any character that can lead to Javascript interpretation errors. examnple, Instead of: '-->L'activité....' Use "-->L'activité...."
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      master_MDL-31397

      Description

      I have got this message error "Unable to find an API adapter" for a while. After looking over it. I found that it is caused by the combination of two situations:

      • The SCORM debugger is enabled (by me).
      • A syntax error in the french SCORM api. (in fact, there's an error of a ['] not escaped in '-->L'activité....'; so it is causing an error of missing [;].

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Mar/12