PHP errors with Drupal core 10.2

Created on 20 December 2023, about 1 year ago
Updated 10 January 2024, 12 months ago

We are testing updating our site to Drupal core 10.2 and it seems I cannot get the site working with core 10.2 and the latest 2.0.1 version of this module.

After upgrading core and running database updates, I got the following error:

Missing proxy class 'Drupal\menu_trail_by_path\ProxyClass\MenuTrailByPathActiveTrail' for lazy service 'menu.active_trail'.
Use the following command to generate the proxy class:
  php core/scripts/generate-proxy-class.php 'Drupal\menu_trail_by_path\MenuTrailByPathActiveTrail' "modules/contrib/menu_trail_by_path/src"

 ProxyServicesPass.php:66

As mentioned in the later comments, it was fixed with 2.0.1 version but I am unable still get the site to open because of the following error:

TypeError: Drupal\Core\Menu\MenuActiveTrail::__construct(): Argument #1 ($menu_link_manager) must be of type Drupal\Core\Menu\MenuLinkManagerInterface, Drupal\Core\DependencyInjection\Container given, called in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\Core\Menu\MenuActiveTrail->__construct() (line 44 of core/lib/Drupal/Core/Menu/MenuActiveTrail.php). 

I was suspecting our core patch in issue 🐛 Untranslated menu items are displayed in menus Needs work might be causing the error but after removing the patch and running composer install again, I am still encountering the error and site is broken.

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇫🇮Finland heikkiy Oulu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024