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

Unable to display most modules on the front page - global navigation issue

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Libraries
    • Labels:
      None
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Reproduce:
      =========
      1. HEAD checkout
      2. add a forum instance to the introduction section at the front page

      Error observed:
      ============

      Coding error detected, it must be fixed by a programmer: The $cm you set on $PAGE must have been obtained with get_coursemodule_from_id or
      get_coursemodule_from_instance. That is, the ->name and -> modname fields must be present and correct. 
       
      Stack trace:
       
          * line 624 of /lib/pagelib.php: coding_exception thrown
          * line 1219 of /lib/navigationlib.php: call to moodle_page->set_cm()
          * line 1201 of /lib/navigationlib.php: call to global_navigation->load_activity()
          * line 924 of /lib/navigationlib.php: call to global_navigation->load_for_activity()
          * line 2077 of /lib/navigationlib.php: call to global_navigation->initialise()
          * line 2379 of /lib/outputrenderers.php: call to navbar->has_items()
          * line 746 of /lib/outputrenderers.php: call to moodle_core_renderer->has_navbar()
          * line 698 of /lib/outputrenderers.php: call to moodle_core_renderer->render_page_template()
          * line 83 of /mod/forum/view.php: call to moodle_core_renderer->header()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                samhemelryk Sam Hemelryk
                Reporter:
                mudrd8mz David Mudrák (@mudrd8mz)
                Tester:
                Nobody
                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:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10