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

When adding a new Scorm object, issues can arise if moddata contains data from a previous install.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.8.7, 1.9.3, 2.0
    • 1.8, 1.9
    • SCORM
    • None
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

      to reproduce - create a new moodle install. create a course and add a scorm object.

      delete the database, and reinstall moodle, create a course and add a scorm object.

      "rename" fails, as it tries to rename to a folder that already exists.

      in function scorm_add_instance() for scorm/lib.php

      before this line is called:
      rename($scorm->dir.$scorm->datadir,$scorm->dir.'/'.$id);

      a check should be made to see if ($scorm->dir.'/'.$id) exists and if so delete it's contents before continuing.

            danmarsden Dan Marsden
            danmarsden Dan Marsden
            Piers Harding Piers Harding
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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