Problem/Motivation

After enabling Ultimenu with symfony_mailer
Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException: Circular reference detected for service "plugin.manager.block", path: "options_request_listener -> router.route_provider -> cache_tags.invalidator -> plugin.manager.block -> logger.channel.default -> Drupal\Core\Logger\LoggerChannelFactoryInterface -> logger.raven -> ultimenu.manager". in Drupal\Component\DependencyInjection\Container->get() (line 147 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

1- install the Ultimenu module and enable it
2- Install the Symfony mailer and enable it
3- Drush cr
4- Error will appear

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ultimenu-3419031

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

Ahmad Abbad created an issue. See original summary.

ahmad abbad’s picture

Issue summary: View changes
ahmad abbad’s picture

Version: 3.0.x-dev » 8.x-2.x-dev

Ibrahim Tameme made their first commit to this issue’s fork.

connbi’s picture

StatusFileSize
new12.44 KB

I have a same problem.
drupal 10.2.3
Ultimenu 2.10
Thanks to @Ibrahim-Tameme, based on your Merge request I created a patch application in ultimenu 2.10 version

gausarts’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Thank you.

I tried to reproduce it based on the OP instructions, but I couldn't, yet.
Based on this comment, it is intermittent?

Also I don't understand why many unrelated services were removed and changed in the patch?

Please also provide a reproduction step in Drupal 9 first, not D10, yet.

gausarts’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new6.03 KB

I couldn't reproduce it with D9, symfony_mailer:1.3.2, yet.

However based on the reported error, I only changed the offending service plugin.manager.block.
I could not put your patch in as I don't understand your other services removal.

Let me know if my patch fixes this issue?
If not, please provide a consistent reproduction in D9.

gausarts’s picture

StatusFileSize
new11.84 KB

I could reproduce it at D10, but not D9.

  • gausarts committed 357d4fa6 on 8.x-2.x
    Issue #3419031 by Ibrahim Tameme, ConnBi, Ahmad Abbad: Circular...
gausarts’s picture

Status: Needs review » Fixed

This will do for now till further investigation since it is only seen at D10, but not D9.

Committed. Thank you for contribution and patience!

connbi’s picture

StatusFileSize
new12.79 KB

Sorry, my patch #6 above replaced one less blockManager variable.
I create a new patch

Status: Fixed » Closed (fixed)

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

connbi’s picture

StatusFileSize
new6.3 KB

In Drupal 10.3.1 same problem exists.
I created a patch to fixed it.

connbi’s picture

StatusFileSize
new6.68 KB