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

No renderer for action_menu_link_primary after move

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-83164-main
    • Hide
      1. In your config.php set:

        $CFG->debug_developer_use_pretty_exceptions = false;
        

      2. Copy MDL-83164.php to your moodle root directory
      3. Open it from your browser
        1. Confirm the page renders without exceptions
        2. Confirm there are two "Moodle" links
        3. Confirm there are four deprecation notices
      Show
      In your config.php set: $CFG->debug_developer_use_pretty_exceptions = false; Copy MDL-83164.php to your moodle root directory Open it from your browser Confirm the page renders without exceptions Confirm there are two "Moodle" links Confirm there are four deprecation notices

      The move of output classes in MDL-82183 seems to have broken the rendering of action_menu_link_primary. Attempting to do so gives:

      Coding error detected, it must be fixed by a programmer: Can not render widget, renderer method ('render_link_primary') not found.

      To reproduce, put this into a file in dirroot:

      require_once ({}DIR{} . '/config.php');

      require_login(SITEID);
      $PAGE->set_url('/temp.php');

      $link = new \action_menu_link_primary(new moodle_url('https://moodle.org'), null,'Moodle');

      echo $OUTPUT->header();
      echo $OUTPUT->render($link);
      echo $OUTPUT->footer();

      This works as expected on Moodle 4.3 and gives a rendered link instead of a coding exception.

            dobedobedoh Andrew Lyons
            maherne Michael Aherne
            Paul Holden Paul Holden
            Shamim Rezaie Shamim Rezaie
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 18 minutes
                1h 18m

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