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

Error deleting a course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      Here is the debugging error I get. (Sorry if this is not correct I could not find any info in forums).

      Debug info: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in /usr/moodle/lib/modinfolib.php on line 998 and defined
      Stack trace:

      line 365 of /lib/setuplib.php: coding_exception thrown
      line 348 of /lib/accesslib.php: call to default_error_handler()
      line 998 of /lib/modinfolib.php: call to has_capability()
      line 980 of /lib/modinfolib.php: call to cm_info->update_user_visible()
      line 272 of /lib/modinfolib.php: call to cm_info->obtain_dynamic_data()
      line 1103 of /lib/modinfolib.php: call to course_modinfo->__construct()
      line 1613 of /lib/navigationlib.php: call to get_fast_modinfo()
      line 1676 of /lib/navigationlib.php: call to global_navigation->generate_sections_and_activities()
      line 47 of /course/format/topics/lib.php: call to global_navigation->load_generic_course_sections()
      line 1587 of /lib/navigationlib.php: call to callback_topics_load_content()
      line 1145 of /lib/navigationlib.php: call to global_navigation->load_course_sections()
      line 2663 of /lib/navigationlib.php: call to global_navigation->initialise()
      line 659 of /lib/pagelib.php: call to navbar->has_items()
      line 6 of /theme/formal_white/layout/general.php: call to moodle_page->has_navbar()
      line 685 of /lib/outputrenderers.php: call to include()
      line 637 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 179 of /course/edit.php: call to core_renderer->header()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              fmasuoka Fred Masuoka
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: