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

Restore allows addition of assignment types that are not installed.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.9
    • Component/s: Assignment (2.2)
    • Labels:
      None
    • Environment:
      PHP 4.3.9
      Apache 2.0.52
      Mysql 4.1.20
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When restoring a course from 1.5.4 to 1.8.1 that has and assignment type that is not installed in Moodle 1.8, like HSU's upload and review, Moodle allows the assignment to be created without any error or warning.

      The assignment can't be deleted and the course can't be deleted because required files for deletion don't exist.

      Error messages when deleting the assignment:

      Warning: assignment_delete_instance(/home/lms/public_html/mod/assignment/type/uploadreview/assignment.class.php): failed to open stream: No such file or directory in /home/lms/public_html/mod/assignment/lib.php on line 1678

      Fatal error: assignment_delete_instance(): Failed opening required '/home/lms/public_html/mod/assignment/type/uploadreview/assignment.class.php' (include_path='.:/usr/share/pear') in /home/lms/public_html/mod/assignment/lib.php on line 1678

      email jrh18@humboldt.edu for an example course with the problem. Unfortunately the zipped file is 43 mb, which is large r than I can upload.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            jrh18 Jason Hardin
            Tester:
            Nobody Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08