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

Coding error- Settings Block-Coursepage context-My profile-submenus: portfolio/messaging (Invalid context level of parameter....)

XMLWordPrintable

    • MySQL
    • MOODLE_20_STABLE

      I've got the setting block as a sticky running through the site but..clicking some of the my profile settings sub-menu links whilst in context on the course pages bring up coding errors as per the stack trace debugging below..The block is set for anywhere on the site any page. Though tried it with block set in the context of course only and still the same errors: Beyond my php coding experience at the moment, and pretty sure permissions and configurations are ok, done cron/purges just in case but still the bugs persist. Although I have customized the strings to re-label the portfolio links and setting block name the rest are as per moodle default...

      The sub-menus in the MY profile settings that do work in the course page context are:
      Change password
      Security keys
      blogs
      Preferences
      External blogs
      Register an external blog

      The problem sub-menus are
      Edit profile
      Portfolio
      Messaging
      + edit icon on settings block

      Edit profile
      Stack trace:
      line 3972 of /lib/accesslib.php: coding_exception thrown
      line 3089 of /lib/accesslib.php: call to get_course_context()
      line 77 of /blocks/online_users/block_online_users.php: call to get_enrolled_sql()
      line 279 of /blocks/moodleblock.class.php: call to block_online_users->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 5 of /theme/magazine/layout/general.php: call to block_manager->region_has_content()
      line 647 of /lib/outputrenderers.php: call to include()
      line 605 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 270 of /user/editadvanced.php: call to core_renderer->header()

      Portfolio configure
      line 3972 of /lib/accesslib.php: coding_exception thrown
      line 3089 of /lib/accesslib.php: call to get_course_context()
      line 77 of /blocks/online_users/block_online_users.php: call to get_enrolled_sql()
      line 279 of /blocks/moodleblock.class.php: call to block_online_users->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 6 of /theme/magazine/layout/general.php: call to block_manager->region_has_content()
      line 647 of /lib/outputrenderers.php: call to include()
      line 605 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 1200 of /lib/setuplib.php: call to call_user_func_array()
      line ? of unknownfile: call to bootstrap_renderer->__call()
      line 68 of /user/portfolio.php: call to bootstrap_renderer->header()

      portfolio logs
      line 3972 of /lib/accesslib.php: coding_exception thrown
      line 3089 of /lib/accesslib.php: call to get_course_context()
      line 77 of /blocks/online_users/block_online_users.php: call to get_enrolled_sql()
      line 279 of /blocks/moodleblock.class.php: call to block_online_users->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 6 of /theme/magazine/layout/general.php: call to block_manager->region_has_content()
      line 647 of /lib/outputrenderers.php: call to include()
      line 605 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 1200 of /lib/setuplib.php: call to call_user_func_array()
      line ? of unknownfile: call to bootstrap_renderer->__call()
      line 64 of /user/portfoliologs.php: call to bootstrap_renderer->header()

      My Profile settings messaging configuration
      messaging configure

      Stack trace:
      line 3972 of /lib/accesslib.php: coding_exception thrown
      line 3089 of /lib/accesslib.php: call to get_course_context()
      line 77 of /blocks/online_users/block_online_users.php: call to get_enrolled_sql()
      line 279 of /blocks/moodleblock.class.php: call to block_online_users->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 6 of /theme/magazine/layout/general.php: call to block_manager->region_has_content()
      line 647 of /lib/outputrenderers.php: call to include()
      line 605 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line ? of unknownfile: call to core_renderer->header()
      line 1200 of /lib/setuplib.php: call to call_user_func_array()
      line ? of unknownfile: call to bootstrap_renderer->__call()
      line 206 of /message/edit.php: call to bootstrap_renderer->header()

      Also this debugging info comes up clicking on the edit block icon (again in the context of the course pages):
      line 3968 of /lib/accesslib.php: coding_exception thrown
      line 3089 of /lib/accesslib.php: call to get_course_context()
      line 77 of /blocks/online_users/block_online_users.php: call to get_enrolled_sql()
      line 279 of /blocks/moodleblock.class.php: call to block_online_users->get_content()
      line 232 of /blocks/moodleblock.class.php: call to block_base->formatted_contents()
      line 895 of /lib/blocklib.php: call to block_base->get_content_for_output()
      line 947 of /lib/blocklib.php: call to block_manager->create_block_contents()
      line 342 of /lib/blocklib.php: call to block_manager->ensure_content_created()
      line 5 of /theme/magazine/layout/general.php: call to block_manager->region_has_content()
      line 647 of /lib/outputrenderers.php: call to include()
      line 605 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
      line 1271 of /lib/blocklib.php: call to core_renderer->header()
      line 1040 of /lib/blocklib.php: call to block_manager->process_url_edit()
      line 1178 of /lib/pagelib.php: call to block_manager->process_url_actions()
      line 702 of /lib/pagelib.php: call to moodle_page->starting_output()
      line 600 of /lib/outputrenderers.php: call to moodle_page->set_state()
      line 196 of /course/view.php: call to core_renderer->header()

            Unassigned Unassigned
            clicx geoff robinson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.