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

Restore broken - backport of MDL-59011

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.2.3
    • Fix Version/s: None
    • Component/s: Backup, Calendar
    • Labels:
    • Testing Instructions:
      Hide
      1. Restore the attached course as a new course.
      2. Make sure all user data is include configs are checked during restore.
      3. Make sure there are no errors during restore. Check course calendar and make sure there is an event "Manual event" for the month of June 2017
      4. Login as s5 restored user and make sure you see an assign over due event in the month of july.

      Note:- You might get complain from backup about admin user conflict, edit the backup xml users file to get rid of it if needed.
      Note2: - Ignore the 3.4 restore warning

      Show
      Restore the attached course as a new course. Make sure all user data is include configs are checked during restore. Make sure there are no errors during restore. Check course calendar and make sure there is an event "Manual event" for the month of June 2017 Login as s5 restored user and make sure you see an assign over due event in the month of july. Note:- You might get complain from backup about admin user conflict, edit the backup xml users file to get rid of it if needed. Note2: - Ignore the 3.4 restore warning
    • Affected Branches:
      MOODLE_32_STABLE
    • Sprint:
      3.4 Sprint 1

      Description

      Try to restore the attached backup.

      Replication steps -

      1. Backup a course with user data
      2. Try and restore the course with the user data
      3. (if restoring to a diff site you might need to resolve admin user conflict)
      4. There might be some specific config set responsible for this, I have an assign activity with groups, calendar events, group overrides, useroverrides.

      It gives the below error -

      error/setting_by_name_not_found
       
      More information about this error
       
      Debug info:
      Error code: setting_by_name_not_found
      $a contents: userinfo
      Stack trace:
      line 124 of /backup/util/plan/base_plan.class.php: base_plan_exception thrown
      line 97 of /backup/util/plan/base_task.class.php: call to base_plan->get_setting()
      line 106 of /backup/util/plan/base_task.class.php: call to base_task->get_setting()
      line 2662 of /backup/moodle2/restore_stepslib.php: call to base_task->get_setting_value()
      line 137 of /backup/util/plan/restore_structure_step.class.php: call to restore_calendarevents_structure_step->process_calendarevents()
      line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()
      line 178 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk()
      line 91 of /backup/util/helper/restore_structure_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk()
      line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to restore_structure_parser_processor->postprocess_chunk()
      line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk()
      line 190 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
      line 278 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
      line ? of unknownfile: call to progressive_parser->end_tag()
      line 179 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
      line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
      line 110 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()
      line 181 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
      line 178 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
      line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
      line 339 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
      line 224 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
      line 111 of /backup/restore.php: call to restore_ui->execute()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ankit_frenz Ankit Agarwal
              Reporter:
              ankit_frenz Ankit Agarwal
              Peer reviewer:
              Mark Nelson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: