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

Restoring course gives PHP error back

    XMLWordPrintable

    Details

    • Database:
      MySQL
    • Testing Instructions:
      Hide
      1. Import the Role
      2. Create a category
      3. create a course in this category
      4. assign the role to a user in the category
      5. backup the course in this category
      6. restore the course into the category (as a new course)
      Show
      Import the Role Create a category create a course in this category assign the role to a user in the category backup the course in this category restore the course into the category (as a new course)
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      Everytime i try restoring a course, it gives me following error code:

      Argument 1 passed to role_get_name() must be an instance of stdClass, null given, called in [dirroot]/lib/accesslib.php on line 4226

       The error occurs with the role attached to this bug report.

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: