Moodle
  1. Moodle
  2. MDL-28016

SCORM Course format not useable in 2.0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.0.4
    • Component/s: SCORM
    • Labels:
    • Testing Instructions:
      Hide

      Create a new course using the SCORM format - enrol users, then return to course to add the SCORM object. The course should redirect to the add SCORM page.

      NOTE: if debugging is turned on you will get a debugging warning about redirecting after output - not much we can do about this as stuff is printed by course/view.php before course formats are included... unless we just provide a manual link to create a SCORM - but that seems a bit backwards.

      Show
      Create a new course using the SCORM format - enrol users, then return to course to add the SCORM object. The course should redirect to the add SCORM page. NOTE: if debugging is turned on you will get a debugging warning about redirecting after output - not much we can do about this as stuff is printed by course/view.php before course formats are included... unless we just provide a manual link to create a SCORM - but that seems a bit backwards.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull Master Branch:
      master_MDL-28016
    • Rank:
      17700

      Description

      copied from forum post:
      http://moodle.org/mod/forum/discuss.php?d=170055
      I have just upgraded a version of Moodle 1.9 to 2.0 and I meet a problem to create a SCORM course format.

      Indeed, after having created a scorm course in 1.9 we were asked to automatically set the scorm package to deploy. In 2.0, however once you have enrolled students it is not possible to access the course and moodle return an unknow error. I must temporarily change the format of the course to be able to create a scorm activity which is then used when I return to the scorm course format.

        Activity

        Hide
        Dan Marsden added a comment -

        I've just tested this on master and it seemed to "work" - but there are a few debugging messages about redirecting before printing output.

        Show
        Dan Marsden added a comment - I've just tested this on master and it seemed to "work" - but there are a few debugging messages about redirecting before printing output.
        Hide
        antoine faget added a comment - - edited

        The url created by moodle to reach the course is not clean.
        In fact, some "&" are writed in the adress bar as html code ("& amp;") so the platform can't interpret the url.
        If I modify this bad "& amp;" by "&" the redirection operates without problems.

        Here is an exemple of the bad url given by moodle:

        "http://localhost/moodle/course/mod.php?id=8& amp;section=0&sesskey=IIb0Qa1hok& amp;add=scorm"

        Do you know which part of the moodle code is responsible of the URL generation?

        Show
        antoine faget added a comment - - edited The url created by moodle to reach the course is not clean. In fact, some "&" are writed in the adress bar as html code ("& amp;") so the platform can't interpret the url. If I modify this bad "& amp;" by "&" the redirection operates without problems. Here is an exemple of the bad url given by moodle: "http://localhost/moodle/course/mod.php?id=8& amp;section=0&sesskey=IIb0Qa1hok& amp;add=scorm" Do you know which part of the moodle code is responsible of the URL generation?
        Hide
        Dan Marsden added a comment -

        Thanks Antoine, good spotting - I've submitted an integration request with a fix.

        Show
        Dan Marsden added a comment - Thanks Antoine, good spotting - I've submitted an integration request with a fix.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Integrated, thanks!

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

        Thanks Dan, test passed as described.

        Show
        Helen Foster added a comment - Thanks Dan, test passed as described.
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Yay, this is now part of the just released Moodle 2.1 ! Thanks for all the hard work!

        Show
        Eloy Lafuente (stronk7) added a comment - Yay, this is now part of the just released Moodle 2.1 ! Thanks for all the hard work!

          People

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

            Dates

            • Created:
              Updated:
              Resolved: