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

Fatal error caused by navbar renderer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.4.4, 2.5
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as a admin.
      2. Ensure $CFG->navshowcategories is enabled.
      3. Log in as a student.
      4. Browse to a course.
      5. Check the category path for the course is shown in the navbar.
      6. Log in as an admin and disable $CFG->navshowcategories.
      7. Log in as a student.
      8. Browse to the same course.
      9. Check that the category path is no longer shown.
      Show
      Log in as a admin. Ensure $CFG->navshowcategories is enabled. Log in as a student. Browse to a course. Check the category path for the course is shown in the navbar. Log in as an admin and disable $CFG->navshowcategories. Log in as a student. Browse to the same course. Check that the category path is no longer shown.
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-39127-m25-integration

      Description

      When going to any course in the simple theme, I get this problem:

      Coding error detected, it must be fixed by a programmer: PHP catchable fatal error
      Debug info: Argument 1 passed to renderer_base::render() must implement interface renderable, instance of stdClass given, called in [dirroot]/theme/bootstrap/renderers/core.php on line 58 and defined
      Error code: codingerror
      Stack trace:
      line 406 of /lib/setuplib.php: coding_exception thrown
      line 98 of /lib/outputrenderers.php: call to default_error_handler()
      line 58 of /theme/bootstrap/renderers/core.php: call to renderer_base->render()
      line 122 of /theme/simple/layout/general.php: call to theme_bootstrap_core_renderer->navbar()
      line 841 of /lib/outputrenderers.php: call to include()
      line 771 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 240 of /course/view.php: call to core_renderer->header()
      

      It seems one of the items returned == false.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    13/May/13