Too few arguments to function Drupal\stage_file_proxy\DownloadManager

Created on 12 December 2024, 4 months ago

Problem/Motivation

After updating from 3.1.3 to 3.1.4 with the usual composer process, I get a site breaking error:

The website encountered an unexpected error. Try again later.

ArgumentCountError: Too few arguments to function Drupal\stage_file_proxy\DownloadManager::__construct(), 5 passed in /opt/drupal/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 6 expected in Drupal\stage_file_proxy\DownloadManager->__construct() (line 30 of modules/contrib/stage_file_proxy/src/DownloadManager.php).
Drupal\Component\DependencyInjection\Container->createService(Array, 'stage_file_proxy.download_manager') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('stage_file_proxy.download_manager', 1) (Line: 438)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 239)
Drupal\Component\DependencyInjection\Container->createService(Array, 'Drupal\stage_file_proxy\EventSubscriber\StageFileProxySubscriber') (Line: 179)
Drupal\Component\DependencyInjection\Container->get('Drupal\stage_file_proxy\EventSubscriber\StageFileProxySubscriber') (Line: 105)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 157)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Drupal core 10.3.10
PHP 8.2.22

It's possible there's some interaction with another module causing the error, but I don't see anything suggesting that in the trace.

🐛 Bug report
Status

Active

Version

3.1

Component

Code

Created by

🇨🇦Canada ryanrobinson_wlu

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

Comments & Activities

Production build 0.71.5 2024