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

Restore: Some warnings displayed with debugging()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide

      1. Restore the attached backup file (broken-backup.mbz) to a new course using default settings.

      EXPECTED: No debugging messages should display.
      EXPECTED: The restore log ('Technical information and warnings') should display the following 4 messages (it may also display other stuff if you have developer debug turned on):

      Enrol plugin 'enrol_doesnotexist' data can not be restored because it is not enabled, use migration to manual enrolments
      Restore of 'local_nocomponent/0' group membership is not supported, using standard group membership instead.
      Restore of 'local_nocomponent/0' role assignments is not supported, using manual role assignments instead.
      Mapped user id not found for user id '10000003', grade item id '271'
      

      Show
      1. Restore the attached backup file (broken-backup.mbz) to a new course using default settings. EXPECTED: No debugging messages should display. EXPECTED: The restore log ('Technical information and warnings') should display the following 4 messages (it may also display other stuff if you have developer debug turned on): Enrol plugin 'enrol_doesnotexist' data can not be restored because it is not enabled, use migration to manual enrolments Restore of 'local_nocomponent/0' group membership is not supported, using standard group membership instead. Restore of 'local_nocomponent/0' role assignments is not supported, using manual role assignments instead. Mapped user id not found for user id '10000003', grade item id '271'
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull Master Branch:
      MDL-42388-master

      Description

      Some errors in restore are displayed using debugging() as well as logged. This was presumably done because previously, nobody ever saw the restore log.

      Now that the system actually displays the log, it is not necessary to also use debugging() to report these errors.

      In addition there is one error which was only displayed using debugging() and not logged.

      This relates to the file backup/moodle2/restore_stepslib.php.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                18/Nov/13