Problem/Motivation

TypeError:Drupal\Core\Menu\MenuActiveTrail->__construct() Drupal\Core\Menu\MenuActiveTrail::__construct(): Argument #1 ($menu_link_manager) must be of type Drupal\Core\Menu\MenuLinkManagerInterface,

CommentFileSizeAuthor
#2 fix_error.patch468 bytesxiukun.zhou
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

xiukun.zhou created an issue. See original summary.

xiukun.zhou’s picture

StatusFileSize
new468 bytes

drupal 10 menu.active_trail add lazy:

  menu.active_trail:
    class: Drupal\Core\Menu\MenuActiveTrail
    arguments: ['@plugin.manager.menu.link', '@current_route_match', '@cache.menu', '@lock']
    tags:
      - { name: needs_destruction }
    lazy: true
abhishek_gupta1’s picture

Assigned: Unassigned » abhishek_gupta1

abhishek_gupta1’s picture

Assigned: abhishek_gupta1 » Unassigned
Status: Active » Needs review

above patch fixed the issue , I have verified locally, also created MR.

mitthukumawat’s picture

Status: Needs review » Reviewed & tested by the community

The error has been resolved after taking pull from above MR. Moving to RTBC.

ipumpkin’s picture

Status: Reviewed & tested by the community » Fixed
abhishek_gupta1’s picture

@ipumpkin, If everything is functioning smoothly, please acknowledge our contribution to the issue. and provide credit, thank you

ipumpkin’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

ipumpkin’s picture