- Issue created by @Hephaestus
- 🇺🇸United States bsnodgrass
I got this same error upgrading a development site.
After drush si --existing-config
using command https://www.drupal.org/project/drupal/releases/10.2.0-beta1 → , failed I needed to add drush/drush to complete the install:
composer require drupal/core-recommended:10.2.0-beta1@beta drupal/core-composer-scaffold:10.2.0-beta1@beta drupal/core-project-message:10.2.0-beta1@beta drush/drush:12.4.3 --update-with-all-dependencies.
Once installed and running drush updb and clearing cache, I was getting the same error reported on this is for any url.
- 🇳🇱Netherlands spokje
Thanks for the detailed reports.
I've tried to reproduce this locally by:
- Downloading core 10.1.6 with all composer-dependencies included with
$ curl -sS https://ftp.drupal.org/files/projects/drupal-10.1.6.zip --output drupal-10.1.6.zip
-$unzip drupal-10.1.6.zip
- Install with a standard profile
- Change"minimum-stability"
tobeta
incomposer.json
-composer require drupal/core-recommended:10.2.0-beta1@beta drupal/core-composer-scaffold:10.2.0-beta1@beta drupal/core-project-message:10.2.0-beta1@beta drush/drush:12.4.3 --update-with-all-dependencies
Without doing a
$ vendor/bin/drush updb
I get a different error ("Template "core/themes/claro/templates/classy/views/views-view-table.html.twig" is not defined."
) on every page, which is expected.Doing the required
$ vendor/bin/drush updb
and the site runs normal.So, at first glance, the cause of this seems to be in either contrib or custom code.
If the original reporters could provide a list of contrib modules on their sites, that would be great.
Also, please check if there is any custom code doing things withMenuActiveTrail
, that would also be very helpful. - 🇬🇧United Kingdom Hephaestus
Thanks for the quick reply Spokje, your mention of the contrib modules prompted me to take a deeper look. The only one referencing MenuActiveTrail is gin_toolbar which extends it with the
Drupal\gin_toolbar\Menu\GinToolbarActiveTrail
class. It doesn't override the constructor, and the service definition is:services: gin_toolbar.active_trail: class: Drupal\gin_toolbar\Menu\GinToolbarActiveTrail parent: menu.active_trail
Uninstalling Gin Toolbar and re-adding the
lazy: true
configuration for MenuActiveTrail results in the site working properly, so the issue seems to reside there.I will re-open this issue on the Gin queue.
- 🇫🇮Finland back-2-95 Helsinki
Patch from issue #3404202 for Gin Toolbar solved this for me with Drupal 10.2 RC1.
- 🇮🇳India farhanmae Bengaluru
#5 🐛 MenuActiveTrail ($menu_link_manager) must be of type Menu\MenuLinkManagerInterface, DependencyInjection\Container given Active works for me.
https://www.drupal.org/project/gin_toolbar/issues/3404202#comment-15363267 🐛 Gin Toolbar incompatible with 10.2.0-beta1 - MenuActiveTrail ($menu_link_manager) must be of type Menu\MenuLinkManagerInterface, DependencyInjection\Container given Needs work
- 🇺🇸United States dianacastillo Miami
installiing the gin toolbar dev version fixes this .
Upgrading to gin/toolbar 1.0.0-rc4 fixed it for me, so I guess it is not a core issue and this thread can be closed?
- Status changed to Closed: outdated
10 months ago 2:41pm 28 February 2024