Moodle
  1. Moodle
  2. MDL-31024

My Moodle Homepage Shows Error (Unique to single user)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: STABLE backlog
    • Component/s: Grading methods, My home
    • Labels:
    • Environment:
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. Manager or Administrator Role User Login to Instance
      2. User visits My Moodle homepage
      3. Error is thrown

      Show
      1. Manager or Administrator Role User Login to Instance 2. User visits My Moodle homepage 3. Error is thrown
    • Workaround:
      Hide

      None so far. Creating bug in case others have similar issue after 2.2 upgrade.

      Show
      None so far. Creating bug in case others have similar issue after 2.2 upgrade.
    • Affected Branches:
      MOODLE_22_STABLE
    • Rank:
      37431

      Description

      Debug info: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in /var/www/portal.itas.ca/lib/modinfolib.php on line 998 and defined

      Moodle Error:

      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 1104 of /lib/modinfolib.php: call to course_modinfo->__construct()
      line 1519 of /lib/datalib.php: call to get_fast_modinfo()
      line 3596 of /mod/assignment/lib.php: call to get_all_instances_in_courses()
      line 841 of /course/lib.php: call to assignment_print_overview()
      line 107 of /blocks/course_overview/block_course_overview.php: call to print_overview()
      line 280 of /blocks/moodleblock.class.php: call to block_course_overview->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 926 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 978 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 311 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 957 of /lib/outputrenderers.php: call to block_manager->get_content_for_region()
      line 148 of /my/index.php: call to core_renderer->blocks_for_region()

      Apache Log Error:

      [Wed Jan 04 17:26:34 2012] [error] [client 70.67.156.234] Default exception handler: Coding error detected, it must be fixed by a programmer: PHP catchable fatal error Debug: Argument 2 passed to has_capability() must be an instance of context, boolean given, called in /var/www/portal.itas.ca/lib/modinfolib.php on line 998 and defined\n* line 365 of /lib/setuplib.php: coding_exception thrown\n* line 348 of /lib/accesslib.php: call to default_error_handler()\n* line 998 of /lib/modinfolib.php: call to has_capability()\n* line 980 of /lib/modinfolib.php: call to cm_info->update_user_visible()\n* line 272 of /lib/modinfolib.php: call to cm_info->obtain_dynamic_data()\n* line 1104 of /lib/modinfolib.php: call to course_modinfo->__construct()\n* line 1519 of /lib/datalib.php: call to get_fast_modinfo()\n* line 3596 of /mod/assignment/lib.php: call to get_all_instances_in_courses()\n* line 841 of /course/lib.php: call to assignment_print_overview()\n* line 107 of /blocks/course_overview/block_course_overview.php: call to print_overview()\n* line 280 of /blocks/moodleblock.class.php: call to block_course_overview->get_content()\n* line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()\n* line 926 of /lib/blocklib.php: call to block_base->get_content_for_output()\n* line 978 of /lib/blocklib.php: call to block_manager->create_block_contents()\n* line 311 of /lib/blocklib.php: call to block_manager->ensure_content_created()\n* line 957 of /lib/outputrenderers.php: call to block_manager->get_content_for_region()\n* line 148 of /my/index.php: call to core_renderer->blocks_for_region()\n, referer: https://portal.itas.ca/course/loginas.php?id=1&user=373&sesskey=i67nc2WiCz
      leeb@core:/var/log/apache2$

        Issue Links

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: