Fixed
Project:
Queue Statistics
Version:
2.0.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Oct 2024 at 08:59 UTC
Updated:
1 Nov 2026 at 08:37 UTC
Jump to comment: Most recent
After upgrading queue_ui from 3.1.4 to 3.2.1, queue_stats throws a fatal error:
Fatal error: Declaration of Drupal\queue_stats\MonitoredQueueUIManager::queueClassName($queue) must be compatible with Drupal\queue_ui\QueueUIManager::queueClassName(Drupal\Core\Queue\QueueInterface $queue): ?string in web/modules/contrib/queue_stats/src/MonitoredQueueUIManager.php on line 19
Upgrade queue_ui from 3.1.4 to 3.2.1 while having queue_stats installed.
Update code.
Create patch.
-
-
-
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
Comment #3
efpapado commentedComment #4
dahousecat commentedPatch applied cleanly and fixed the error, but the then I got this error upon enabling the module:
I replaced
use Symfony\Component\DependencyInjection\ContainerAwareTrait;with
use League\Container\ContainerAwareTrait;in EstimatedTimeToFinish.php and now it works.
Comment #6
benstallings commentedI just rebased it ^
Comment #8
achtonThanks efpapado for the fix, and dahousecat and benstallings for testing and rebasing.
I rebased the merge request onto 2.x, which now has GitLab CI (#3634607: Add GitLab CI and composer.json), and added one commit: a
conflictwithdrupal/queue_uibefore 3.2 in composer.json. The new signature is incompatible with Queue UI 3.1.x, so Composer should keep sites from combining them.The
ContainerAwareTraiterror from comment #3 is fixed in #3434069: Automated Drupal 11 compatibility fixes for queue_stats.I plan to merge this once the pipeline passes, for 2.0.0-rc1.
Comment #9
achton