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

Restore of course role assignments works but drops some errors...

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Backup, Roles / Access
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      It seems that, since some days ago, we are getting some errors when restoring course role assignments:

      Error: could not insert new context level "70", instance "487".

      • line 2291 of lib/accesslib.php: call to debugging()
      • line 2612 of lib/accesslib.php: call to create_context()
      • line 1084 of course/lib.php: call to get_context_instance()
      • line 1726 of lib/datalib.php: call to get_fast_modinfo()
      • line 1767 of lib/datalib.php: call to get_all_instances_in_courses()
      • line 4830 of mod/forum/lib.php: call to get_all_instances_in_course()
      • line 4765 of mod/forum/lib.php: call to forum_add_user_default_subscriptions()
      • line 3012 of lib/accesslib.php: call to forum_role_assign()
      • line 7910 of backup/restorelib.php: call to role_assign()
      • line 7779 of backup/restorelib.php: call to restore_write_roleassignments()
      • line 7504 of backup/restorelib.php: call to restore_roles_settings()
      • line 47 of backup/restore_execute.html: call to restore_execute()
      • line 168 of backup/restore.php: call to include_once()

      And the error is dropped a bunch of times (4 in my restore) per user.

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Adrian Greeve, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08