Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5534

course_menu Requires missing JS file(s)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Inactive
    • Affects Version/s: 2.7.3
    • Fix Version/s: None
    • Labels:
      None
    • Plugin Version:
      2015010500
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      links_with_navigation.php:59 - $PAGE->requires->js_init_call('M.block_course_menu_fix_links.init', array(), true, $module);

      There appears to be some JS files missing from the repository, as the page is requiring functions that are not available.

      Steps to replicate:

      • Add course menu block to course.
      • Configure the course menu block.
      • Activate custom links.
      • Add a custom link and enable "Keep page navigation visible on the same page".
      • Save changes and click on the custom link.

      Debug:
      Exception: Coding error detected, it must be fixed by a programmer: Attempt to require a JavaScript file that does not exist. in ./lib/outputrequirementslib.php on line 689.
      Stack trace:
      line 689 of ./lib/outputrequirementslib.php: coding_exception thrown
      line 821 of ./lib/outputrequirementslib.php: call to page_requirements_manager->js_fix_url()
      line 1044 of ./lib/outputrequirementslib.php: call to page_requirements_manager->js_module()
      line 1023 of ./lib/outputrequirementslib.php: call to page_requirements_manager->js_init_code()
      line 59 of ./blocks/course_menu/link_with_navigation.php: call to page_requirements_manager->js_init_call()

      Using the latest code from the GitHub repository.

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: