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

invalid context creation error after course deletion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.2, 1.8, 1.9
    • Fix Version/s: 1.9
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Immediately after a course deletion, you see this type of message on all pages.

      Error: Invalid context creation request for level "50", instance "7". in /var/www/stable/lib/accesslib.php on line 1675 in debugging()

      You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND userid = 2' at line 3

      SELECT * FROM clean_role_assignments WHERE contextid = AND userid = 2 in /var/www/stable/lib/dmllib.php on line 677 in debugging()

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            lazyfish Yu Zhang
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

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