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

Restore - PHP Notices during restore of 1.9 zip file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2, 2.3
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Backup, Questions
    • Labels:
    • Testing Instructions:
      Hide

      1. Restore the test backup file attached to MDL-16513.
      2. Verify that there are no notices relating to questions. (Note, I did get a notice about something else when I tested.)
      3. Once the restore is done, go into the question bank and edit and/or preview the matching question, and verify that it is all present and correct.

      Show
      1. Restore the test backup file attached to MDL-16513 . 2. Verify that there are no notices relating to questions. (Note, I did get a notice about something else when I tested.) 3. Once the restore is done, go into the question bank and edit and/or preview the matching question, and verify that it is all present and correct.
    • Workaround:
      Hide

      Turn debugging off and the notices will not be seen.

      Show
      Turn debugging off and the notices will not be seen.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      While doing a restore - creating a new course - the following PHP notices appear:

      Notice: Undefined index: matchoptions in /home/arborrow/NetBeansProjects/m22/question/type/match/backup/moodle1/lib.php on line 59

      Notice: Undefined index: original_site_identifier_hash in /home/arborrow/NetBeansProjects/m22/backup/util/helper/backup_general_helper.class.php on line 141

      This is a pretty trivial matter but it came up while looking at closing MDL-16513 so I figured I would create an issue should someone want something that is hopefully easy to work on.

      Peace - Anthony

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                timhunt Tim Hunt
                Reporter:
                aborrow Anthony Borrow
                Peer reviewer:
                David Mudrák (@mudrd8mz)
                Integrator:
                Eloy Lafuente (stronk7)
                Tester:
                Jason Fowler
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

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