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

error restore course : plugin_supports():enrol_

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Backup, Enrolments
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. On a 2.2 instance, create a new course
      2. Browse the table mdl_enrol for that course

        SELECT * FROM "mdl_enrol" WHERE "courseid" = '2'
        

      3. Duplicate one of the rows twice:
        • For the first clone, set the enrol value to an empty string
        • For the second clone, set the enrol value to a random string that is not an enrol plugin
      4. Backup the course
      5. Restore the course as a new course
      6. Make sure the course is restored successfully
        • You should see 2 debugging messages about skipping enrol entries

      Test 2

      1. Restore the previously created backup on a 2.7, 2.8 and master
      2. Make sure it is restored successfully
      Show
      Test 1 On a 2.2 instance, create a new course Browse the table mdl_enrol for that course SELECT * FROM "mdl_enrol" WHERE "courseid" = '2' Duplicate one of the rows twice: For the first clone, set the enrol value to an empty string For the second clone, set the enrol value to a random string that is not an enrol plugin Backup the course Restore the course as a new course Make sure the course is restored successfully You should see 2 debugging messages about skipping enrol entries Test 2 Restore the previously created backup on a 2.7, 2.8 and master Make sure it is restored successfully
    • Affected Branches:
      MOODLE_22_STABLE
    • Sprint:
      BACKEND Sprint 18

      Description

      " Detected a coding error should be corrected by a programmer: Invalid component Used in plugin_supports (): enrol_
      More information about this error "

      Stack trace:
      line 7926 of /lib/moodlelib.php: coding_exception thrown
      line 1357 of /backup/moodle2/restore_stepslib.php: call to plugin_supports()
      line 131 of /backup/util/plan/restore_structure_step.class.php: call to restore_enrolments_structure_step->process_enrol()
      line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()
      line 125 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 169 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()
      line 212 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()
      line ? of unknownfile: call to progressive_parser->start_tag()
      line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()
      line 137 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()
      line 105 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()
      line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
      line 148 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 310 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()

      ------------------------------------------------------------------------------------------

      El eskema es el siguiente :

      v22 fue migrado desde la version 1.9, desconosco el procedimiento que usaron.
      se realizo backups de un grupo de cursos de forma normal, PERO al momento de restaurarlos mostro el error y SOLO para algunos cursos y no todos.

      Pruebas realizadas:
      realize pruebas en versiones anteriores 2.1 y 2.0 que logro restaurar sin ningun problema, salvo el esperado mensaje de alerta por la version que es irrelevante. Pero el inconveniente no se muestran las calificaiones de los alumnos, las columnas de calificacion vacias. Todo correcto excepto las calificaciones en las v2.1 y 2.0
      Despues de restaurar los cursos en la version 2.1 realice backups nuevos en esta version para luego restaurarlos en mi moodle 2.2 logrando restaurarlo satifactoriamente pero igual sin las calificaciones.

      o de la siguiente manera para que lo entiendan:
      de moodle v2.2 --> 10 backups
      restore en moodle v2.2 --> 5 error/5 satisfactorio
      restore en moodle v2.1--> todo satisfactorio – ahora aqui – en este moodle v2.1->10backups
      restore en moodle v2.2 --> todo satisfactorio

      Estuve buscando respuestas pero no encuentro informacion.agradesco antemano cualquier ayuda.

      ---------------------------------INGLES---------------------------------------------
      The eskema is as follows:

      v22 was migrated from version 1.9, I do not know the procedure they used. was performed backups of a group of courses normally, but when showed the error and restore ONLY for some courses and not all.

      Tests performed:

      Perform tests in previous versions 2.1 and 2.0 that achievement restore without any problem, but the expected message alert the version that is irrelevant. But the problem does not show the calificaiones of students rating empty columns. All right except scores on v2.1 and 2.0 After restoring the courses in version 2.1 make new in this version backups and then restore them in my moodle 2.2 but still managing to restore satifactoriamente unqualified.

      or in the following manner to be understood:
      moodle v2.2 -> 10 backups
      restore in Moodle v2.2 -> 5 error / 5 satisfying
      restore in Moodle v2.1-> entirely satisfactory - now here - in this moodle v2.1-> 10backups
      restore in Moodle v2.2 -> entirely satisfactory

      tuve buscando respuestas pero no encuentro informacion.agradesco antemano cualquier ayuda.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              lishard Richard A. Mallqui L,
              Peer reviewer:
              Ankit Agarwal
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: