The website encountered an unexpected error. Please try again later.
TypeError: Drupal\easy_breadcrumb\EasyBreadcrumbBuilder::__construct(): Argument #16 ($module_handler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 in Drupal\easy_breadcrumb\EasyBreadcrumbBuilder->__construct() (line 204 of modules/contrib/easy_breadcrumb/src/EasyBreadcrumbBuilder.php).

On a D9.4.5 site in active development, with easy_breadcrumb 2.0.3 installed and a block configured on the public theme, upgrading drupal/entity from 1.3.0 to 1.4.0 via composer results in the above error message on nearly every router path, even in Claro administration theme with no easy breadcrumb blocks added. No idea what changed to break easy_breadcrumb, but I wanted to document this.

Manual uninstallation of easy_breadcrumb via editing DB was the only way to restore site functionality.

CommentFileSizeAuthor
#2 3307333-2.patch2.6 KBrandalv
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

higherform created an issue. See original summary.

randalv’s picture

StatusFileSize
new2.6 KB

I encountered this issue too.
Patch attached.

higherform’s picture

Status: Active » Needs review

Patch #2 applied successfully to 2.0.3 release. The patch appears to fix the issue as far as I can tell.

renatog’s picture

Issue tags: +Needs manual testing
kvantstudio’s picture

Patch #2 applied successfully to me.

svendecabooter’s picture

Status: Needs review » Reviewed & tested by the community

I encountered the same issue.
This got triggered by an update to the hook_event_dispatcher module, that uses a new decorated module handler.
See also https://www.drupal.org/project/hook_event_dispatcher/issues/3308506

dpi’s picture

Title: ModuleHandler error after upgrading entity module » ModuleHandler error after upgrading Hook Event Dispatcher
dpi’s picture

Grouping related issues together

ambient.impact’s picture

#2 fixes it for me also.

greg boggs’s picture

looks good. if someone posts this as a merge request, I'll merge it.

renatog’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Needs manual testing +Needs Merge Request, +Novice

I've put some tags that probably will find someone to do this favour to us 😌

greg boggs’s picture

++

dpi’s picture

Assigned: Unassigned » dpi
Status: Needs work » Active
Issue tags: -Needs Merge Request, -Novice

Per the testbot in #2, the patch doesnt apply on head. Only to 2.0.3.

dpi’s picture

Assigned: dpi » Unassigned
Status: Active » Needs review

Rebuilt and pushed as MR.

f0ns’s picture

I had the same issue, the patch as proposed in comment #2 fixed the issue.

  • Greg Boggs committed 58d9236 on 2.x authored by dpi
    Issue #3307333 by dpi, RandalV, higherform, RenatoG, Greg Boggs,...
greg boggs’s picture

Status: Needs review » Fixed

Thanks folks.

Status: Fixed » Closed (fixed)

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