The website encountered an unexpected error. Try again later. Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "media_library_importer.service" has a dependency on a non-existent service "queue_ui.batch"

Created on 12 January 2024, 6 months ago
Updated 27 January 2024, 5 months ago

Problem/Motivation

The website encountered an unexpected error. Try again later.

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "media_library_importer.service" has a dependency on a non-existent service "queue_ui.batch". in Symfony\Component\DependencyInjection\Compiler\CheckExceptionOnInvalidReferenceBehaviorPass->processValue() (line 88 of vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php).

Steps to reproduce

Upgrade or install Version 2.0.0 using Composer
When upgrading via Update UI I get: Schema information for module media_library_importer was missing from the database. You should manually review the module updates and your database to check if any updates have been skipped up to, and including, media_library_importer_update_8000().

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇦🇺Australia carlodimartino

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

Comments & Activities

  • Issue created by @carlodimartino
  • Status changed to Needs review 6 months ago
  • 🇮🇳India rajeev.virasat

    Hi @carlodimartino, I have fixed this issue.
    i found that this module has a dependency of "queue_ui" module, so before enable this module the "queue_ui" module should be enable on the project.
    I have created a patch file please check this.

    • itamair committed 131f8d8e on 2.x
      Added module composer.json file and dependency from drupal/queue_ui...
  • Status changed to Fixed 6 months ago
  • 🇮🇹Italy itamair

    Thanks for reporting this.
    New 2.0.1 release fixes this, specifically adding (both composer and Drupal module) dependency from the drupal queue_ui contrib module

  • Status changed to Needs work 6 months ago
  • 🇦🇺Australia carlodimartino

    Version 2.0.2 had the dependencies list as:
    dependencies:
    - drupal:media
    - drupal:media_library
    - queue_ui:queue_ui
    Where your patch is:
    - drupal:media
    - drupal:media_library
    - drupal:queue_ui

  • Status changed to Fixed 6 months ago
  • 🇮🇹Italy itamair

    @carlodimartino you are wrong, as the 'drupal' prefix is used to refer to drupal core modules.

    The following:
    - queue_ui:queue_ui

    is the proper way to define dependency from the queue_ui contrib module .

    Please, be aware that queue_ui contrib module should be present in your code base
    (it will happen automatically now with clean composer require drupal/media_library_importer)
    and should also be enabled (make sure to enable it in the Drupal backend, if not already enabled).

    All this will make the media_library_importer 2.0.x up and running correctly.

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

Production build 0.69.0 2024