Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4155

Error when restoring a 2.2 backup into 2.4: UploadPDF not present

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.4, 2.4.1
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      If we're restoring a course backed up with Moodle 2.2 and the older version of UploadPDF, into Moodle 2.4 with the newer versions of Upload PDF (Submission and Feedback), should we be receiving errors? From the looks of the errors a colleague has passed on, the restored code is looking for the 2.2 UploadPDF version which doesn't exist in 2.4.

      From a conversation about restoring backups:

      "I tried on Friday and although the restore was successful the assignments didn't appear on 2.4. However, I've just realised that the 2.2 assignment type module is switched off so I have enabled it and lots of uploadpdf errors appeared (I can't see them now though to copy them!)

      I can also see the assignments in the test course but if you click on one you get the following error.

      Warning: require(/srv/moodle24/mod/assignment/type/uploadpdf/assignment.class.php): failed to open stream: No such file or directory in /srv/moodle24/mod/assignment/view.php on line 43
      Fatal error: require(): Failed opening required '/srv/moodle24/mod/assignment/type/uploadpdf/assignment.class.php' (include_path='/srv/moodle24/lib/zend:/srv/moodle24/lib/pear:.:/usr/share/php:/usr/share/pear') in /srv/moodle24/mod/assignment/view.php on line 43

      ...and restoring a full course with uploadpdf assignments bought up the following error:

      Incorrect assignment type: uploadpdf

      line 3624 of /mod/assignment/lib.php: call to debugging()
      line 1139 of /course/lib.php: call to assignment_get_coursemodule_info()
      line 1405 of /lib/modinfolib.php: call to get_array_of_activities()
      line 474 of /backup/moodle2/restore_stepslib.php: call to rebuild_course_cache()
      line 34 of /backup/util/plan/restore_execution_step.class.php: call to restore_rebuild_course_cache->define_execution()
      line 153 of /backup/util/plan/base_task.class.php: call to restore_execution_step->execute()
      line 163 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
      line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
      line 315 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
      line 147 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
      line 46 of /backup/restore.php: call to restore_ui->execute()"

        Attachments

          Activity

            People

            • Assignee:
              davosmith Davo Smith
              Reporter:
              vaughany Paul Vaughan
              Participants:
              Component watchers:
              Davo Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: