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

Main Menu block non-js dropdowns are deprecated error

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Create a course
      3. Navigate to site home
      4. Turn editing on
      5. Add the Main menu block, configuring as such:
        • Page contexts: Display throughout the entire site
      6. Navigate to course
      7. Confirm the absence of any debugging stating "non-js dropdowns are deprecated"
      8. Confirm the Main menu block does not contain separate Add a resource / Add an activity dropdowns
      9. Confirm the Main menu block contains an Add an activity or resource link that when clicked opens the activity chooser dialogue
      Show
      Log in as admin Create a course Navigate to site home Turn editing on Add the Main menu block, configuring as such: Page contexts: Display throughout the entire site Navigate to course Confirm the absence of any debugging stating "non-js dropdowns are deprecated" Confirm the Main menu block does not contain separate Add a resource / Add an activity dropdowns Confirm the Main menu block contains an Add an activity or resource link that when clicked opens the activity chooser dialogue
    • Affected Branches:
      MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_311_STABLE
    • Pull 3.11 Branch:
      MDL-71682-311
    • Pull Master Branch:

      Description

      As reported by AL Rachels in a forum discussion Main Menu block non-js dropdowns are deprecated:

      On the QA Testing site logged in as administrator on the front page with debug on, add a Main Menu block. Configure the block to display throughout the entire site. Go to a course such as Marvelous Media Players. You will see a debug message:

      non-js dropdowns are deprecated.

          line 339 of /course/renderer.php: call to debugging()
          line 287 of /course/renderer.php: call to core_course_renderer->course_section_add_cm_control_nonajax()
          line 157 of /blocks/site_main_menu/block_site_main_menu.php: call to core_course_renderer->course_section_add_cm_control()
          line 766 of /blocks/moodleblock.class.php: call to block_site_main_menu->get_content()
          line 235 of /blocks/moodleblock.class.php: call to block_list->formatted_contents()
          line 1181 of /lib/blocklib.php: call to block_base->get_content_for_output()
          line 1239 of /lib/blocklib.php: call to block_manager->create_block_contents()
          line 374 of /lib/blocklib.php: call to block_manager->ensure_content_created()
          line 3980 of /lib/outputrenderers.php: call to block_manager->region_has_content()
          line 40 of /theme/boost/layout/columns2.php: call to core_renderer->blocks()
          line 1396 of /lib/outputrenderers.php: call to include()
          line 1326 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
          line 245 of /course/view.php: call to core_renderer->header()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              tsala Helen Foster
              Peer reviewer:
              Peter Dias Peter Dias
              Integrator:
              Adrian Greeve Adrian Greeve
              Tester:
              Anna Carissa Sadia Anna Carissa Sadia
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jul/21

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 6 minutes
                  2h 6m