Fatal error on 9.2.x - no file.repository

Created on 9 May 2022, about 2 years ago
Updated 5 April 2023, about 1 year ago

Problem/Motivation

info.yml suggests ^9 but on 9.2.18 module errors (after configuration) on /media/bulk-upload/test_bulk_upload with "Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "file.repository". Did you mean one of these: "entity.repository", "block.repository"? in Drupal\Component\DependencyInjection\Container->get() (line 156 of /var/lib/tugboat/stm/web/core/lib/Drupal/Component/DependencyInjection/Container.php)."

Steps to reproduce

Visit simplytest.me, install `media_bulk_upload` on Drupal 9.2.18, configure a Media Bulk Config, then try and use it.

Proposed resolution

Presumably this module is compatible wth 9.3 or greater. Update info.yml and docs.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand jonathan_hunt

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    I tried with 9.2.18 on simplytest.me and also got:

    Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "file.repository". Did you mean one of these: "entity.repository", "block.repository"? in Drupal\Component\DependencyInjection\Container->get() (line 156 of /var/lib/tugboat/stm/web/core/lib/Drupal/Component/DependencyInjection/Container.php).
    
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Trying 9.5.7 on simplytest.me doesn't work for other reasons but I think that might be due to using simplytest.me because I used DrupalPod with 9.5 and had no issues.

    Warning: file_exists(): Unable to find the wrapper "private" - did you forget to enable it when you configured PHP? in system_requirements() (line 714 of /var/lib/tugboat/stm/web/core/modules/system/system.install)
    

    Note that here is a different module that is handling the files two different ways depending on the version:

    https://git.drupalcode.org/project/eu-cookie-compliance/-/merge_requests...

Production build 0.69.0 2024