Closed (cannot reproduce)
Project:
Rate
Version:
3.3.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2026 at 20:33 UTC
Updated:
19 Jun 2026 at 05:48 UTC
Jump to comment: Most recent
After updating rate module from 3.3.0-rc1 to 3.3.0 using composer for Drupal 10.6.x/php8.4.x caused any drush commands used after to throw an error:
Circular reference detected for service "Drupal\Core\Logger\LoggerChannelFactoryInterface", path: "advancedqueue.processor -> Drupal\Core\Logger\LoggerChannelFactoryInterface -> Drupal\rate\Hook\RateHooks -> rate.vote_widget_base -> entity.form_builder -> form_builder -> form_validator -> logger.channel.form -> Drupal\Core\Logger\LoggerChannelFactoryInterface".
I've included a small patch for anyone else this may affect. The problem is caused by the rate module utilizing Drupal’s modern Object-Oriented Hook system (RateHooks), which attempts to load a core form builder service that triggers early logger factory initialization.
The patch removes plugin service RateWidgetBase from the __construct function and then lazy loads it where it was required using the actual service name rate.vote_widget_base in:
#[Hook('entity_view')] // original line: 187
| Comment | File | Size | Author |
|---|---|---|---|
| rate-hook-class-circular-ref.patch | 977 bytes | sidgrafix |
Comments
Comment #2
ivnish3.3.0-rc1 to 3.3.0 are the same.
Looks like advancedqueue module problem, not Rate. They already tried to fix that https://git.drupalcode.org/project/advancedqueue/-/commit/941a7faee98dbc...
Also I installed the latest advancedqueue and Rate and I can't reproduce this