Too few arguments to function Drupal\queue_ui\QueueUIManager::__construct()

Created on 6 September 2023, about 1 year ago

Problem/Issue

[error] ArgumentCountError: Too few arguments to function Drupal\queue_ui\QueueUIManager::__construct(), 3 passed in /app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\queue_ui\QueueUIManager->__construct() (line 40 of /app/docroot/modules/contrib/queue_ui/src/QueueUIManager.php)

Steps to reproduce

I have updated module from version 8.x-2.2 to version 3.1.3 for drupal 10 compatibility.

Doing cache rebuilt, it's giving ArgumentCountError: Too few arguments to function Drupal\queue_ui\QueueUIManager::__construct(), 3 passed in /app/docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in Drupal\queue_ui\QueueUIManager->__construct() (line 40 of /app/docroot/modules/contrib/queue_ui/src/QueueUIManager.php).

Let me know does anyone else has face this issue? & any solution of this issue will be appriciated.

🐛 Bug report
Status

Needs work

Version

3.1

Component

Code

Created by

🇮🇳India Parashram

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Parashram
  • Status changed to Active about 1 year ago
  • 🇺🇸United States DamienMcKenna NH, USA

    fyi the appropriate status for an issue that is just opened, which does not have a proposed fix, patch or merge request, is "active"; "needs work" is for when there's an existing proposed solution and someone has identified that it needs further work.

  • 🇮🇳India sarwan_verma

    Hi@Parashram,
    I have fixed this issue and created patch,
    please review and verify.

  • Status changed to Needs review about 1 year ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    2 pass
  • Status changed to RTBC about 1 year ago
  • 🇧🇷Brazil elber Brazil

    I reviewed the patch.

    Patch is working (applied correctly and fixing error)
    Module is working as expected
    I'm using drupal 10.1.x version

  • Status changed to Postponed: needs info about 1 year ago
  • 🇺🇦Ukraine voleger Ukraine, Rivne

    The post update function was added to apply argument list changes in batch service.

    https://git.drupalcode.org/project/queue_ui/-/commit/0c86832#29f060b66c5...

    Did you perform database updates after the composer install?

    +++ b/src/QueueUIBatch.php
    @@ -155,7 +155,7 @@ class QueueUIBatch implements QueueUIBatchInterface {
    -      watchdog_exception('queue_ui', $e);
    +      \Drupal::logger('queue_ui', $e);
    
    @@ -164,7 +164,7 @@ class QueueUIBatch implements QueueUIBatchInterface {
    -      watchdog_exception('queue_ui', $e);
    +      \Drupal::logger('queue_ui', $e);
    

    watchdog function deprecated in 10.1.x. Provided replacement is not correct and is a task for 3.2.x branch of the module.

  • Status changed to Closed: outdated about 2 months ago
  • 🇺🇦Ukraine voleger Ukraine, Rivne
Production build 0.71.5 2024