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

Course editing page(course/index.php) has capability/role errors

    XMLWordPrintable

    Details

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

      Description

      Under 'Administration > Server > Debugging', turn 'Debug Message' option to 'Normal:' or higher.
      Then view the 'Administration > Courses > Add/Edit Courses' page (course/index.php)

      When any block that implements roles/capabilities during its initialization is installed on this page, or whenever the 'Assign Roles' icon is clicked for any block, the following error is generated:

      Error: Invalid context creation request for level "50", instance "0".

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            mavelar Michael Avelar
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jun/07